agentsclimarketplace

Sync docs to code

Skill agentjido/jido-skills/source/skills/sync-docs-to-code

Audit and reconcile repository docs with current code, examples, module docs, configuration, Mix aliases, telemetry, workflows, and public APIs. Use when docs may be stale after code changes or before release.From its SKILL.md

Install
npx -y skills add agentjido/jido-skills --skill sync-docs-to-code

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

3.0 KB, 618 tokens by cl100k_base, as published. Nobody here has run it

Sync Docs To Code

Purpose

Make documentation match the current codebase and clearly flag conflicts where product intent is unclear.

When To Use

Use this skill for:

  • Docs/code consistency audits
  • Guide or example refreshes
  • Module docs and README consistency
  • Release-prep documentation checks
  • Fixing stale config, telemetry, workflow, or Mix command references

Use refresh-readme when the task is limited to README.md.

Requirements

  • Access to docs, README, guides, examples, lib/, test/, config, and workflow files
  • Ability to run focused tests or compile checks when docs include executable examples

Workflow

1. Inventory docs and code surfaces

List documentation and source files:

find README.md docs guides examples lib test config .github/workflows -maxdepth 4 -type f 2>/dev/null

Search for names and commands likely to drift:

rg "mix |config :|Application\\.get_env|telemetry|defmodule|@doc|@moduledoc|use Jido|workflow|release|Hex" README.md docs guides examples lib test config .github/workflows 2>/dev/null

2. Compare docs against code

Check documentation references to:

  • Public modules and functions
  • Options, config keys, env vars, and defaults
  • Mix aliases and setup commands
  • Telemetry event names
  • Workflows and release commands
  • Examples and expected output
  • Package names, links, and support status

3. Decide correction direction

Prefer code as source of truth when docs are stale. Prefer docs as intent only when code clearly violates documented behavior and the user asked for code alignment.

If intent is ambiguous, do not silently choose. Flag the conflict with concrete file references and ask or leave a focused note.

4. Update docs

Make docs accurate and minimal:

  • Fix stale names, commands, links, and examples
  • Remove or qualify unsupported claims
  • Mark non-runnable examples as illustrative
  • Keep tested examples close to real code
  • Preserve docs structure unless it blocks clarity

5. Validate

Run the narrowest relevant validation:

mix test
mix compile --warnings-as-errors

Use repo-specific aliases when documented. For docs-only changes, run checks that prove referenced commands, modules, or examples still exist.

Output Expectations

Report:

  • Docs surfaces audited
  • Code/docs drift found
  • Changes made
  • Conflicts left for user decision
  • Validation commands run

Guardrails

  • Do not change code during this skill unless the user explicitly asks to make code match docs.
  • Do not rewrite docs for style only.
  • Do not leave runnable-looking examples that are known not to run.
  • Do not update generated docs unless the repo documents that workflow.
  • Do not hide unresolved code/docs contradictions.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,569. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.