diff-project
Skill8 starsChanged 7 months agoMITView on GitHub
Shows what changed in dotforge since the project's last sync, to decide whether running /forge sync is worthwhile.
In this repository21 other files it gives its agents.
- .claude/rules/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- audit-projectSkill
- benchmarkSkill
- bootstrap-projectSkill
- capture-practiceSkill
- domain-extractSkill
- export-configSkill
- forge-behaviorSkill
- init-projectSkill
- learn-projectSkill
- mcp-addSkill
- plugin-generatorSkill
- reset-projectSkill
- rule-effectivenessSkill
- scout-reposSkill
- session-insightsSkill
- sync-all-reposSkill
- sync-templateSkill
- update-practicesSkill
- watch-upstreamSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
If no dotforge_version is registered (null), report:
- Very specific: line 24
If .claude/.forge-manifest.json exists in the current project:
- Distinctive: line 25
Read it and get the version and file hashes
- Distinctive: line 29
Use the manifest version as baseline (more precise than the registry)
- Distinctive: line 31
If manifest does NOT exist, continue to Step 3 using git log.
- Very specific: line 43
If the tag does not exist, use last_sync as reference:
- Distinctive: line 48
If there are no relevant commits, report:
- Distinctive: line 75
If there are relevant changes:
- Distinctive: line 80
If there are only cosmetic changes or changes in unused stacks:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Diff Project
Show what changed in dotforge since the last synchronization of the current project.
Step 1: Identify project baseline
- Read
$DOTFORGE_DIR/registry/projects.yml - Find the current project by
path(compare with$PWD) - Get
dotforge_versionandlast_sync - If no
dotforge_versionis registered (null), report:
And stop.Project not synced — no baseline to compare against. Run /forge sync to establish baseline.
Step 2: Verify local manifest
If .claude/.forge-manifest.json exists in the current project:
- Read it and get the version and file hashes
- For each file in the manifest, calculate
shasum -a 256 <file> | cut -d' ' -f1 - Compare against the registered hash
- Report locally modified files (hash differs) and deleted files
- Use the manifest version as baseline (more precise than the registry)
If manifest does NOT exist, continue to Step 3 using git log.
Step 3: Detect changes in dotforge
Run in $DOTFORGE_DIR/:
git log --oneline v<version>..HEAD -- template/ stacks/Where <version> is the tag corresponding to the project's dotforge_version.
If the tag does not exist, use last_sync as reference:
git log --oneline --since="<last_sync>" -- template/ stacks/If there are no relevant commits, report:
dotforge has no changes in template/stacks since v<version>.
Project is up to date.Step 4: Show change summary
For each modified file in template/ or relevant stacks/ for the project:
═══ DIFF dotforge: v<previous> → v<current> ═══
Project: <name> (last sync: <date>)
Files modified in dotforge:
template/hooks/block-destructive.sh — <diff summary>
template/rules/_common.md — <diff summary>
stacks/python-fastapi/rules/backend.md — <diff summary>
Local files with modifications (vs manifest):
.claude/rules/_common.md — hash differs from deployedFilter stacks/ to show only the stacks used by the project (read from registry).
Step 5: Recommend action
If there are relevant changes:
Recommendation: run /forge sync to incorporate these changes.If there are only cosmetic changes or changes in unused stacks:
Changes do not affect this project. Sync is not necessary.Installation
This skill is installed automatically if the skills/ symlink already exists in ~/.claude/skills/. If not, create the symlink:
ln -sf $DOTFORGE_DIR/skills ~/.claude/skillsDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

