Loading...
Loading...
Compare original and translation side by side
.claude/rules/*.md.claude/rules/~/.claude/CLAUDE.md.claude/rules/*.md.claude/rules/~/.claude/CLAUDE.mdwc -lwc -lchurngit log --since="<date>" --oneline --no-merges | wc -lfilesgit ls-files | wc -l| churn | files | N |
|---|---|---|
| < 20 | < 100 | 1 |
| 20 – 59 | 100 – 499 | 2 |
| 60 – 149 | 500 – 1999 | 3 |
| ≥ 150 | ≥ 2000 | 4 |
plugins/scripts/ + tests/churngit log --since="<date>" --oneline --no-merges | wc -lfilesgit ls-files | wc -l| churn | files | N |
|---|---|---|
| < 20 | < 100 | 1 |
| 20 – 59 | 100 – 499 | 2 |
| 60 – 149 | 500 – 1999 | 3 |
| ≥ 150 | ≥ 2000 | 4 |
plugins/scripts/ + tests/CLAUDE.mdCLAUDE.mdwc -l.claude/rules/*.mdgit log -1 --format="%ai" -- <path>git log -1 --format="%ai" -- CLAUDE.md<last_claudemd_date>git log --reverse --format="%ai" | head -1git log --since="<last_claudemd_date>" --oneline --no-merges | wc -lgit ls-files | wc -lgit ls-files | awk -F/ 'NF>1{print $1}' | sort -u | wc -lCLAUDE.mdwc -l.claude/rules/.claude/rules/*.mdgit log -1 --format="%ai" -- <path>git log -1 --format="%ai" -- CLAUDE.md<last_claudemd_date>git log --reverse --format="%ai" | head -1git log --since="<last_claudemd_date>" --oneline --no-merges | wc -lgit ls-files | wc -lgit ls-files | awk -F/ 'NF>1{print $1}' | sort -u | wc -l3 + Nsubagent_type: Exploresubagent_type: Explore.claude/rules/sourcenameline_countclassification_hintdangling_references## Topic Filesunreferenced_topic_filessections[{source, name, line_count, classification_hint, promote_back_candidate}]stale_items[{source, item, reason}]duplications[{items, locations}]existing_topic_files[{path, line_count, last_touched, subject, section_count}]dangling_references[]unreferenced_topic_files[]subagent_type: Exploregit log --since="<claudemd_last_touched>" --format="%s%n%b" --no-mergesgit log --since="<topic_file_last_touched>" --format="%s%n%b" --no-merges -- <directories the topic file covers>plugins/*/hooks/git log --reverse --format="%ai" | head -1new_subsystemsarchitecture_changesconvention_changesremoved_featuresotherper_file[{path, last_touched, changes_since{new_subsystems, architecture_changes, convention_changes, removed_features, other}}]subagent_type: Exploretech_stackpatternsconventionscommandsgotchastopic_file_candidates[{filename, subject}]3 + N3 + Nsubagent_type: Exploresubagent_type: Explore.claude/rules/sourcenameline_countclassification_hintdangling_references## Topic Filesunreferenced_topic_filessections[{source, name, line_count, classification_hint, promote_back_candidate}]stale_items[{source, item, reason}]duplications[{items, locations}]existing_topic_files[{path, line_count, last_touched, subject, section_count}]dangling_references[]unreferenced_topic_files[]subagent_type: Exploregit log --since="<claudemd_last_touched>" --format="%s%n%b" --no-mergesgit log --since="<topic_file_last_touched>" --format="%s%n%b" --no-merges -- <directories the topic file covers>plugins/*/hooks/git log --reverse --format="%ai" | head -1new_subsystemsarchitecture_changesconvention_changesremoved_featuresotherper_file[{path, last_touched, changes_since{new_subsystems, architecture_changes, convention_changes, removed_features, other}}]subagent_type: Exploretech_stackpatternsconventionscommandsgotchastopic_file_candidates[{filename, subject}]3 + Nkeepupdatedeletepackage.jsonlsdemote → <topic-file>promote → CLAUDE.mdpromote_back_candidatedemotemove → <other-topic-file>adddangling_referencesunreferenced_topic_files## Topic Fileskeepupdatedeletepackage.jsonlsdemote → <topic-file>promote → CLAUDE.mdpromote_back_candidatedemotemove → <other-topic-file>adddangling_referencesunreferenced_topic_files## Topic Filescurrent + added + promoted_in − demoted − deletedpromoted_inkeepunderover (user override)current + added + promoted_in − demoted − deletedpromoted_inkeepunderover (user override)<current> → <estimated><status>package.json<current> → <estimated><current> → <estimated><status>package.json<current> → <estimated>cp CLAUDE.md CLAUDE.md.bak.claude/rules/mkdir -p## Topic Files## Topic Files## Topic Filesundefinedcp CLAUDE.md CLAUDE.md.bak.claude/rules/mkdir -p## Topic Files## Topic Files## Topic Filesundefined.claude/rules/testing.md.claude/rules/hooks.md
The load-trigger phrase is generated from the topic file's subject, not copied from a heading.
Use `Edit` for targeted changes when most of CLAUDE.md is staying. Use `Write` only if more than 60% of the file is changing — at that point the document is being regenerated rather than updated.
Exit condition: all files written, `## Topic Files` section reflects actual disk state..claude/rules/testing.md.claude/rules/hooks.md
加载触发语句根据主题文件的主题生成,而非复制自标题。
当CLAUDE.md的大部分内容保留时,使用`Edit`进行针对性修改。只有当超过60%的内容需要变更时才使用`Write`——此时文档相当于重新生成而非更新。
退出条件:所有文件已写入,`## Topic Files`章节反映实际磁盘状态。<before> → <after><budget status><before> → <after>CLAUDE.md.bakdiff CLAUDE.md.bak CLAUDE.mdCLAUDE.md.bak<before> → <after><budget status><before> → <after>CLAUDE.md.bakdiff CLAUDE.md.bak CLAUDE.mdCLAUDE.md.bak