Update docs

From edictum-ai/edictum · View interactive version

Update docs is an AI agent skill from the GitHub repository edictum-ai/edictum. Sync documentation with code changes. Use on every PR that touches library code to keep docs accurate and consistent.

How to use this skill

Skill file

Update Docs

Ensures documentation stays in sync with code changes. Run before or during every PR that touches library code.

Before anything else

  1. Read CLAUDE.md — understand boundaries (core vs server), dropped features, and session model
  2. Read .docs-style-guide.md — binding terminology reference

Step 1: Detect what changed

git diff main...HEAD --name-only

Map changes to affected docs:

| Source file | Affected doc pages |

|---|---|

| src/edictum/pipeline.py, rules.py | concepts/how-it-works.md, architecture.md |

| src/edictum/yaml_engine/ | rules/yaml-reference.md, rules/operators.md |

| src/edictum/adapters/*.py | corresponding adapters/*.md page |

| src/edictum/session.py, limits.py | concepts/rules.md, architecture.md |

| src/edictum/audit.py, telemetry.py | audit/sinks.md, audit/telemetry.md |

| src/edictum/cli/ | cli.md |

| src/edictum/envelope.py | concepts/principals.md, architecture.md |

| pyproject.toml (version) | install commands across docs |

| src/edictum/__init__.py (API) | quickstart.md, all adapter pages |

If no library code changed (docs-only PR), skip to Step 4.

Step 2: Read the changed code

For each changed file:

  1. Read the file and the diff (git diff main...HEAD -- <file>)
  2. Identify: new public APIs, changed signatures, new classes, removed exports, changed behavior

Step 3: Update affected docs

For each affected page:

  1. Read the current doc
  2. Skip if already correct
  3. Update code examples, descriptions, YAML examples
  4. Verify "When to use this" section exists (see .docs-style-guide.md page structure pattern step 3):
  1. Verify terminology against .docs-style-guide.md:
  1. Verify core vs server boundaries against CLAUDE.md:

Step 3.5: Update repo-level markdown files

These files live outside docs/ but track code changes:

  1. CHANGELOG.md — if the PR introduces user-visible changes (fixes, features, breaking changes), add an entry under the current version heading. Use the existing entry format. Keep descriptions neutral (no exploit details for security fixes).
  2. CLAUDE.md "What's Shipped" section — if this is a new version, add a one-line entry to the version history list matching the existing format.

Step 4: Update README if needed

If public API, install extras, framework support, or version changed:

  1. Read README.md
  2. Update affected sections
  3. Ensure README matches docs/index.md positioning

Step 5: Verify

pytest tests/test_docs_sync.py -v

Step 6: Report

Summarize:

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.