Repository navigation
Backend ste100 writing rules #1898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| { | ||
| "hooks": { | ||
| "PostToolUse": [ | ||
| { | ||
| "matcher": "Write|Edit|MultiEdit", | ||
| "hooks": [ | ||
| { | ||
| "type": "command", | ||
| "command": "node \"${CLAUDE_PROJECT_DIR:-.}/scripts/ste-check.mjs\" --hook", | ||
| "timeout": 20 | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| --- | ||
| name: ste100 | ||
| description: Rewrite a plan, an architecture record or a comment block with the ASD-STE100 writing rules, then run scripts/ste-check.mjs until it reports no error. Use when the user asks to apply the writing rules to a file, or when the writing-rules hook reports findings that need a rewrite. | ||
| --- | ||
|
|
||
| # Apply the ASD-STE100 writing rules | ||
|
|
||
| Input: one or more file paths. Default: the files the current change touches | ||
| (`git diff --name-only main`). | ||
|
|
||
| 1. Read the rules in `../sitenova/architecture-design-records/STE100-WRITING-RULES.md`, or the summary in | ||
| `CLAUDE.md` when the sibling checkout is absent. Sections 4 to 6 and | ||
| section 11 matter most. | ||
| 2. Run `node scripts/ste-check.mjs <file>` and read every finding. | ||
| 3. Rewrite each reported sentence. Keep the meaning. Keep every identifier, path, number and date. | ||
|
Comment on lines
+14
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Limit findings to the requested text. The checker scans the entire file, but step 4 prohibits rewriting untouched paragraphs. For example, an unchanged paragraph in
|
||
| Do not change code, string literals, model prompts or test names. | ||
| 4. In a file with old text, rewrite only the paragraphs the user named, or the paragraphs the | ||
| change touches. Old text stays as it is. | ||
| 5. Run the checker again. Repeat until it reports no error. A warning needs judgment: fix it when | ||
| the rule applies, leave it when the sentence is correct. | ||
| 6. Report the counts before and after. List each warning you left, with one reason. | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Include untracked files in the default input.
git diff --name-only mainomits untracked files. If the current change adds a new file, the skill can skip it entirely. Include untracked files, for example withgit ls-files --others --exclude-standard.