Skip to content
Back to skills

Docs Skill

ASecurity

Documentation-sweep skill that runs as the FINAL step of every sdlc-skill workflow (and on demand for "update the docs" / "run docs-skill" / "sync the docs"). It reconciles EVERY project document with the code + tests just produced, in a fixed dependency order (a DAG), so nothing is ever forgotten: Phase 1 tests.md (Unit/API/Functional/Performance sections) → Phase 2 missing-tests → Phase 3 (parallel) requirements + dependencies + backlog Risks/AI-Flags → Phase 3b application-guide (after req...

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentsgonodeapifrontendbackendsecurityperformancedocumentation

Works with

  • api

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add elhajahmadj/SDLCskill --skill docs-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docs Skill?

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

Security grade badge for Docs Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/elhajahmadj-docs-skill/badge)](https://www.skillsdirectory.com/skills/elhajahmadj-docs-skill)

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-skill
description: >-
  Documentation-sweep skill that runs as the FINAL step of every sdlc-skill
  workflow (and on demand for "update the docs" / "run docs-skill" / "sync the
  docs"). It reconciles EVERY project document with the code + tests just produced,
  in a fixed dependency order (a DAG), so nothing is ever forgotten: Phase 1
  tests.md (Unit/API/Functional/Performance sections) → Phase 2 missing-tests →
  Phase 3 (parallel) requirements + dependencies + backlog Risks/AI-Flags →
  Phase 3b application-guide (after requirements) → Phase 3c plans + backlog
  Ready-for-Dev (after requirements+dependencies) → Phase 3d backlog Suggestions →
  Phase 4 pre-release checklist + legal-reminders → Phase 5 memory + handoff. Then
  it regenerates the HTML views + the root documentsIndex.html hub
  (node docs/html/build.mjs), emits a per-doc coverage checklist
  (updated | no-change-needed for every doc), and commits + pushes. Idempotent and
  safe to re-run. Triggers: end of sdlc-skill, update the docs, sync docs,
  docs-skill.
---

# Docs Skill

The **documentation-sweep skill** that runs as the **final step of every `sdlc-skill`
workflow** — a deterministic pass that brings **every** project document up to date so nothing is
ever forgotten. It does not implement features or write tests; it **reconciles the docs** with the
code + tests that the workflow just produced, in a fixed dependency order, then regenerates the HTML
views and reports a coverage checklist.

Invoke it automatically at the end of `sdlc-skill` (Phase 13 code review passed), or on
demand when the user says "update the docs", "run docs-skill", or "sync the docs". It is
**idempotent** — running it when a doc genuinely needs no change is expected; that doc is confirmed
"no change" rather than edited.

## Why this skill exists

The workflow touches many docs, and under time pressure some get skipped. This skill turns "remember
to update all the docs" into a **repeatable ordered process** so the user never has to re-remind.
Every run either updates a doc or explicitly records "no change needed" — no doc is silently left
behind.

## The document set (all paths relative to project root)

| Doc | Path | Owner concept |
|-----|------|---------------|
| **Tests** | `docs/tests.md` | test registry in four sections — **Unit** (xUnit + web/mobile Jest), **API/Integration** (per-service), **Functional** (Playwright UI), **Performance** (NBomber scenarios + SLOs) |
| Missing tests | `docs/missing-tests.md` | outstanding test gaps by layer, with reasons |
| Requirements | `requirements.md` | what the product does — every feature + status |
| Dependencies | `dependencies.md` | what the product still needs (external creds/infra/subsystems) |
| **Plans** | `docs/plans.md` | detailed implementation plans for picked-up items; each entry = the plan + an `## Execution` section; delivered plans move to `## Completed` |
| **Backlog** | `docs/backlog.md` | one doc, three sections — **Ready for Dev** (ranked), **Suggestions** (`AS-###`), **Risks / AI-Flags** (`AF-###`) |
| Application guide | `docs/application-guide.md` | narrative product/feature guide (**hand-crafted HTML** — see below) |
| Pre-release checklist | `docs/pre-release-checklist.md` | ship gates |
| Legal reminders | `docs/legal-reminders.md` | legal topics to cover before launch |
| Memory | `memory.md` | living working-context log (conventions, decisions, active workstreams) |
| Handoff | `handoff.md` | architecture, decisions, current state, next steps |

## Execution order (a DAG — respect the dependencies)

Run the phases in this order. Within a phase, the items are **independent — update them
concurrently**. A later phase may **read** what an earlier phase just updated, so never reorder across
a phase boundary.

### Phase 1 — Test registry (`docs/tests.md`)
From what the workflow just added/changed, update each section of `docs/tests.md`:
- **Unit** — record new unit specs (backend xUnit + web/mobile Jest) and any newly-closed area.
- **API/Integration** — mark suites authored; adjust the per-service coverage backlog.
- **Functional** — mark pages/flows covered; adjust the backlog.
- **Performance** — add/adjust scenarios + SLOs if a perf-sensitive path changed.

### Phase 2 — Missing tests (depends on Phase 1)
Using the freshly-updated `docs/tests.md`, reconcile `docs/missing-tests.md`: remove gaps that were
just closed, add any newly-discovered gap (with a reason), keep the file-precise backlog accurate.

### Phase 3 — Product docs (parallel: 3 items)
Concurrently update:
- `requirements.md` — finalize the feature entry (status → Done, acceptance criteria met, final
  scope), add the change-log line; or add a Planned entry for newly-identified work.
- `dependencies.md` — add any dependency the change revealed/deferred; mark provisioned ones
  Available. Link by feature ID.
- `docs/backlog.md` **→ Risks / AI-Flags section** — log any AI-flagged finding/decision from this
  change (`AF-###`). When an `AF-###` is a genuine actionable gap, ensure it has a cross-linked
  **Suggestion** (`AS-###`) entry in the same doc (added/confirmed in Phase 3d); a pure non-actionable
  decision record needs none (note which case applies).

### Phase 3b — Application guide (depends on Phase 3: requirements)
After `requirements.md` is updated, update `docs/application-guide.md` with the latest delivered
feature **and any previously-delivered feature missing from the guide** (catch-up sweep).
**Cover mobile parity explicitly:** the guide documents both the web and mobile apps as two UIs on one
product — list what's shared, mobile-only (biometric login, push, SMS OTP), and web-only-with-a-planned
follow-up. When a feature lands on only one platform, update that section and the relevant walkthrough.
**`application-guide.html` is HAND-CRAFTED — `node docs/html/build.mjs` does NOT generate it** (it is in
the script's `notRendered` set). When the guide's content changes, hand-edit `application-guide.html` to
match (or note it as a follow-up in the run report).

### Phase 3c — Plans + Ready-for-Dev (depends on Phase 3: requirements + dependencies)
After the Phase-3 docs are updated, reconcile:
- `docs/plans.md` — **when a feature shipped, REMOVE its plan detail and log a one-line entry in
  `## Completed`** (never delete without logging); write/refresh plans (each with its `## Execution`
  section) for picked-up or newly-identified items; trim a partial delivery to the remainder.
- `docs/backlog.md` **→ Ready for Dev section** — remove shipped items; add newly-identified
  buildable/blocked items; re-rank High/Med/Low (or regenerate with `priorityFeatures`).

### Phase 3d — Suggestions (depends on Phase 3 + 3c)
Update `docs/backlog.md` **→ Suggestions section** — the living register of **assistant-proposed
improvements** surfaced while working in the codebase:
- **Add** any new suggestion this change surfaced but did not fully implement, with a stable id
  (`AS-###`), a one-line rationale, rough effort (S/M/L), category, and — when a graphify graph exists
  at `graphify-out/` — a backing pointer (a `graphify query`/`explain` reference).
- **Retire** a suggestion when it graduates: mark it `Promoted → F-###/D-###/AF-###` (or `Done`) and
  link the target, so the section never duplicates an item already tracked as a plan/dependency/flag.
- Keep it de-duplicated against the Ready-for-Dev and Risks/AI-Flags sections and `docs/plans.md` —
  cross-link by id rather than restating.
- **Cross-link each actionable `AF-###` with an `AS-###`** (the Risks/AI-Flags rule from Phase 3), and
  retire the pair together when the flag resolves. Skip only a non-actionable AF decision record or a
  pure-enhancement AS with no risk/gap; say which applies.
- If a graphify graph exists, run `graphify update .` first (AST-only, no API cost) so suggestions cite
  a current graph; note in the run report whether the graph was refreshed.

### Phase 4 — Release gates (parallel: 2 docs — check-if-needed)
Decide whether this change adds anything to:
- `docs/pre-release-checklist.md` — a new secret, migration, page, security/privacy/observability gate.
- `docs/legal-reminders.md` — a new legal surface (payments, data, ToS/privacy).
If nothing applies, record "no change needed" for each — do not force an edit.

### Phase 5 — Working context (last: 2 docs)
Finally update:
- `memory.md` — new/changed standing convention, decision, or in-flight direction; refresh the
  active-workstream status so the next session starts current.
- `handoff.md` — architecture/decision/current-state/next-steps changes so it reflects the present.

## After the phases — finalize (always)

1. **Regenerate HTML:** run `node docs/html/build.mjs` from the project root (never from
   `src/frontend/web`/`src/frontend/mobile` — `cd` to root first). This renders every doc in its FILES
   list, **regenerates the consolidated hub, and writes `documentsIndex.html` at the repo root** (a
   navigation index linking every generated HTML doc). **A new doc must be registered in `build.mjs`** —
   the `generated` basenames set, the `sources` array, **and a `groups` entry** (which tab/section it
   appears under in the hub) — or it won't render / won't appear in the index.
1b. **Enforce registration:** run `node docs/html/build.mjs --check` (exit 1 on any problem). It fails
   if a registered source is missing, if a `docs/*.md` isn't registered, if a rendered doc lacks its
   generated HTML sibling, **or if the hub / `documentsIndex.html` wasn't regenerated**. A hand-crafted
   doc the script doesn't render (e.g. `application-guide`) must be in the `notRendered` set to pass.
   **The sweep is not done until `--check` exits 0.**
2. **Application guide reminder:** if Phase 3b changed the guide's content, confirm the hand-crafted
   `docs/application-guide.html` was updated too (build.mjs will not do it).
3. **Coverage checklist:** report every doc in the set as `updated` / `no-change-needed`, plus
   `HTML regenerated`. Every doc must appear — that is the guarantee this skill provides.
4. **Commit + push** the doc changes per the project's push convention; keep local env/config files
   uncommitted.

## Coverage checklist (emit at the end of every run)

```
Phase 1  tests.md ......... [updated|no-change]  (Unit / API / Functional / Performance sections)
Phase 2  missing-tests .... [updated|no-change]
Phase 3  requirements ..... [updated|no-change]   dependencies ..... [updated|no-change]
         backlog:Risks/AI-Flags ... [updated|no-change]
Phase 3b application-guide  [updated|no-change]  (+ web & mobile sections + .html hand-edit? [done|n/a])
Phase 3c plans.md ......... [updated|no-change]   backlog:Ready-for-Dev ... [updated|no-change]
Phase 3d backlog:Suggestions [updated|no-change]  (graphify refreshed? [yes|n/a]; AF↔AS paired? [yes|n/a])
Phase 4  pre-release ...... [updated|no-change]   legal-reminders .. [updated|no-change]
Phase 5  memory ........... [updated|no-change]   handoff .......... [updated|no-change]
Final    HTML + documentsIndex . [yes]   --check ... [pass]   committed+pushed . [yes|deferred]
```

## Rules

- **Every doc is considered every run.** "No change needed" is a valid, explicit outcome — silence is not.
- **Respect the DAG.** Phase 2 reads Phase 1; Phase 3b reads requirements; Phase 3c reads
  requirements+dependencies. Never update a downstream doc before its upstream inputs.
- **Link by feature ID** across docs so they stay consistent.
- **Plans lifecycle:** delivered → remove detail + log in `## Completed`. Never leave a "SHIPPED"/"DONE"
  stub; never delete without logging.
- **Idempotent + safe to re-run.** Re-running after a partial run just re-confirms already-current docs.
- **HTML + hand-crafted guide:** always regen via `build.mjs` (which also writes `documentsIndex.html`);
  remember `application-guide.html` is hand-crafted and not covered by it.

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.