feat(aidd-context): check existing rules for overlap or conflicts during rule generation
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 64/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 領域
- tooling
調査の方向性
Start with plugins/aidd-context/skills/05-rule-generate/SKILL.md, then read 01-capture-rule.md, 02-write-rule.md, 03-validate.md, and references/tool-paths.md to understand the current flow and canonical rule surfaces. Add the pre-write assessment and approval gate without changing existing write or validation contracts; done means covered, overlap, conflict, needs review, and new cases identify relevant files and require an explicit user decision before writing.
索引モデルが issue の本文から書いたものです。
説明
Problem
aidd-context:05-rule-generate captures a rule intent, writes the rule for the selected target tools, then validates the generated files against the rule-authoring and tool-path contracts.
The workflow does not currently make comparison with the project's existing rules an explicit validation step before writing the candidate rule. As the rule corpus grows, a generated rule can duplicate an existing instruction, partially overlap it, contradict it, or introduce a different scope or priority for an already-covered concern.
This matters because repository-level AGENTS.md already requires checking whether an existing instruction, finding, or rule covers or contradicts a new one, then merging, removing, or clarifying it when necessary. The principle exists, but is not an explicit 05-rule-generate contract.
Scope
- Discover existing project rules relevant to the candidate before writing it through the canonical
05-rule-generate/references/tool-paths.mdreference; do not add a tool-specific path list to this assessment. - Assess the candidate policy, intent, and scope rather than comparing only its topic or title.
- Exclude expected cross-tool renderings of the same canonical policy from duplicate findings and filter rules whose scopes are disjoint from the candidate.
- Classify the candidate as
new,covered,overlap,conflict, orneeds review. - Surface the existing rule files involved in every non-
newresult. - Add an explicit pre-write assessment step between capture and write:
01 capture → 02 assess existing rules → 03 write → 04 validate. - Stop before writing until the user has explicitly chosen how to handle the assessment result.
- Offer resolutions such as keeping the existing rule, merging, updating, clarifying scope or priority, creating anyway, or cancelling.
- Require explicit user approval before modifying an existing rule.
- Keep this as a guard inside
05-rule-generate, not a new skill. - Preserve the existing write and validation contracts.
Acceptance criteria
- The workflow performs an explicit assessment step after capture and before writing.
- Rule sources are discovered through the canonical
05-rule-generate/references/tool-paths.mdreference. - Given a candidate whose policy is already expressed by an applicable existing rule,
rule-generateidentifies that rule before creating a duplicate. - Given compatible but partially redundant instructions, the workflow reports
overlapand identifies both rule sources. - Given
Always use pytest for unit testsandUse unittest for all unit tests, the workflow reportsconflictbefore writing the candidate. - Rules with disjoint scopes are excluded from overlap and conflict findings.
- Expected cross-tool renderings of the same canonical policy are not reported as duplicates.
- Each candidate is classified as
new,covered,overlap,conflict, orneeds review. - Every non-
newresult identifies the involved rule files. - The user makes an explicit decision before the candidate is written.
- The user can explicitly choose how to resolve an overlap or conflict.
- Existing rule files are never modified without explicit user approval.
- A candidate classified as
newcontinues through the existing write and validation workflow. - Existing structural, path, frontmatter, and per-tool validation behavior remains unchanged.
Prior art in this repo
AGENTS.md#L27already requires checking whether an existing instruction, finding, or rule covers or contradicts a new one before adding it.05-rule-generate/SKILL.md#L8-L19defines the current three-action flow: capture, write, validate; this issue adds the pre-write assessment step.tool-paths.mdis the canonical source for supported rule surfaces and target paths.01-capture-rule.md#L3-L28captures topic, category, slug, scope, and write mode; it does not define semantic comparison with the existing rule corpus.02-write-rule.md#L3-L26builds and renders the rule for supported tools.03-validate.md#L3-L22validates written files against the authoring and tool-path contracts, but does not define a cross-rule consistency check.
I searched the repository's open and closed issues and pull requests for an equivalent semantic duplicate, overlap, or conflict proposal. Issue #788 concerns current Kilo/OpenCode output paths, not semantic consistency, so it is not a duplicate.
Out of scope
- Auditing the complete existing rule corpus independently of generating a new rule; that is #792.
- Automatically rewriting, merging, or deleting existing rules without user approval.
- Defining a universal precedence system between all AI tools.
- Changing existing rule file formats or target-tool mappings.
- 主要言語
- TypeScript
- スター
- 481
- フォーク
- 45
- 平均マージ
- 17時間 40分
- マージ済み PR(30日)
- 106
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ai-driven-dev/framework のほかの issue
-
refactor(aidd-orchestrator): the check zone says when to stop, and reviews its axes in one round オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ai-driven-dev/framework#887 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
ai-driven-dev/framework#873 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
ai-driven-dev/framework#872 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
ai-driven-dev/framework#625 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ai-driven-dev/framework#467 · コメント 1 件 ·
ai-driven-dev/framework の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
calcite-components needs triage refactor
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Esri/calcite-design-system#15203 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
danielmiessler/LifeOS#2218 ·