Skip to content
Back to skills

Docs Sync Edho Ferdian

ASecurity

Keep user-facing docs true to the code: README, codemaps, architecture and API docs; every path, link and snippet checked. Use for "update dokumentasi", "sinkronkan README", "codemap sudah basi", "cek link di docs", "generate codemap", or after a feature ships.

  • 22 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 24, 2026
ai-agentsrustgogitapidocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add edhoferdian/EEF --skill docs-sync-edho-ferdian --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docs Sync Edho Ferdian?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docs Sync Edho Ferdian
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/edhoferdian-docs-sync-edho-ferdian/badge)](https://www.skillsdirectory.com/skills/edhoferdian-docs-sync-edho-ferdian)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: docs-sync-edho-ferdian
description: >-
  Keep user-facing docs true to the code: README, codemaps, architecture and
  API docs; every path, link and snippet checked. Use for "update
  dokumentasi", "sinkronkan README", "codemap sudah basi", "cek link di
  docs", "generate codemap", or after a feature ships.
metadata:
  last_reviewed: "2026-09-09"
---

# 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:

1. **Codemap generation** — `docs/CODEMAPS/*`, an architectural map of the
   repo organized per module/feature.
2. **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 why
```

### Step 1 — Detect what needs syncing

Don't regenerate everything blindly. Check:
- What changed recently (`git log` on 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 check .` exit 0, or refresh with
  `salak scan . --update` first):** ask for the module's edges with
  `salak query imports <file>` (and the reverse, `salak query importers
  <file>` — what imports it) rather than reading `repo-graph.json`, and
  write them into the codemap's dependency section as **facts with
  provenance** (`extracted` > `inferred` > `ambiguous` — never present an
  `ambiguous` edge 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; see
  `dev-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.

## Worked examples

`references/automated-checks.md` — scripts that check paths, links, compiling snippets and CLI-help drift; a README skeleton. Read it when doing the work, not before routing.

`references/worked-docs-sync.md` — a README and codemap refresh after a feature ships: detect, validate, report rows, and the commands that prove it.

## Usage

| You say | Mode or reference it loads | Parameters |
|---|---|---|
| "sinkronkan README, fitur baru sudah rilis" | Steps 1, 3, 5 | `docs` = README; `changed` = the feature or paths |
| "generate codemap" (no `docs/CODEMAPS/`) | Step 2 first generation, `references/codemap-generation.md` | `area` = whole repo or module |
| "codemap sudah basi" | Step 2 refresh against current structure | `area` optional |
| "cek link dan path di docs" | Step 3, `references/doc-freshness-checklist.md` and `references/automated-checks.md` | `docs` = files or folder |
| "tambahin dependensi di codemap" | Step 4, only if Salak is installed and fresh | `area` = module |

| Parameter | Required | Values | Default |
|---|---|---|---|
| `docs` | optional | README, `docs/`, API docs, codemaps | the docs that mention the touched code |
| `changed` | optional | a feature, a path set, or a git range | recent `git log` on the affected paths |
| `area` | optional | repo or module for a codemap | per module or feature found in the repo |
| dependency section | automatic | populated from Salak, or marked "Deferred" | deferred when Salak is absent; never grep-derived |
| language | automatic | the existing doc's language | English for a brand-new codemap, stated in one line |

Output: a sync report of what was generated, refreshed or flagged stale (a
row per finding with evidence and fix), each doc carrying a "Last Updated"
date. `/project-memory/*` is never touched.

## Hands off to (fixed — see skill-authoring-edho-ferdian §11)

When the work reaches one of these, load that skill with the Skill tool
and follow it — don't write its part from memory.

- A release note or changelog → `git-and-release-ops-edho-ferdian`

## 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

1. **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.
2. **Never rebuild Salak's job.** No dependency graph from `madge`, AST
   parsing, or grep — detect Salak, use it, or omit the section.
3. **Never touch `/project-memory/*`.** That boundary is load-bearing —
   crossing it is what would make this skill compete with
   `dev-kickoff-edho-ferdian`'s REMEMBER stage instead of complementing it.
4. **Freshness timestamps, always.** Every codemap/doc this skill writes
   carries a "Last Updated" date.
5. **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.
6. **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.

Files in this skill

  • SKILL.md7.7 KB
  • references/codemap-generation.md3.7 KB
  • references/doc-freshness-checklist.md2.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.