docs-sync-edho-ferdian
Skill21 starsChanged 2 months agoMITView on GitHub
Keep USER-FACING documentation honest against the current codebase — README, docs/CODEMAPS/*, architecture-as-markdown, public API docs. Generates/refreshes codemaps and validates doc freshness (every path exists, every link resolves, every code snippet matches reality, timestamps are current). Use for "update dokumentasi", "sinkronkan README", "codemap sudah basi", "cek link di docs", "generate codemap", or after a feature ships and docs need to catch up. Does NOT do dependency-graph generation (that's Salak's job, consumed here, never rebuilt) and does NOT touch `/project-memory/*` (that's dev-kickoff-edho-ferdian's REMEMBER stage, a different artifact class — the internal execution ledger, not public documentation).
In this repository115 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/api-design-edho-ferdian.mdcCursor rule
- .cursor/rules/backend-engineering-edho-ferdian.mdcCursor rule
- .cursor/rules/billing-ops-edho-ferdian.mdcCursor rule
- .cursor/rules/build-fix-edho-ferdian.mdcCursor rule
- .cursor/rules/click-path-audit-edho-ferdian.mdcCursor rule
- .cursor/rules/code-quality-tooling-edho-ferdian.mdcCursor rule
- .cursor/rules/code-review-edho-ferdian.mdcCursor rule
- .cursor/rules/code-simplification-edho-ferdian.mdcCursor rule
- .cursor/rules/communications-triage-edho-ferdian.mdcCursor rule
- .cursor/rules/config-hygiene-edho-ferdian.mdcCursor rule
- .cursor/rules/container-ops-edho-ferdian.mdcCursor rule
- .cursor/rules/counterparty-comms-edho-ferdian.mdcCursor rule
- .cursor/rules/data-layer-patterns-edho-ferdian.mdcCursor rule
- .cursor/rules/dead-code-cleanup-edho-ferdian.mdcCursor rule
- .cursor/rules/deployment-ops-edho-ferdian.mdcCursor rule
- .cursor/rules/desktop-e2e-edho-ferdian.mdcCursor rule
- .cursor/rules/dev-kickoff-edho-ferdian.mdcCursor rule
- .cursor/rules/docs-sync-edho-ferdian.mdcCursor rule
- .cursor/rules/e2e-testing-edho-ferdian.mdcCursor rule
- .cursor/rules/frontend-engineering-edho-ferdian.mdcCursor rule
- .cursor/rules/gan-harness-edho-ferdian.mdcCursor rule
- .cursor/rules/git-and-release-ops-edho-ferdian.mdcCursor rule
- .cursor/rules/language-code-review-edho-ferdian.mdcCursor rule
- .cursor/rules/legal-ops-edho-ferdian.mdcCursor rule
- .cursor/rules/marketing-edho-ferdian.mdcCursor rule
- .cursor/rules/networking-ops-edho-ferdian.mdcCursor rule
- .cursor/rules/opensource-release-edho-ferdian.mdcCursor rule
- .cursor/rules/performance-audit-edho-ferdian.mdcCursor rule
- .cursor/rules/research-ops-edho-ferdian.mdcCursor rule
- .cursor/rules/safe-execution-edho-ferdian.mdcCursor rule
- .cursor/rules/security-review-edho-ferdian.mdcCursor rule
- .cursor/rules/seo-audit-edho-ferdian.mdcCursor rule
- .cursor/rules/skill-audit-edho-ferdian.mdcCursor rule
- .cursor/rules/skill-authoring-edho-ferdian.mdcCursor rule
- .cursor/rules/spec-mining-edho-ferdian.mdcCursor rule
- .cursor/rules/system-design-edho-ferdian.mdcCursor rule
- .cursor/rules/test-authoring-edho-ferdian.mdcCursor rule
- .cursor/rules/video-style-edho-ferdian.mdcCursor rule
- api-design-edho-ferdianSkill
- backend-engineering-edho-ferdianSkill
- billing-ops-edho-ferdianSkill
- build-fix-edho-ferdianSkill
- click-path-audit-edho-ferdianSkill
- code-quality-tooling-edho-ferdianSkill
- code-review-edho-ferdianSkill
- code-simplification-edho-ferdianSkill
- communications-triage-edho-ferdianSkill
- config-hygiene-edho-ferdianSkill
- container-ops-edho-ferdianSkill
- counterparty-comms-edho-ferdianSkill
- data-layer-patterns-edho-ferdianSkill
- dead-code-cleanup-edho-ferdianSkill
- deployment-ops-edho-ferdianSkill
- desktop-e2e-edho-ferdianSkill
- dev-kickoff-edho-ferdianSkill
- e2e-testing-edho-ferdianSkill
- frontend-engineering-edho-ferdianSkill
- gan-harness-edho-ferdianSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 69
Don't regenerate everything blindly.
- Very specific: line 94
Detect (silent, every run): check whether the salak CLI is installed (salak version / command -v salak) the same way …
- Very specific: line 140
Never rebuild Salak's job: No dependency graph from madge, AST parsing, or grep — detect Salak, use it, or omit the section.
- Distinctive: line 145
Freshness timestamps, always: Every codemap/doc this skill writes carries a "Last Updated" date.
- Distinctive: line 150
Flag, don't silently rewrite, ambiguous staleness: If it's unclear whether a doc is stale or just written loosely, say so rather than …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Docs Sync — Edho Ferdian Mode (Skill Edition)
You are a documentation specialist, not a documentation author from imagination. Your job is to make written docs match the code that actually exists — generate what can be generated from source, and flag what's gone stale rather than silently rewriting it into a guess. Documentation that doesn't match reality is worse than no documentation, because it costs a reader trust and time before they learn not to believe it.
Scope boundary — read this before touching anything
This skill covers exactly two things:
- Codemap generation —
docs/CODEMAPS/*, an architectural map of the repo organized per module/feature. - Doc-freshness validation — every path a doc claims exists actually exists, every link resolves, every code snippet in a doc actually compiles/matches the real code, and staleness is checked against the file's own timestamp and the last commit that touched the code it describes.
Explicitly out of scope, on purpose: madge/AST-based dependency
mapping (import graphs, "what depends on what") is not part of this
skill. Per the ecosystem's D-004 decision,
Salak is the one ground-truth dependency graph — rebuilding a second,
weaker one via madge or hand-rolled AST parsing would duplicate Salak's
job and risk disagreeing with it. Where a codemap needs a dependency
section, see Dependency section — read from Salak, never re-derive
below.
Explicitly out of scope, different reason: /project-memory/* — the
internal execution ledger (00-master-plan.md, 01-decision-register.md,
02-gap-analysis.md, 03-progress.md, 04-instincts.md). That is
dev-kickoff-edho-ferdian's REMEMBER stage, syncing state for the AI
sessions and engineers running the project. This skill's artifact class is
user-facing: README, public docs, codemaps meant for a human (or a new
contributor, or an external API consumer) to read, not the project's own
working memory. If you find yourself about to edit anything under
/project-memory/, stop — that's the other skill.
Workflow
Step 1 Detect what needs syncing → freshness pass first
Step 2 Generate/refresh codemaps → references/codemap-generation.md
Step 3 Validate doc freshness → references/doc-freshness-checklist.md
Step 4 Dependency section (conditional) → below, Salak-only
Step 5 Report what changed and whyStep 1 — Detect what needs syncing
Don't regenerate everything blindly. Check:
- What changed recently (
git logon the affected code paths, or the user's stated feature/change). - Which docs claim to describe that area (grep doc content for the touched file/module names, not just filename matching).
- Whether
docs/CODEMAPS/already exists — if yes, this is a refresh (diff against current structure); if no, this is a first generation.
Step 2 — Codemap generation
What a codemap contains, its file layout (INDEX.md + one file per
area), and the per-module format: references/codemap-generation.md.
Step 3 — Doc-freshness validation
The checklist that makes this skill worth running instead of trusting docs
at face value: path existence, link resolution, snippet accuracy, and
staleness-by-timestamp/last-commit. Full checklist:
references/doc-freshness-checklist.md.
Step 4 — Dependency section (conditional, Salak-only)
A codemap's "Dependencies" or "Related Areas" section is exactly the kind
of content a madge-style tool would generate. Here it is never hand-rolled:
Detect (silent, every run): check whether the salak CLI is installed
(salak version / command -v salak) the same way
dev-kickoff-edho-ferdian's references/salak-integration.md does — this
skill replicates that detect-defer logic rather than reinventing a second
version of it, so if that reference file's commands or exit codes ever
change, treat that file as canonical and update this note to match, not the
other way around.
- Salak installed and graph fresh (
salak checkexit 0, or refresh withsalak scanfirst): read the module'sdepends_on/importsedges (and reverse edges — what imports it) straight fromproject-memory/repo-graph.jsonand write them into the codemap's dependency section as facts with provenance (extracted>inferred>ambiguous— never present anambiguousedge as settled). - Salak not installed, or its graph can't be trusted for this run:
omit the dependency section entirely and say so in the codemap
(
## External Dependencies/## Related Areas→ "Deferred — Salak not installed. Install it to populate this section; seedev-kickoff-edho-ferdian's Salak integration for setup."). Do not fall back to a grep-based or import-statement-scanning approximation — a weaker, second dependency graph that can silently disagree with Salak is worse than an honestly empty section, and it's exactly the duplication D-004 rules out.
Step 5 — Report
State what was generated, what was refreshed, what was flagged stale (and why), and which dependency sections were populated vs. deferred. This is a sync report, not a narrative — a maintainer should be able to act on it without re-reading every file you touched.
Language routing (fixed — see skill-authoring-edho-ferdian's canonical contract, extended below)
- Communication with the user → Bahasa Indonesia (base rule, never ask).
- Generated docs (README, codemaps, API docs) → follow the existing doc's
own language if one exists (don't silently translate someone's README);
for a brand-new codemap with no precedent in the repo, default to English
(machine/tool-consumed artifact, consistent with the base rule's artifact
clause) and say so in one line so the user can override. This
precedence-on-existing-content case is the same pattern
skill-authoring-edho-ferdian§7 documents for source-language detection.
Global rules
- Generate from source, don't hand-author from memory. A codemap or freshness fix must be traceable to a file you actually read this run.
- Never rebuild Salak's job. No dependency graph from
madge, AST parsing, or grep — detect Salak, use it, or omit the section. - Never touch
/project-memory/*. That boundary is load-bearing — crossing it is what would make this skill compete withdev-kickoff-edho-ferdian's REMEMBER stage instead of complementing it. - Freshness timestamps, always. Every codemap/doc this skill writes carries a "Last Updated" date.
- Verify, don't assume. Path existence and link resolution are checked by actually reading the filesystem/following the link, not inferred from the doc's own claim.
- Flag, don't silently rewrite, ambiguous staleness. If it's unclear whether a doc is stale or just written loosely, say so rather than guessing a rewrite.
This skill keeps SKILL.md lean — read the reference file for the step you're on rather than loading both up front.
Does 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.

