Answer stability round 1: cite the shortened false-claim heading, keep the API-spec and tagline rules in CLAUDE.md, load the comment rules with any file, and name the judge's two rule sources apart
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
---
|
||||
paths:
|
||||
- "**/*openapi*"
|
||||
- "**/*swagger*"
|
||||
- "**/api-docs/**"
|
||||
---
|
||||
|
||||
# Public API specs
|
||||
- Text in public API specs (OpenAPI `description`/`title` fields and the generated api-docs) is read by external consumers. Never leak internal references: no ticket IDs, internal URLs, repo/system code-names, "see ticket X". Describe behaviour in consumer terms. GOOD: `Deprecated alias for paymentAccountId`. BANNED: `…will be removed (ABC-123)`.
|
||||
- The opposite of internal code comments, which *may* cite a ticket for a footgun/constraint.
|
||||
+1
-3
@@ -1,8 +1,6 @@
|
||||
---
|
||||
paths:
|
||||
- "**/*.{c,cpp,cs,go,h,java,js,jsx,kt,md,mjs,php,py,rb,rs,sh,sql,swift,toml,ts,tsx,yaml,yml}"
|
||||
- "**/Dockerfile*"
|
||||
- "**/bin/*"
|
||||
- "**/*"
|
||||
---
|
||||
|
||||
# Comments and documentation
|
||||
|
||||
+1
-2
@@ -3,7 +3,7 @@ paths:
|
||||
- "**/todo.md"
|
||||
---
|
||||
|
||||
# Todo items (`todo.md`, tickets, plans)
|
||||
# Todo items (`todo.md`)
|
||||
|
||||
- **`todo.md` is mandatory in every project, in one shape**, which `~/.claude/bin/rank_todo.py` checks and ranks; its `--help` shows a valid file. `## Scoring` holds the formula, the bar and the goal weights; `## Items` is one table of every item; `## Details` holds each item's detail under its ID. Cite an item by its ID. The formula, bar and weights are the project's own to tune.
|
||||
- **Score an item when it is filed or edited.** Each of R, S, A and G is a whole number from 1 to 10:
|
||||
@@ -13,5 +13,4 @@ paths:
|
||||
- **G** — its value to the goals it cites in the Goals column; W is the weight of the heaviest of them.
|
||||
- **An item scoring under the bar is deleted, with every item that needs it, and a finding under the bar is not filed.** The chunk's summary names each, with its score.
|
||||
- **The Exempt cell keeps an item whatever its score:** `security` for a security finding, `defect` for a 🔴 finding, `question` for a question only the human can answer, `decision` for an item `docs/decisions.md` cites, and, where no other reason fits, `principle` for a 🟡 finding against a file under `~/.claude/principles/`, whose item's detail names that principle. Every item `docs/decisions.md` cites carries one of these reasons.
|
||||
- Open each item with a bold one-sentence tagline, so the taglines alone say what a release holds. The tagline states the target state, checkable when done: an imperative verb plus what holds afterwards. A present-tense fact reads as the current state and says nothing about what to do. Add "today X" only where the direction is otherwise ambiguous. GOOD: `**Accept undefined in MetadataValue and drop such keys on output.**` BANNED: `MetadataValue accepts undefined; such keys are dropped on output`.
|
||||
- **Unless the project has a reason to differ, weigh goals by position, the first heaviest.** When the weights stop listing the README's goals, `rank_todo.py` fails and prints those weights.
|
||||
|
||||
Reference in New Issue
Block a user