Skip to content

実装: VC の grep 対象文字列と Markdown バッククォート表記の干渉回避ガイドラインを body-authoring.md に追記する #155

Open

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: none
goal_ref: "VC の grep 対象文字列と Markdown バッククォート表記が干渉するパターンのベストプラクティスを body-authoring.md に追記し、Issue 起票時に AI が自律的にこの問題を回避できるようにする"
change_kind: docs

Parent Issue

なし(単独改善)

Parent Goal Ref

Current Validated Scope

  • .claude/skills/create-issue/references/body-authoring.md の「VC 作成の決定論的ルール」セクションに、grep/rg の対象文字列にバッククォートを含めない(または escaped でマッチする)ベストプラクティスを追記する

Remaining Parent Gaps

なし

Outcome

.claude/skills/create-issue/references/body-authoring.md に「VC の grep 対象文字列は Markdown バッククォート表記と干渉しないよう、バッククォートを除いた形で検索するか、ファイル内の実際の表記に合わせる」旨のガイドラインが追記された状態が main にマージされている。

In Scope

  • body-authoring.md の「VC 作成の決定論的ルール」または適切なセクションに以下を追記:
    • Markdown 内にバッククォートを含む語句(例: `plan` permission mode)を grep/rg の対象文字列にする場合の注意点
    • 推奨パターン: バッククォートを外した連続文字列(plan permission mode)で検索する、またはドキュメント表記をバッククォートなしにする
    • 代替パターン: grep -F でバッククォートをリテラルマッチ(grep -F '`plan` permission mode')するが、ドキュメント表記との整合を先に確認する

Out of Scope

  • 既存 Issue の VC を遡及して修正すること
  • body-authoring.md のその他セクションの変更
  • review-issue / create-issue スクリプトへの検証ロジック追加

Acceptance Criteria

  • AC1: body-authoring.md にバッククォートと grep 対象文字列の干渉に関するガイドラインが追記されている
  • AC2: 同ガイドラインに推奨パターン(バッククォートなし連続文字列 or grep -F でのリテラルマッチ)が少なくとも 1 つ例示されている

Verification Commands

# AC1: body-authoring.md にバッククォート干渉の記述が存在する
grep -n "バッククォート\|backtick\|grep.*-F" .claude/skills/create-issue/references/body-authoring.md

# AC2: 推奨パターンの例示が存在する
grep -n "推奨\|recommended\|例:" .claude/skills/create-issue/references/body-authoring.md | grep -i "バッククォート\|backtick\|grep"

# Standard gates
pnpm typecheck
pnpm lint
pnpm test
pnpm build
uv run pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.py

Allowed Paths

  • .claude/skills/create-issue/references/body-authoring.md

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • body-authoring.md の大規模リファクタが必要になった場合
  • 新規 Issue の起票やスコープ分割が必要と判断した場合
  • nested SubAgent delegation が必要になった場合
  • ADR 起票が必要な設計判断が発生した場合

Required Skills

なし

Delivery Rule

  • 1 Issue = 1 PR 原則
  • Draft PR 既定

Notes

Activity

  1. added
    enhancement
    state/queued
    on May 21, 2026
  2. squne121 commented on May 21, 2026

    @squne121
    OwnerAuthor

    create-issue transaction partial-failure

    Issue: #155
    Failure stage: label-readback
    Message: label read-back mismatch

    Requested:

    • labels: enhancement,state/queued
    • parent: (none)
    • dependencies: (none)
      Completed steps: create, label

    Failure context:
    matching_issue_numbers=[155]
    issue_number=155

    Recovery hint: label-readback failed for #155.
    Manual re-apply command (idempotent: yes):
    gh issue edit 155 --repo squne121/loop-protocol --add-label
    Verify:
    gh issue view 155 --repo squne121/loop-protocol --json labels

    Please recover deterministically before re-running the create issue transaction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementstate/queued

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions