{"id":81148,"date":"2025-12-11T18:30:00","date_gmt":"2025-12-11T09:30:00","guid":{"rendered":"https:\/\/www.creationline.com\/tech-blog\/?p=81148"},"modified":"2025-12-11T17:09:10","modified_gmt":"2025-12-11T08:09:10","slug":"gitlab-ci%e3%81%a7claude-code%e3%81%ab%e3%83%86%e3%82%b9%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%82%92%e7%94%9f%e6%88%90%e3%81%97%e3%81%a6%e3%82%82%e3%82%89%e3%81%a3%e3%81%9f%e9%9a%9b%e3%81%aetips","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai-driven-dev\/81148","title":{"rendered":"GitLab CI\u3067Claude Code\u306b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3057\u3066\u3082\u3089\u3063\u305f\u969b\u306etips"},"content":{"rendered":"\n<p>\u203b\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u306fGenSpark\u306b\u4f5c\u6210\u3057\u3066\u3082\u3089\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u306f\u3058\u3081\u306b<\/h1>\n\n\n\n<p>\u73fe\u5728\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\u3067\u306f\u3001\u30c1\u30fc\u30e0\u3067\u306e\u8ab2\u984c\u3068\u3057\u3066\u751f\u6210AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u99c6\u52d5\u306e\u4e8b\u4f8b\u306b\u3064\u3044\u3066\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u307e\u305f\u306f\u5148\u65e5\u958b\u50ac\u3055\u308c\u307e\u3057\u305fLT\u4f1a\u300c<a href=\"https:\/\/creationline.connpass.com\/event\/374207\/\">[\u3010AI\u99c6\u52d5\u958b\u767a\u307e\u3064\u308a\u3011AI\u99c6\u52d5\u958b\u767a \u306e\u73fe\u5834\u30c6\u30af\u30cb\u30c3\u30af\u3092\u5fb9\u5e95\u7d39\u4ecb\uff01(KennEjima\u3055\u3093\u62db\u5f85\u8b1b\u6f14\uff09]<\/a>\u300d\u3067\u767b\u58c7\u3092\u884c\u3046\u3053\u3068\u3068\u306a\u308a\u3001\u4f55\u304b\u767a\u8868\u3067\u304d\u308b\u30c6\u30fc\u30de\u3092\u63a2\u3055\u306d\u3070\u601d\u3044\u8a66\u884c\u932f\u8aa4\u3057\u3066\u3044\u305f\u3068\u3053\u308d\u3001\u300c\u751f\u6210AI\u306b\u3088\u308b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u751f\u6210\u300dx\u300cCICD\u300d\u3067\u9762\u767d\u3044\u3053\u3068\u3067\u304d\u306a\u3044\u304b\u3068\u601d\u3044\u3064\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306fGitLab CI x \u300cCalude Code\u300d\u306b\u3066\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u751f\u6210\u3092\u884c\u306a\u3063\u305f\u969b\u306etips\u3092\u3054\u7d39\u4ecb\u3067\u304d\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u69cb\u6210<\/h1>\n\n\n\n<p>\u3056\u3063\u304f\u308a\u3068\u4eca\u56de\u4f5c\u6210\u3059\u308b\u6210\u679c\u7269\u306e\u69cb\u6210\u3092\u7d39\u4ecb\u3067\u304d\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u30de\u30fc\u30b8\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u4f5c\u6210(\u307e\u305f\u306f\u30b3\u30fc\u30c9\u3092\u30ea\u30e2\u30fc\u30c8\u3078Push)\n     \u2502  \n     \u25bc\nClaude Code CLI (GitLab CICD\u4e0a\u3067\u52d5\u4f5c\u3092\u60f3\u5b9a)\n     \u2502  \n     \u25bc\n\u751f\u6210\u3057\u305f\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u30ea\u30e2\u30fc\u30c8\u3078push\n     \u2502\n     \u25bc\nCICD\u4e0a\u3067GitLab\u306eAPI\u3092\u4ecb\u3057\u3066GitLab (\u30ea\u30dd\u30b8\u30c8\u30ea \/ MR)\u3092\u4f5c\u6210<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\">\u6e96\u5099<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">\u6210\u679c\u7269\u306e\u5bfe\u8c61\u306e\u7528\u610f<\/h2>\n\n\n\n<p>\u4eca\u56de\u306f\u7c21\u6613\u7684\u306aFlask\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3057\u3066\u3001API\u306e\u6539\u4fee\u3092\u884c\u306a\u3063\u305f\u969b\u306b\u305d\u306e\u6539\u4fee\u7b87\u6240\u306b\u5bfe\u3057\u3066\u306e\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3059\u308b\u3088\u3046\u306a\u72b6\u6cc1\u3092\u4f5c\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>&lt;\u4eca\u56de\u4f5c\u6210\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210&gt;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\n\u251c\u2500\u2500 Dockerfile\n\u251c\u2500\u2500 Makefile\n\u251c\u2500\u2500 README.md\n\u251c\u2500\u2500 app\n\u2502   \u251c\u2500\u2500 data.db\n\u2502   \u251c\u2500\u2500 db.py...db\u63a5\u7d9a\u306e\u7ba1\u7406\u5468\u308a\n\u2502   \u251c\u2500\u2500 main.py...Flask\u30a2\u30d7\u30ea\u306e\u30a8\u30f3\u30c8\u30ea\u30dd\u30a4\u30f3\u30c8\n\u2502   \u251c\u2500\u2500 requirements.txt...\u4f9d\u5b58\u95a2\u4fc2\u306e\u7ba1\u7406\n\u2502   \u251c\u2500\u2500 routes\n\u2502   \u2502   \u2514\u2500\u2500 items.py...API\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u5b9a\u3001\u30d3\u30b8\u30cd\u30b9\u30ed\u30b8\u30c3\u30af\u306e\u8a18\u8ff0\n\u2502   \u2514\u2500\u2500 seed.py...DB\u3078\u306e\u30b7\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb\n\u251c\u2500\u2500 docker-compose.yml...\u958b\u767a\u74b0\u5883\u7528\u610f\u306eDockerCompose\u30d5\u30a1\u30a4\u30eb\n\u2514\u2500\u2500 tests...\u30c6\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u683c\u7d0d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Claude Code x GitLab CI\/CD\u306e\u8a2d\u5b9a<\/h2>\n\n\n\n<p>Claude Code\u3092GitLab CI\/CD\u4e0a\u3067\u52d5\u4f5c\u307e\u305fMR\u3092HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u4ecb\u3057\u3066\u5b9f\u884c\u3055\u305b\u308b\u305f\u3081\u306b\u4ee5\u4e0b\u3092\u884c\u3044\u307e\u3059<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>GitLab PAT\u306e\u8a2d\u5b9a<\/li>\n\n\n\n<li>Anthropic API Key\u306e\u53d6\u5f97<\/li>\n\n\n\n<li>Claude Code\u306e\u30af\u30ec\u30b8\u30c3\u30c8\u3092\u6709\u52b9\u5316<\/li>\n\n\n\n<li>GitLab\u306e\u5bfe\u8c61\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u5bfe\u3057\u74b0\u5883\u5909\u6570\u3092\u8a2d\u5b9a<\/li>\n\n\n\n<li>.gitlab-ci.yml\u306e\u8a2d\u5b9a<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">GitLab PAT\u306e\u8a2d\u5b9a<\/h3>\n\n\n\n<p><a href=\"https:\/\/qiita.com\/turupon\/items\/17ca6f3c770fe82ead38\">https:\/\/qiita.com\/turupon\/items\/17ca6f3c770fe82ead38<\/a><\/p>\n\n\n\n<p>\u4e0a\u8a18\u8a18\u4e8b\u3092\u53c2\u8003\u306bKey\u3092\u53d6\u5f97\u3057\u307e\u3057\u305f\u3002<br>\u4eca\u56de\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u8aad\u307f\u66f8\u304d\u304c\u5fc5\u8981\u3067\u3042\u308b\u305f\u3081\u300cread_repository\u300d\u300cwrite_repository\u300d\u3092\u8a31\u53ef\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Anthropic API Key\u306e\u53d6\u5f97<\/h3>\n\n\n\n<p><a href=\"https:\/\/console.anthropic.com\/dashboard\">https:\/\/console.anthropic.com\/dashboard<\/a><\/p>\n\n\n\n<p>\u4e0a\u8a18\u3088\u308a\u300cGet Key\u300d\u3092\u62bc\u4e0b\u3057Key\u3092\u53d6\u5f97\u3057\u3066\u304f\u3060\u3055\u3044\u3002(Claude Code\u306e\u30af\u30ec\u30b8\u30c3\u30c8\u3092\u6709\u52b9\u5316\u304c\u5fc5\u8981\u306a\u70b9\u306b\u6ce8\u610f\u3067\u3059)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">GitLab\u306e\u5bfe\u8c61\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u5bfe\u3057\u74b0\u5883\u5909\u6570\u3092\u8a2d\u5b9a<\/h3>\n\n\n\n<p>GitLab -&gt; \u5bfe\u8c61\u306e\u30ea\u30dd\u30b8\u30c8\u30ea -&gt; \u30b5\u30a4\u30c9\u30e1\u30cb\u30e5\u30fcSettings -&gt; CICD\u3088\u308a<br>Variables\u306e\u9805\u76ee\u304b\u3089\u4ee5\u4e0b\u3092<code>Visibility<\/code>\u3092Masked\u3092\u9078\u629e\u3057\u305f\u4e0a\u3067\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>GITLAB_USERNAME<\/code><\/li>\n\n\n\n<li><code>ANTHROPIC_API_KEY<\/code><\/li>\n\n\n\n<li><code>GITLAB_TOKEN<\/code>(PAT)<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><\/h3>\n\n\n\n<p><code>.gitlab-ci.yml<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>stages:\n  - generate_tests\n  - merge_request\n\nclaude:\n  stage: generate_tests\n  image: node:24-alpine3.21\n\n  rules:\n  - if: '$CI_PIPELINE_SOURCE == \"web\"'\n    when: always\n\n  - if: '$CI_PIPELINE_SOURCE == \"push\" &amp;&amp; $RUN_AI_PIPELINE == \"true\"'\n    when: always\n\n  - when: never\n\n  only:\n  variables:\n    GIT_STRATEGY: fetch\n    GIT_DEPTH: 0  # MR\u30d9\u30fc\u30b9\u30d6\u30e9\u30f3\u30c1\u306e\u5c65\u6b74\u304c\u5fc5\u8981\n    CLAUDE_LOG: claude_output.log\n\n  before_script:\n    - set -e\n    - apk add --no-cache git curl bash python3 py3-pip\n    - npm install -g @anthropic-ai\/claude-code\n    - export PATH=\"$PATH:$(npm bin -g)\"\n\n  cache:\n    key: claude-global-cache\n    paths:\n      - \/usr\/local\/lib\/node_modules\/\n\n  script:\n    - echo \"Running Claude Code to generate Python tests for MR !${CI_MERGE_REQUEST_IID}\"\n    - |\n      git fetch origin ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME:-$CI_DEFAULT_BRANCH}\n      CHANGED_FILES=$(git diff --name-only origin\/${CI_MERGE_REQUEST_TARGET_BRANCH_NAME:-$CI_DEFAULT_BRANCH})\n      echo \"Changed files: $CHANGED_FILES\"\n      if &#91; -z \"$CHANGED_FILES\" ]; then\n        echo \"No file changes detected. Skipping Claude execution.\"\n        exit 0\n      fi\n    - |\n      claude \\\n        --model claude-sonnet-4-5-20250929 \\\n        -p \"\n            # Context\n            Project: ${CI_PROJECT_PATH}\n            Merge Request: !${CI_MERGE_REQUEST_IID}\n            Target: New or modified functions in this MR\n\n            **IMPORTANT**: First read and follow the guidelines in .\/Claude.md. \n            This file contains project-specific conventions, coding standards, \n            and test requirements that must be prioritized.\n\n            # Task\n            Generate Python unit tests for the changed code, following the \n            guidelines specified in .\/Claude.md\n\n            # Analysis Steps\n            1. Review repository structure and existing test patterns\n            2. Analyze MR diff to identify changed\/added functions\n            3. Separate concerns: \n               - Use full repo context to understand architecture and patterns\n               - Use diff to identify specific changes requiring tests\n            4. This separation ensures tests accurately reflect intended behavior\n\n            # Requirements\n            1. Framework: Use pytest conventions (or as specified in Claude.md)\n            2. Location: Place tests in 'tests\/unit\/' directory (or as specified in Claude.md)\n            3. Coverage: At least one test case per public function\/class\n            4. Constraint: Avoid changing production code unless strictly necessary for testability\n\n            # Critical Constraints - NO MOCKING\n            - **NEVER use mocks, patches, monkeypatch, or stubs**\n            - Test against real implementations only\n            - This ensures implementation actually exists and prevents false positives\n            - If dependencies are complex, create minimal real test fixtures\n            - This eliminates the need for mock verification in code reviews\n\n            # Validation Process\n            After generating each test file:\n            1. Execute the generated tests using pytest\n            2. Verify all tests pass successfully\n            3. If any test fails or is flaky:\n               - Analyze the root cause\n               - Fix the test code\n               - Re-run until stable\n            4. Report any execution errors or unstable tests detected\n            5. This automation catches issues before human review\n\n            # Output\n            - pytest-formatted test files adhering to Claude.md guidelines\n            - Comprehensive test coverage for all public APIs\n            - All tests verified to execute successfully\n            - Summary of any issues detected and resolved during validation\n            \"\\\n        --permission-mode acceptEdits \\\n        --allowedTools 'Read(*) Write(*) Edit(*) mcp__gitlab' \\\n        --debug | tee $CLAUDE_LOG\n\n  artifacts:\n    paths:\n      - tests\/\n      - $CLAUDE_LOG\n    expire_in: 24 hour\n\n\ncreate_mr:\n  stage: merge_request\n  image: alpine:latest\n  needs:\n    - job: claude\n      artifacts: true\n  dependencies:\n    - claude\n\n  rules:\n  - if: '$CI_PIPELINE_SOURCE == \"web\"'\n    when: always\n\n  - if: '$CI_PIPELINE_SOURCE == \"push\" &amp;&amp; $RUN_AI_PIPELINE == \"true\"'\n    when: always\n\n  - when: never\n\n  before_script:\n    - set -e\n    - apk add --no-cache git curl bash\n    - git config --global user.email \"ci-bot@creationline.com\"\n    - git config --global user.name \"GitLab CI Bot\"\n\n  script:\n    - export TARGET_BRANCH=\"${CI_MERGE_REQUEST_TARGET_BRANCH_NAME:-$CI_COMMIT_REF_NAME}\"\n    - export BRANCH_NAME=\"ai\/generated-tests-${CI_MERGE_REQUEST_IID}-$(date +%Y%m%d-%H%M%S)\"\n\n    - git fetch origin $TARGET_BRANCH\n    - git checkout -b ${BRANCH_NAME} origin\/$TARGET_BRANCH\n\n    - git add tests\/ || true\n\n    - if git diff --cached --quiet; then\n        echo \"No new test files to commit. Skipping MR creation.\";\n        exit 0;\n      fi\n  \n    - git commit -m \"Add AI-generated tests for MR !${CI_MERGE_REQUEST_IID}\" || echo \"No changes to commit\"\n    - git push -f https:\/\/gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}\/${CI_PROJECT_PATH}.git ${BRANCH_NAME}\n\n    - |\n      echo \"Creating MR from ${BRANCH_NAME} -&gt; ${TARGET_BRANCH}\"\n      curl --fail --request POST \\\n        --header \"PRIVATE-TOKEN: ${GITLAB_TOKEN}\" \\\n        \"${CI_API_V4_URL}\/projects\/${CI_PROJECT_ID}\/merge_requests\" \\\n        --form \"source_branch=${BRANCH_NAME}\" \\\n        --form \"target_branch=${TARGET_BRANCH}\" \\\n        --form \"title=Add AI-generated tests for MR !${CI_MERGE_REQUEST_IID}\" \\\n        --form \"description=This MR was automatically generated by Claude Code for !${CI_MERGE_REQUEST_IID}.\" \\\n        --form \"labels=auto-generated,testing\"\n\n  artifacts:\n    when: always\n    expire_in: 24 hours\n<\/code><\/pre>\n\n\n\n<p>rules\u306b\u3088\u308bCI\u5b9f\u884c\u6761\u4ef6\u306e\u53b3\u683c\u5316\u3084git fetch..\u306b\u3066\u30bf\u30fc\u30b2\u30c3\u30c8\u30d6\u30e9\u30f3\u30c1\u3078\u306e\u5dee\u5206\u306e\u307f\u3092\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u6e21\u3059\u306a\u3069\u306e\u51e6\u7406\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5de5\u592b\u70b9<\/h2>\n\n\n\n<p>\u4eca\u56de\u69cb\u7bc9\u3092\u884c\u3046\u306b\u3042\u305f\u3063\u3066\u5de5\u592b\u3057\u305f\u70b9\u304c\u3042\u308b\u305f\u3081\u3001\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/www.anthropic.com\/engineering\/claude-code-best-practices\">https:\/\/www.anthropic.com\/engineering\/claude-code-best-practices<\/a><\/p>\n\n\n\n<p>\u4e0a\u8a18\u30ea\u30f3\u30af\u306b\u3042\u308b\u3088\u3046\u306bClaude Code\u306b\u306f\u3044\u304f\u3064\u304b\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u304c\u5b58\u5728\u3057\u3001\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u751f\u6210\u306b\u95a2\u3059\u308b\u3082\u306e\u3082\u5b58\u5728\u3057\u307e\u3057\u305f\u3002\u305d\u3061\u3089\u306e\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u3044\u304f\u3064\u304b\u8e0f\u8972\u3059\u308b\u305f\u3081CI\u4e0a\u3067\u5de5\u592b\u3057\u305f\u7b87\u6240\u304c\u3042\u308b\u305f\u3081\u3001\u305d\u3061\u3089\u3082\u4f75\u305b\u3066\u7d39\u4ecb\u3067\u304d\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306e\u5206\u96e2<\/h3>\n\n\n\n<p>\u4eca\u56de\u306e\u69cb\u6210\u3067\u306fClaude Code\u306b\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u6e21\u3059\u969b\u306b\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u60c5\u5831\u306f\u30de\u30fc\u30af\u30c0\u30a6\u30f3\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u3001\u30c6\u30b9\u30c8\u5bfe\u8c61\u306e\u30b3\u30fc\u30c9\u306f<code>git fetch...<\/code>\u306b\u3066\u5dee\u5206\u3092\u62bd\u51fa\u3057\u3066\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u3067\u6e21\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>&lt;\u30dd\u30b8\u30c8\u30ea\u306e\u60c5\u5831\u306e\u30de\u30fc\u30af\u30c0\u30a6\u30f3\u30d5\u30a1\u30a4\u30eb\u3092\u660e\u793a\u7684\u306b\u8aad\u307f\u8fbc\u307e\u305b\u308b&gt;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>**IMPORTANT**: First read and follow the guidelines in .\/Claude.md. \n            This file contains project-specific conventions, coding standards, \n            and test requirements that must be prioritized.\n<\/code><\/pre>\n\n\n\n<p>&lt;<code>git fetch...<\/code>\u306b\u3066\u5dee\u5206\u3092\u62bd\u51fa\u3059\u308b&gt;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    - |\n      git fetch origin ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME:-$CI_DEFAULT_BRANCH}\n      CHANGED_FILES=$(git diff --name-only origin\/${CI_MERGE_REQUEST_TARGET_BRANCH_NAME:-$CI_DEFAULT_BRANCH})\n      echo \"&#x1f4c4; Changed files: $CHANGED_FILES\"\n      if &#91; -z \"$CHANGED_FILES\" ]; then\n        echo \"No file changes detected. Skipping Claude execution.\"\n        exit 0\n      fi\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u91cd\u8981\u60c5\u5831\u306e\u8b58\u5225\u6027\u304c\u4e0a\u304c\u308a\u3001Calude Code\u304c\u8ff7\u3044\u306b\u304f\u304f\u306a\u308b\u307b\u304b\u6307\u793a\u304c\u660e\u78ba\u306b\u306a\u308a\u30c6\u30b9\u30c8\u751f\u6210\u306e\u7cbe\u5ea6\u306e\u5411\u4e0a\u304c\u671f\u5f85\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Mock\u4f5c\u6210\u306e\u7981\u6b62<\/h3>\n\n\n\n<p>Mock\u3092\u4f5c\u6210\u3055\u305b\u308b\u3053\u3068\u306f\u57fa\u672c\u7684\u306b\u30a2\u30f3\u30c1\u30d1\u30bf\u30fc\u30f3\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u7406\u7531\u3068\u3057\u3066\u306f\u3001\u5b9f\u88c5\u81ea\u4f53\u306f\u5b58\u5728\u3057\u306a\u3044\u306e\u306b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u306e\u307f\u304c\u51fa\u6765\u4e0a\u304c\u308b\u554f\u984c\u304c\u3042\u308a\u3001\u305d\u308c\u3092\u907f\u3051\u308b\u305f\u3081\u3067\u3059\u3002\u4eca\u56de\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> # Critical Constraints - NO MOCKING\n            - **NEVER use mocks, patches, monkeypatch, or stubs**\n            - Test against real implementations only\n            - This ensures implementation actually exists and prevents false positives\n            - If dependencies are complex, create minimal real test fixtures\n            - This eliminates the need for mock verification in code reviews<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Claude Code\u81ea\u8eab\u306b\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3055\u305b\u308b<\/h3>\n\n\n\n<p>Claude Code\u516c\u5f0f\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a18\u8ff0\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u30af\u30ed\u30fc\u30c9\u306b\u30c6\u30b9\u30c8\u306b\u5408\u683c\u3059\u308b\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3088\u3046\u306b\u6307\u793a\u3057<\/strong>\u3001\u30c6\u30b9\u30c8\u3092\u5909\u66f4\u3057\u306a\u3044\u3088\u3046\u306b\u6307\u793a\u3057\u307e\u3059\u3002\u3059\u3079\u3066\u306e\u30c6\u30b9\u30c8\u306b\u5408\u683c\u3059\u308b\u307e\u3067\u7d9a\u3051\u308b\u3088\u3046\u306b\u30af\u30ed\u30fc\u30c9\u306b\u4f1d\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-code\"><code>After generating each test file:\n            1. Execute the generated tests using pytest\n            2. Verify all tests pass successfully\n            3. If any test fails or is flaky:\n               - Analyze the root cause\n               - Fix the test code\n               - Re-run until stable\n            4. Report any execution errors or unstable tests detected\n            5. This automation catches issues before human review<\/code><\/pre>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b9f\u969b\u306b\u52d5\u4f5c\u3055\u305b\u3066\u307f\u308b<\/h2>\n\n\n\n<p>\u5b9f\u969b\u306b\u5909\u66f4\u3092\u30ea\u30e2\u30fc\u30c8\u3078Push\u3057(\u4eca\u56de\u306f\u7c21\u5358\u306aCRUD\u30a2\u30d7\u30ea\u306eDelete\u30e1\u30bd\u30c3\u30c9)\u30de\u30fc\u30b8\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u4f5c\u6210\u3057CI\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"456\" src=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/12\/b444def8e7350101f493e7018e62aaef-1024x456.png\" alt=\"\" class=\"wp-image-81207\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/12\/b444def8e7350101f493e7018e62aaef-1024x456.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/12\/b444def8e7350101f493e7018e62aaef-360x160.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/12\/b444def8e7350101f493e7018e62aaef-768x342.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/12\/b444def8e7350101f493e7018e62aaef.png 1322w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u3046\u307e\u304f\u5b9f\u884c\u3067\u304d\u305f\u3088\u3046\u3067\u3059\u3002\u751f\u6210\u3055\u308c\u305f\u3082\u306e\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046<\/p>\n\n\n\n<p>\u4f5c\u6210\u3055\u308c\u305fMR\u304b\u3089\u3001\u3001\u3001<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1019\" height=\"199\" src=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/12\/1be64888d24a916910b308bc6fbeb19c.png\" alt=\"\" class=\"wp-image-81208\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/12\/1be64888d24a916910b308bc6fbeb19c.png 1019w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/12\/1be64888d24a916910b308bc6fbeb19c-360x70.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/12\/1be64888d24a916910b308bc6fbeb19c-768x150.png 768w\" sizes=\"auto, (max-width: 1019px) 100vw, 1019px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>import pytest\nimport sys\nfrom pathlib import Path\nimport psycopg2\nimport os\n\n# Add app directory to path for imports\napp_dir = Path(__file__).parent.parent.parent \/ \"app\"\nsys.path.insert(0, str(app_dir))\n\nimport db\n\n\nclass TestGetConnection:\n    \"\"\"Test cases for get_connection function.\"\"\"\n\n    def test_get_connection_success(self):\n        \"\"\"Test successful database connection.\"\"\"\n        conn = db.get_connection()\n\n        assert conn is not None\n        assert isinstance(conn, psycopg2.extensions.connection)\n        assert conn.closed == 0  # Connection is open\n\n        conn.close()\n\n    def test_get_connection_can_execute_query(self):\n        \"\"\"Test that connection can execute a simple query.\"\"\"\n        conn = db.get_connection()\n        cur = conn.cursor()\n\n        cur.execute(\"SELECT 1\")\n        result = cur.fetchone()\n\n        assert result == (1,)\n\n        cur.close()\n        conn.close()\n\n\nclass TestInitDb:\n    \"\"\"Test cases for init_db function.\"\"\"\n\n    def test_init_db_creates_table(self):\n        \"\"\"Test that init_db creates the items table successfully.\"\"\"\n        # Drop table if it exists\n        conn = db.get_connection()\n        cur = conn.cursor()\n        cur.execute(\"DROP TABLE IF EXISTS items\")\n        conn.commit()\n        cur.close()\n        conn.close()\n\n        # Initialize database\n        db.init_db()\n\n        # Verify table exists\n        conn = db.get_connection()\n        cur = conn.cursor()\n        cur.execute(\"\"\"\n            SELECT EXISTS (\n                SELECT FROM information_schema.tables\n                WHERE table_name = 'items'\n            )\n        \"\"\")\n        table_exists = cur.fetchone()&#91;0]\n        cur.close()\n        conn.close()\n\n        assert table_exists is True\n\n    def test_init_db_table_structure(self):\n        \"\"\"Test that items table has correct structure.\"\"\"\n        # Ensure table exists\n        db.init_db()\n\n        # Check table structure\n        conn = db.get_connection()\n        cur = conn.cursor()\n        cur.execute(\"\"\"\n            SELECT column_name, data_type, is_nullable\n            FROM information_schema.columns\n            WHERE table_name = 'items'\n            ORDER BY ordinal_position\n        \"\"\")\n        columns = cur.fetchall()\n        cur.close()\n        conn.close()\n\n        # Verify columns\n        assert len(columns) == 2\n        assert columns&#91;0]&#91;0] == 'id'\n        assert columns&#91;1]&#91;0] == 'name'\n        assert columns&#91;1]&#91;2] == 'NO'  # name is NOT NULL\n\n\nclass TestInsertItem:\n    \"\"\"Test cases for insert_item function.\"\"\"\n\n    def setup_method(self):\n        \"\"\"Setup test database before each test.\"\"\"\n        db.init_db()\n        # Clean up any existing items\n        conn = db.get_connection()\n        cur = conn.cursor()\n        cur.execute(\"DELETE FROM items\")\n        conn.commit()\n        cur.close()\n        conn.close()\n\n    def test_insert_item_success(self):\n        \"\"\"Test successful item insertion.\"\"\"\n        db.insert_item(\"Test Item\")\n\n        # Verify item was inserted\n        conn = db.get_connection()\n        cur = conn.cursor()\n        cur.execute(\"SELECT name FROM items WHERE name = %s\", (\"Test Item\",))\n        result = cur.fetchone()\n        cur.close()\n        conn.close()\n\n        assert result is not None\n        assert result&#91;0] == \"Test Item\"\n\n    def test_insert_item_with_special_characters(self):\n        \"\"\"Test item insertion with special characters.\"\"\"\n        special_name = \"Item's \\\"special\\\" name &amp; symbols\"\n        db.insert_item(special_name)\n\n        # Verify item was inserted\n        conn = db.get_connection()\n        cur = conn.cursor()\n        cur.execute(\"SELECT name FROM items WHERE name = %s\", (special_name,))\n        result = cur.fetchone()\n        cur.close()\n        conn.close()\n\n        assert result is not None\n        assert result&#91;0] == special_name\n\n    def test_insert_item_with_japanese_characters(self):\n        \"\"\"Test item insertion with Japanese characters.\"\"\"\n        japanese_name = \"\u65e5\u672c\u8a9e\u30a2\u30a4\u30c6\u30e0\"\n        db.insert_item(japanese_name)\n\n        # Verify item was inserted\n        conn = db.get_connection()\n        cur = conn.cursor()\n        cur.execute(\"SELECT name FROM items WHERE name = %s\", (japanese_name,))\n        result = cur.fetchone()\n        cur.close()\n        conn.close()\n\n        assert result is not None\n        assert result&#91;0] == japanese_name\n\n~\u7701\u7565~\n\nclass TestDeleteItem:\n    \"\"\"Test cases for delete_item function.\"\"\"\n\n    def setup_method(self):\n        \"\"\"Setup test database before each test.\"\"\"\n        db.init_db()\n        # Clean up any existing items\n        conn = db.get_connection()\n        cur = conn.cursor()\n        cur.execute(\"DELETE FROM items\")\n        conn.commit()\n        cur.close()\n        conn.close()\n\n    def test_delete_item_success(self):\n        \"\"\"Test successful item deletion.\"\"\"\n        db.insert_item(\"Item to Delete\")\n        items = db.get_all_items()\n        item_id = items&#91;0]&#91;\"id\"]\n\n        result = db.delete_item(item_id)\n\n        assert result == 1\n\n        # Verify item was deleted\n        remaining_items = db.get_all_items()\n        assert len(remaining_items) == 0\n\n    def test_delete_item_not_found(self):\n        \"\"\"Test delete_item returns 0 when item doesn't exist.\"\"\"\n        result = db.delete_item(999999)\n\n        assert result == 0\n\n    def test_delete_item_leaves_other_items(self):\n        \"\"\"Test that deleting one item doesn't affect others.\"\"\"\n        db.insert_item(\"Item 1\")\n        db.insert_item(\"Item 2\")\n        db.insert_item(\"Item 3\")\n\n        items = db.get_all_items()\n        middle_item_id = items&#91;1]&#91;\"id\"]\n\n        result = db.delete_item(middle_item_id)\n\n        assert result == 1\n\n        # Verify only the specified item was deleted\n        remaining_items = db.get_all_items()\n        assert len(remaining_items) == 2\n        assert remaining_items&#91;0]&#91;\"name\"] == \"Item 1\"\n        assert remaining_items&#91;1]&#91;\"name\"] == \"Item 3\"\n<\/code><\/pre>\n\n\n\n<p>\u3061\u3083\u3093\u3068\u5dee\u5206\u3092\u62bd\u51fa\u3057\u305f\u3068\u3053\u308d\u3060\u3051\u306e\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u304c\u4f5c\u6210\u3067\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6307\u5b9a\u3057\u305f\u901a\u308aMock\u3082\u4f7f\u3063\u3066\u3044\u306a\u3044\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u7d42\u308f\u308a\u306b<\/h1>\n\n\n\n<p>\u751f\u6210AI\u3068CI\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u4f55\u304b\u5b9f\u88c5\u3057\u305f\u3044\u306a\u3068\u306f\u524d\u3005\u304b\u3089\u8003\u3048\u3066\u3044\u305f\u305f\u3081\u3001\u4eca\u56de\u305d\u308c\u3092\u5f62\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3066\u3088\u304b\u3063\u305f\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3042\u307e\u308a\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u751f\u6210AI\u306b\u4f5c\u3063\u3066\u3082\u3089\u3046\u7d4c\u9a13\u304c\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u4f55\u3082\u8003\u3048\u305a\u306b\u305d\u306e\u307e\u307e\u5b9f\u88c5\u3057\u3066\u3057\u307e\u3046\u306e\u306f\u304b\u306a\u308a\u5371\u967a\u3067\u3042\u308b\u3068\u611f\u3058\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>Calude Code\u306e\u300c\u89aa\u5207\u5fc3\u300d\u3067\u30e2\u30c3\u30af\u3067\u5b9f\u88c5\u304c\u306a\u3044\u306e\u306b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3060\u3051\u4f5c\u3063\u3066\u3057\u307e\u3046\u3068\u3044\u3046\u306e\u306f\u3001\u5b9f\u969b\u306b\u52d5\u4f5c\u3084\u8abf\u67fb\u3092\u3057\u3066\u3044\u306a\u3044\u3068\u5206\u304b\u3089\u306a\u304b\u3063\u305f\u60c5\u5831\u3067\u3042\u308a\u3001\u5927\u5909\u52c9\u5f37\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3068\u3044\u3046\u89b3\u70b9\u3067\u751f\u6210AI\u3092\u5229\u7528\u3057\u307e\u3057\u305f\u304c\u304d\u3063\u3068\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u3054\u3068\u306b\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3084\u30a2\u30f3\u30c1\u30d1\u30bf\u30fc\u30f3\u304c\u5b58\u5728\u3059\u308b\u3068\u601d\u3046\u306e\u3067\u3001\u8abf\u67fb\u3057\u306a\u304c\u3089\u5229\u7528\u3057\u3066\u3044\u3051\u305f\u3089\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305f\u4eca\u5f8c\u3055\u3089\u306b\u30c1\u30e3\u30ec\u30f3\u30b8\u3057\u305f\u3044\u3053\u3068\u3068\u3057\u3066\u30c6\u30b9\u30c8\u5b9f\u884c\u306e\u81ea\u52d5\u5316(MPC\u7528\u3044\u305f\u3082\u306e)\u306a\u3069\u884c\u3063\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002\u6210\u679c\u304c\u51fa\u305f\u3089\u8a18\u4e8b\u306b\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u203b\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u306fGenSpark\u306b\u4f5c\u6210\u3057\u3066\u3082\u3089\u3044\u307e\u3057\u305f\u3002 \u306f\u3058\u3081\u306b \u73fe\u5728\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\u3067\u306f\u3001\u30c1\u30fc\u30e0\u3067\u306e\u8ab2\u984c\u3068\u3057\u3066\u751f\u6210AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u99c6\u52d5\u306e\u4e8b\u4f8b\u306b\u3064\u3044\u3066\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u307e\u305f\u306f\u5148\u65e5\u958b\u50ac\u3055\u308c\u307e\u3057\u305fLT\u4f1a\u300c[\u3010AI\u99c6 [&#8230;]<\/p>\n","protected":false},"author":211,"featured_media":81309,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[985,1051],"tags":[260,1140,100],"class_list":["post-81148","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-driven-dev","category-h-sugiyama","tag-cicd","tag-claude-code","tag-gitlab"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>GitLab CI\u3067Claude Code\u306b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3057\u3066\u3082\u3089\u3063\u305f\u969b\u306etips - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"AI\u99c6\u52d5\u958b\u767a(AIDD), h-sugiyama |\u203b\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u306fGenSpark\u306b\u4f5c\u6210\u3057\u3066\u3082\u3089\u3044\u307e\u3057\u305f\u3002 \u306f\u3058\u3081\u306b\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai-driven-dev\/81148\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GitLab CI\u3067Claude Code\u306b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3057\u3066\u3082\u3089\u3063\u305f\u969b\u306etips - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"AI\u99c6\u52d5\u958b\u767a(AIDD), h-sugiyama |\u203b\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u306fGenSpark\u306b\u4f5c\u6210\u3057\u3066\u3082\u3089\u3044\u307e\u3057\u305f\u3002 \u306f\u3058\u3081\u306b\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai-driven-dev\/81148\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2025-12-11T09:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/12\/claude_gitlab_icon.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1376\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"SugiyamaHaruki\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"SugiyamaHaruki\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"9\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai-driven-dev\\\/81148#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai-driven-dev\\\/81148\"},\"author\":{\"name\":\"SugiyamaHaruki\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/ad78b1a0e266d91d08fa55058698d915\"},\"headline\":\"GitLab CI\u3067Claude Code\u306b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3057\u3066\u3082\u3089\u3063\u305f\u969b\u306etips\",\"datePublished\":\"2025-12-11T09:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai-driven-dev\\\/81148\"},\"wordCount\":130,\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai-driven-dev\\\/81148#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2025\\\/12\\\/claude_gitlab_icon.jpeg\",\"keywords\":[\"CICD\",\"Claude Code\",\"gitlab\"],\"articleSection\":[\"AI\u99c6\u52d5\u958b\u767a(AIDD)\",\"h-sugiyama\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai-driven-dev\\\/81148\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai-driven-dev\\\/81148\",\"name\":\"GitLab CI\u3067Claude Code\u306b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3057\u3066\u3082\u3089\u3063\u305f\u969b\u306etips - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai-driven-dev\\\/81148#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai-driven-dev\\\/81148#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2025\\\/12\\\/claude_gitlab_icon.jpeg\",\"datePublished\":\"2025-12-11T09:30:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/ad78b1a0e266d91d08fa55058698d915\"},\"description\":\"AI\u99c6\u52d5\u958b\u767a(AIDD), h-sugiyama |\u203b\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u306fGenSpark\u306b\u4f5c\u6210\u3057\u3066\u3082\u3089\u3044\u307e\u3057\u305f\u3002 \u306f\u3058\u3081\u306b\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai-driven-dev\\\/81148#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai-driven-dev\\\/81148\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai-driven-dev\\\/81148#primaryimage\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2025\\\/12\\\/claude_gitlab_icon.jpeg\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2025\\\/12\\\/claude_gitlab_icon.jpeg\",\"width\":1376,\"height\":768},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai-driven-dev\\\/81148#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ChatGPT\uff06AI\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"AI\u99c6\u52d5\u958b\u767a(AIDD)\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai-driven-dev\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"GitLab CI\u3067Claude Code\u306b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3057\u3066\u3082\u3089\u3063\u305f\u969b\u306etips\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/ad78b1a0e266d91d08fa55058698d915\",\"name\":\"SugiyamaHaruki\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/IMG_8618-230x230.jpg\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/IMG_8618-230x230.jpg\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/IMG_8618-230x230.jpg\",\"caption\":\"SugiyamaHaruki\"},\"description\":\"\u30af\u30e9\u30a6\u30c9\u306b\u8208\u5473\u304c\u3042\u308a\u307e\u3059\u3002 \u97f3\u697d\u3068\u8d70\u308b\u3053\u3068\u304c\u597d\u304d\u3067\u3059\u3002\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/h-sugiyama\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GitLab CI\u3067Claude Code\u306b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3057\u3066\u3082\u3089\u3063\u305f\u969b\u306etips - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"AI\u99c6\u52d5\u958b\u767a(AIDD), h-sugiyama |\u203b\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u306fGenSpark\u306b\u4f5c\u6210\u3057\u3066\u3082\u3089\u3044\u307e\u3057\u305f\u3002 \u306f\u3058\u3081\u306b","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai-driven-dev\/81148","og_locale":"ja_JP","og_type":"article","og_title":"GitLab CI\u3067Claude Code\u306b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3057\u3066\u3082\u3089\u3063\u305f\u969b\u306etips - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"AI\u99c6\u52d5\u958b\u767a(AIDD), h-sugiyama |\u203b\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u306fGenSpark\u306b\u4f5c\u6210\u3057\u3066\u3082\u3089\u3044\u307e\u3057\u305f\u3002 \u306f\u3058\u3081\u306b","og_url":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai-driven-dev\/81148","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2025-12-11T09:30:00+00:00","og_image":[{"width":1376,"height":768,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/12\/claude_gitlab_icon.jpeg","type":"image\/jpeg"}],"author":"SugiyamaHaruki","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"SugiyamaHaruki","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"9\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai-driven-dev\/81148#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai-driven-dev\/81148"},"author":{"name":"SugiyamaHaruki","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/ad78b1a0e266d91d08fa55058698d915"},"headline":"GitLab CI\u3067Claude Code\u306b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3057\u3066\u3082\u3089\u3063\u305f\u969b\u306etips","datePublished":"2025-12-11T09:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai-driven-dev\/81148"},"wordCount":130,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai-driven-dev\/81148#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/12\/claude_gitlab_icon.jpeg","keywords":["CICD","Claude Code","gitlab"],"articleSection":["AI\u99c6\u52d5\u958b\u767a(AIDD)","h-sugiyama"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai-driven-dev\/81148","url":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai-driven-dev\/81148","name":"GitLab CI\u3067Claude Code\u306b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3057\u3066\u3082\u3089\u3063\u305f\u969b\u306etips - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai-driven-dev\/81148#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai-driven-dev\/81148#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/12\/claude_gitlab_icon.jpeg","datePublished":"2025-12-11T09:30:00+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/ad78b1a0e266d91d08fa55058698d915"},"description":"AI\u99c6\u52d5\u958b\u767a(AIDD), h-sugiyama |\u203b\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u306fGenSpark\u306b\u4f5c\u6210\u3057\u3066\u3082\u3089\u3044\u307e\u3057\u305f\u3002 \u306f\u3058\u3081\u306b","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai-driven-dev\/81148#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai-driven-dev\/81148"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai-driven-dev\/81148#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/12\/claude_gitlab_icon.jpeg","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/12\/claude_gitlab_icon.jpeg","width":1376,"height":768},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai-driven-dev\/81148#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"ChatGPT\uff06AI","item":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai"},{"@type":"ListItem","position":3,"name":"AI\u99c6\u52d5\u958b\u767a(AIDD)","item":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai-driven-dev"},{"@type":"ListItem","position":4,"name":"GitLab CI\u3067Claude Code\u306b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3057\u3066\u3082\u3089\u3063\u305f\u969b\u306etips"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/ad78b1a0e266d91d08fa55058698d915","name":"SugiyamaHaruki","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/09\/IMG_8618-230x230.jpg","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/09\/IMG_8618-230x230.jpg","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/09\/IMG_8618-230x230.jpg","caption":"SugiyamaHaruki"},"description":"\u30af\u30e9\u30a6\u30c9\u306b\u8208\u5473\u304c\u3042\u308a\u307e\u3059\u3002 \u97f3\u697d\u3068\u8d70\u308b\u3053\u3068\u304c\u597d\u304d\u3067\u3059\u3002","url":"https:\/\/www.creationline.com\/tech-blog\/author\/h-sugiyama"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/81148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/211"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=81148"}],"version-history":[{"count":23,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/81148\/revisions"}],"predecessor-version":[{"id":81313,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/81148\/revisions\/81313"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/81309"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=81148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=81148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=81148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}