Docs

From latitude-dev/latitude-llm · View interactive version

Docs is an AI agent skill from the GitHub repository latitude-dev/latitude-llm. Review the current conversation context and git changes, then persist durable repository knowledge into `dev-docs/*.md` by domain and into `AGENTS.md` for cross-cutting repo rules. Use after features, fixes, refactors, architecture changes, schema changes, or when the user mentions docs, documentati

How to use this skill

Skill file

Documentation Sync

Purpose

Use this skill to keep durable repository knowledge in sync with the current coding session.

The sources of truth are:

  1. the current conversation
  2. the current git changes
  3. the existing dev-docs/*.md, relevant specs/*.md, and AGENTS.md

This skill is for durable knowledge, not changelog prose.

Repository docs and specs

Spec structure

Use this structure for specs:

# Name

> **Documentation**: `dev-docs/reliability.md`, `dev-docs/evaluations.md`, ...

... (here goes the exact and precise specification and the plan)

## Tasks

> **Status legend**: `[ ] pending`, `[~] in progress`, `[x] complete`

### Phase N - ...

- [ ] **P0-1**: ...

... (here goes more tasks)

**Exit gate**:

- ... (here goes the definition of complete for this phase)

... (here goes more phases)

When to use this skill

Use this skill automatically before finishing a task when the session introduced, removed, or clarified durable knowledge such as:

Use it when the user explicitly asks to:

If there is no durable knowledge change, do not edit docs just to summarize work. Say that no documentation update is needed.

Workflow

1. Inspect the session first

If the worktree contains unrelated changes, do not document them unless the user asked you to.

2. Inspect the repository evidence

3. Classify the knowledge

4. Map changes to the correct docs

5. Write future-state documentation

6. Escalate repo-wide rules into `AGENTS.md`

Add or update AGENTS.md when the session established a general rule that should guide future agent work across the repository.

Good candidates include:

Example: "Do not add foreign key constraints" belongs in AGENTS.md.

Do not add narrow feature details that belong in a domain doc instead. If it is unclear whether a rule is repo-wide and durable, ask the user before editing AGENTS.md.

7. Verify

Durable knowledge filter

Persist knowledge only if it is likely to matter after this session:

Do not persist:

Domain mapping hints

Use the closest existing doc when possible:

If a change spans multiple domains, update multiple docs.

Writing rules

Quick checklist

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.