Best for
- Use when the user says 'align docs', 'audit docs', 'upd
techygarg/lattice/dev-skills/skill-align/SKILL.md
Audit and fix all Lattice documentation, README, docs/, PROJECT.md, GitHub issue templates, and CLAUDE.md to ensure they are fully aligned with the current skill inventory. Documentation drift is the most common source of user confusion in Lattice — a skill exists in the codebase but not in the docs, or a renamed skill leaves a stale reference in the bug report template. If you've made any change to skills/ and haven't run this, run it now. Use when the user says 'align docs', 'audit docs', 'upd
Decision brief
Core responsibility: Keep every public-facing document in sync with the actual skill inventory. The skills directory is the source of truth — all documents derive from it.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/techygarg/lattice --skill "dev-skills/skill-align"Inspect the Agent Skill "skill-align" from https://github.com/techygarg/lattice/blob/75b7e0728587f2e822e8cdbe11583a6f9a38a4b3/dev-skills/skill-align/SKILL.md at commit 75b7e0728587f2e822e8cdbe11583a6f9a38a4b3. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Read the skills directory tree. STOP: do NOT assume you already know the inventory — always read from files.
Work through every document in this order. For each, apply the checks in references/audit-checklist.md. STOP: a document with zero findings gets no entry in the report — do not print a heading or a "no gaps" line for it. Log every finding as:
Apply every agreed fix. For each document, make all changes in a single edit pass. STOP: do not make multiple passes over the same file.
If the user wants to push the updated skills to their AI tool's skills directory:
After creating any new atom, molecule, or refiner
Permission review
The documentation asks the agent to read local files, directories, or repositories.
Read the skills directory tree. **STOP: do NOT assume you already know the inventory** — always read from files.Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 83/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 170 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Core responsibility: Keep every public-facing document in sync with the actual skill inventory. The skills directory is the source of truth — all documents derive from it.
Input: None required. Reads the live state of skills/ and all documentation on every run. Optionally: a specific skill name or tier to focus the audit.
Output:
[GAP], [STALE], or [WRONG] with file and descriptionREADME.md, docs/how-it-works.md, docs/configuration.md, docs/practical-guide.md, PROJECT.md, CLAUDE.md, .github/ISSUE_TEMPLATE/bug_report.ymlHow to verify this skill did its job:
grep -rn "requirements atom\|framework:requirements\b" \
docs/ README.md PROJECT.md CLAUDE.md .github/ skills/ \
--include="*.md" --include="*.yml"
Any result from this grep means the sync is incomplete. A clean run returns no output.
Also verify: every skill in skills/ appears in the bug_report.yml dropdown and the how-it-works.md inventory tables.
Read the skills directory tree. STOP: do NOT assume you already know the inventory — always read from files.
find skills/ -name "SKILL.md" | sort
For each SKILL.md found, extract:
name: field (frontmatter)tier: inferred from path (atoms/, molecules/, refiners/)paths\.\w+ in the fileframework: references (molecules only).lattice/standards/ path (refiners only).lattice/\w+/ paths (molecules only)Build a structured inventory:
atoms: [name, config_key, has_refiner, has_defaults_md]
molecules: [name, composes[], output_subfolder]
refiners: [name, config_key, produces_path, consumed_by_atom]
Read references/audit-checklist.md for the complete per-document audit rules before starting Phase 2.
Work through every document in this order. For each, apply the checks in references/audit-checklist.md. STOP: a document with zero findings gets no entry in the report — do not print a heading or a "no gaps" line for it. Log every finding as:
[GAP] file:line — description of what is missing or wrong
[STALE] file:line — description of what refers to something that no longer exists
[WRONG] file:line — description of a relationship (consumed-by, produces) that is incorrect
Documents to audit:
docs/how-it-works.mddocs/configuration.mddocs/practical-guide.mdREADME.mdPROJECT.md — Skill Conventions, Known subfolders list, and Repository Structure counts all live here.github/ISSUE_TEMPLATE/bug_report.yml.github/ISSUE_TEMPLATE/skill_request.yml (generic — only check if skill-specific examples are present).github/ISSUE_TEMPLATE/documentation.yml (generic — only check if skill names appear)knowledge-base/requirement-forge-requirements.md (if exists — check it matches current skill names)Present a consolidated findings report before making any changes:
## Lattice Sync — Findings
### docs/how-it-works.md
[GAP] Atoms table missing: requirement-quality
[STALE] Refiners in Depth: requirement-forge-refiner consumed-by says "molecule" but should say "requirement-quality atom"
### .github/ISSUE_TEMPLATE/bug_report.yml
[GAP] Skill dropdown missing: requirement-quality (atom)
Total: N gaps, M stale references, P wrong relationships
Ask: "Ready to apply all fixes? Or are there any findings you want to skip?"
Apply every agreed fix. For each document, make all changes in a single edit pass. STOP: do not make multiple passes over the same file.
After all fixes are applied, run one final verification grep to confirm no old references remain:
# Check for stale atom names or wrong consumed-by text
grep -rn "<old-name>\|consumed.*molecule\|consumed.*wrong" \
docs/ README.md PROJECT.md CLAUDE.md .github/ --include="*.md" --include="*.yml"
If the grep returns results, fix them before declaring done.
If the user wants to push the updated skills to their AI tool's skills directory:
./tools/install.sh /path/to/your/skills/folder
Ask the user for the target path if not provided. Default for Claude Code: ~/.claude/skills/.
The most error-prone relationship in Lattice documentation is the refiner → atom → molecule chain. Documents frequently drift to say a refiner is "consumed by the molecule" when it's actually consumed by an atom that the molecule composes.
For every refiner in the live inventory, derive the correct relationship dynamically:
paths.{key}[WRONG]Exception: review-refiner is consumed by the review molecule directly — it configures the molecule's workflow, not an atom. This is the only correct molecule-direct consumption in the current framework.
.lattice/ subfoldersEvery molecule that writes living documents must use a named subfolder. If a new molecule is found that writes to .lattice/ and its subfolder is not in this list, flag it for addition to PROJECT.md:
standards/ — refiner outputscontext/ — feature anchor docs (context-anchoring atom)learnings/ — operational learnings (learning-harvest atom)reviews/ — review loginsights/ — architecture-compass outputrequirements/ — epic/feature specs (requirement-forge)The sync is complete when:
skills/ appears in the docs/how-it-works.md inventory tablesdocs/configuration.md paths table with the right consumed-by atombug_report.yml skill dropdownbug_report.yml skill dropdownbug_report.yml skill dropdownPROJECT.md known subfolders list covers every .lattice/ output directoryskills/README.md and docs/how-it-works.md use current molecule names in the right orderrefiners-update's map table, lattice-init's Step 3 priority list) has one entry per live refiner in skills/refiners/ — no missing, no staleSee references/audit-checklist.md for the exhaustive per-document rules.
Alternatives
ruvnet/ruflo
Agent skill for workflow-automation - invoke with $agent-workflow-automation
daymade/claude-code-skills
Use it for deployment and documentation tasks; the detail page covers purpose, installation, and practical steps.
maziyarpanahi/openmed
Generate a model card for an OpenMed clinical NER or de-identification model documenting intended use, quantitative metrics, subgroup performance, limitations, and a medical-device disclaimer for clinical AI governance. Use when the user wants to write or update a model card, a README model section, or governance documentation, or to turn OpenMed eval outputs (release gate report, fairness_report, error_report) into the card's metrics and limitations sections. Trigger on "model card", "intended
mgiovani/cc-arsenal
Read-only audit of documentation against the current codebase, flags stale docs, missing sections, broken links, and hallucinated claims (wrong file references, wrong counts, diagram entities that don't exist in code). Use for "check the docs", "audit documentation", "are the docs stale", "find hallucinations in docs", "docs health check", "does this doc still match the code", or before onboarding/release. Reports only, never edits files, for actually fixing or regenerating docs use docs-update