agent-docs-kit 2.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agent_docs_kit-2.1.0.dist-info/METADATA +299 -0
- agent_docs_kit-2.1.0.dist-info/RECORD +40 -0
- agent_docs_kit-2.1.0.dist-info/WHEEL +4 -0
- agent_docs_kit-2.1.0.dist-info/entry_points.txt +3 -0
- agent_docs_kit-2.1.0.dist-info/licenses/LICENSE +21 -0
- living_docs_cli/__init__.py +686 -0
- living_docs_cli/__main__.py +3 -0
- living_docs_cli/assets/fumadocs-starter/app/docs/[[...slug]]/page.tsx +44 -0
- living_docs_cli/assets/fumadocs-starter/app/docs/layout.tsx +12 -0
- living_docs_cli/assets/fumadocs-starter/app/global.css +450 -0
- living_docs_cli/assets/fumadocs-starter/app/layout.tsx +15 -0
- living_docs_cli/assets/fumadocs-starter/app/page.tsx +5 -0
- living_docs_cli/assets/fumadocs-starter/components/living-docs/index.tsx +185 -0
- living_docs_cli/assets/fumadocs-starter/components/mdx.tsx +27 -0
- living_docs_cli/assets/fumadocs-starter/content/docs/architecture.mdx +55 -0
- living_docs_cli/assets/fumadocs-starter/content/docs/components.mdx +132 -0
- living_docs_cli/assets/fumadocs-starter/content/docs/glossary.mdx +16 -0
- living_docs_cli/assets/fumadocs-starter/content/docs/index.mdx +72 -0
- living_docs_cli/assets/fumadocs-starter/content/docs/meta.json +4 -0
- living_docs_cli/assets/fumadocs-starter/lib/layout.shared.ts +7 -0
- living_docs_cli/assets/fumadocs-starter/lib/source.ts +7 -0
- living_docs_cli/assets/fumadocs-starter/next-env.d.ts +4 -0
- living_docs_cli/assets/fumadocs-starter/next.config.mjs +10 -0
- living_docs_cli/assets/fumadocs-starter/package.json +27 -0
- living_docs_cli/assets/fumadocs-starter/source.config.ts +34 -0
- living_docs_cli/assets/fumadocs-starter/tsconfig.json +23 -0
- living_docs_cli/assets/project/.living-docs/scripts/check.mjs +72 -0
- living_docs_cli/assets/project/.living-docs/scripts/create-doc.mjs +88 -0
- living_docs_cli/assets/project/.living-docs/scripts/glossary.mjs +107 -0
- living_docs_cli/assets/project/.living-docs/templates/architecture.mdx +51 -0
- living_docs_cli/assets/project/.living-docs/templates/change.mdx +40 -0
- living_docs_cli/assets/project/.living-docs/templates/glossary.mdx +15 -0
- living_docs_cli/assets/project/.living-docs/templates/plan.mdx +54 -0
- living_docs_cli/assets/styles/atlas.css +450 -0
- living_docs_cli/assets/workflow-skills/living-docs-architecture/SKILL.md +55 -0
- living_docs_cli/assets/workflow-skills/living-docs-change/SKILL.md +62 -0
- living_docs_cli/assets/workflow-skills/living-docs-check/SKILL.md +32 -0
- living_docs_cli/assets/workflow-skills/living-docs-glossary/SKILL.md +30 -0
- living_docs_cli/assets/workflow-skills/living-docs-plan/SKILL.md +55 -0
- living_docs_cli/assets/workflow-skills/living-docs-write/SKILL.md +46 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: living-docs-architecture
|
|
3
|
+
description: Create or update architecture MDX pages in a living-docs Fumadocs project. Use whenever current architecture, system shape, subsystem boundaries, data flow, runtime chain, contracts, ownership, or architecture diagrams need documentation or correction.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# living-docs-architecture
|
|
7
|
+
|
|
8
|
+
Use this skill only inside a project that has `.living-docs/config.json`. If that file is missing, tell the user to run `living-docs init` first.
|
|
9
|
+
|
|
10
|
+
Architecture pages describe current runtime truth. They should not become historical changelogs or future plans.
|
|
11
|
+
|
|
12
|
+
## Source Priority
|
|
13
|
+
|
|
14
|
+
1. `.living-docs/config.json` for docs location and project settings.
|
|
15
|
+
2. Existing MDX pages under the configured `contentDir`.
|
|
16
|
+
3. Source files, routes, schemas, config, tests, logs, traces, or rendered runtime surfaces that prove the current shape.
|
|
17
|
+
4. User-provided context, marked as unverified when it has not been checked against the repo or runtime.
|
|
18
|
+
|
|
19
|
+
## Workflow
|
|
20
|
+
|
|
21
|
+
1. Read `.living-docs/config.json` and inspect the configured `contentDir`.
|
|
22
|
+
2. Identify the target domain. Use `system` for cross-domain architecture.
|
|
23
|
+
3. If the domain architecture page does not exist, create it:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
node .living-docs/scripts/create-doc.mjs architecture <domain> <domain> "<Title>"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
4. Edit the MDX page to reflect current runtime truth:
|
|
30
|
+
- entry points
|
|
31
|
+
- core modules/components
|
|
32
|
+
- data stores or external services
|
|
33
|
+
- contracts and ownership boundaries
|
|
34
|
+
- known constraints
|
|
35
|
+
5. Include at least one diagram component:
|
|
36
|
+
- Use `<ArchMap />` for subsystem layers and ownership boundaries.
|
|
37
|
+
- Use `<FlowSteps />` for runtime request/job/event paths.
|
|
38
|
+
- Use `<StateFlow />` for lifecycle or state transitions.
|
|
39
|
+
- Use mermaid only for complex graphs, branches, sequence diagrams, or diagrams that do not fit the built-in components.
|
|
40
|
+
6. Keep history out of architecture pages; history belongs in change records.
|
|
41
|
+
7. Add or update frontmatter `terms`.
|
|
42
|
+
8. Run:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
node .living-docs/scripts/glossary.mjs
|
|
46
|
+
node .living-docs/scripts/check.mjs
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Write Safety
|
|
50
|
+
|
|
51
|
+
- Do not document aspirational behavior as current architecture.
|
|
52
|
+
- If the current shape differs from an existing page, update the architecture page and consider whether a separate change record is needed.
|
|
53
|
+
- If a diagram would be speculative, write the uncertainty explicitly or inspect more code before adding it.
|
|
54
|
+
|
|
55
|
+
Report the architecture page path, key source files or runtime evidence used, and validation result.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: living-docs-change
|
|
3
|
+
description: Record shipped changes in a living-docs Fumadocs project. Use after refactors, features, bug fixes, API or data-contract changes, architecture changes, migrations, deploy changes, or operational fixes that need an immutable paper trail.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# living-docs-change
|
|
7
|
+
|
|
8
|
+
Use this skill only inside a project that has `.living-docs/config.json`. If that file is missing, tell the user to run `living-docs init` first.
|
|
9
|
+
|
|
10
|
+
Change records are immutable shipped-history pages. They should explain what changed, why it changed, and how it was verified. They are not the place for unshipped plans.
|
|
11
|
+
|
|
12
|
+
## Source Priority
|
|
13
|
+
|
|
14
|
+
1. `.living-docs/config.json` for docs location and project settings.
|
|
15
|
+
2. Git diff, commits, changed source files, migrations, config, tests, logs, or runtime checks that prove the shipped change.
|
|
16
|
+
3. Existing architecture pages that may need to be updated to match the new current state.
|
|
17
|
+
4. User-provided context, marked as unverified when it has not been checked against the repo or runtime.
|
|
18
|
+
|
|
19
|
+
## Workflow
|
|
20
|
+
|
|
21
|
+
1. Read `.living-docs/config.json`.
|
|
22
|
+
2. Inspect the relevant source diff, tests, logs, or runtime surface before writing.
|
|
23
|
+
3. Choose a domain and short topic slug.
|
|
24
|
+
4. Create a change record:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
node .living-docs/scripts/create-doc.mjs change <domain> <topic-slug> "<Title>"
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Optional metadata:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
LIVING_DOCS_SOURCE="commit/diff/runtime source" LIVING_DOCS_TESTS="test or verification summary" node .living-docs/scripts/create-doc.mjs change <domain> <topic-slug> "<Title>"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
5. Fill the MDX page:
|
|
37
|
+
- what changed
|
|
38
|
+
- why it changed
|
|
39
|
+
- important trade-offs
|
|
40
|
+
- verification performed
|
|
41
|
+
- user-visible or system-visible behavior
|
|
42
|
+
6. Include at least one diagram component:
|
|
43
|
+
- Use `<FlowSteps />` for before/change/after behavior.
|
|
44
|
+
- Use `<StateFlow />` when the change affects lifecycle states.
|
|
45
|
+
- Use `<ArchMap />` when the current architecture shape changed.
|
|
46
|
+
- Use mermaid only for complex graphs, branches, or sequence diagrams.
|
|
47
|
+
7. Update the relevant architecture page if the current shape changed.
|
|
48
|
+
8. Add/update frontmatter `terms`.
|
|
49
|
+
9. Run:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
node .living-docs/scripts/glossary.mjs
|
|
53
|
+
node .living-docs/scripts/check.mjs
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Write Safety
|
|
57
|
+
|
|
58
|
+
- Do not record a change as shipped if it is only proposed or partially implemented.
|
|
59
|
+
- Do not rewrite old change records to change history; create a new record for a new shipped correction.
|
|
60
|
+
- If the current architecture changed, update the relevant architecture page in the same pass.
|
|
61
|
+
|
|
62
|
+
Report the change page, any architecture page touched, the evidence used, and validation result.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: living-docs-check
|
|
3
|
+
description: Validate a living-docs Fumadocs project. Use before committing docs changes, after generated docs or glossary files change, or whenever the user asks whether the documentation system, MDX content, glossary, or living-docs setup is healthy.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# living-docs-check
|
|
7
|
+
|
|
8
|
+
Use this skill only inside a project that has `.living-docs/config.json`. If that file is missing, report that this is not initialized as a living-docs project.
|
|
9
|
+
|
|
10
|
+
## Validation Order
|
|
11
|
+
|
|
12
|
+
Run the local validation gate first because it is always project-local:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
node .living-docs/scripts/check.mjs
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
If the global CLI is installed, also run:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
living-docs check
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
For docs-app changes, run the Fumadocs/TypeScript checks when dependencies are installed:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
cd docs
|
|
28
|
+
npm run typecheck
|
|
29
|
+
npm run build
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Fix failures only if the user asked for fixes or the failure is caused by documentation changes you just made. Report the exact failing files, skipped checks with reasons, and final result.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: living-docs-glossary
|
|
3
|
+
description: Regenerate and review the glossary in a living-docs Fumadocs project. Use whenever MDX frontmatter terms were added, changed, duplicated, renamed, or need consistency cleanup before docs are committed.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# living-docs-glossary
|
|
7
|
+
|
|
8
|
+
Use this skill only inside a project that has `.living-docs/config.json`. If that file is missing, tell the user to run `living-docs init` first.
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
|
|
12
|
+
1. Read `.living-docs/config.json`.
|
|
13
|
+
2. Inspect frontmatter `terms` in the relevant MDX files.
|
|
14
|
+
3. Normalize duplicate terms only when they clearly mean the same project concept.
|
|
15
|
+
4. Run:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
node .living-docs/scripts/glossary.mjs
|
|
19
|
+
node .living-docs/scripts/check.mjs
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
5. If the generated glossary looks wrong, fix source page frontmatter rather than hand-editing `glossary.mdx`.
|
|
23
|
+
|
|
24
|
+
## Write Safety
|
|
25
|
+
|
|
26
|
+
- Do not hand-edit the generated glossary except to replace it by rerunning the script.
|
|
27
|
+
- Do not merge two terms when they may represent different project concepts.
|
|
28
|
+
- Preserve the language and naming style already used in nearby docs unless the user asks for a rename.
|
|
29
|
+
|
|
30
|
+
Report the generated glossary path, any source frontmatter changed, and validation result.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: living-docs-plan
|
|
3
|
+
description: Create or update future plans, blueprints, design direction, implementation plans, or proposal MDX pages in a living-docs Fumadocs project. Use when documenting intended work before it ships or when the user wants a plan separated from current architecture and shipped change records.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# living-docs-plan
|
|
7
|
+
|
|
8
|
+
Use this skill only inside a project that has `.living-docs/config.json`. If that file is missing, tell the user to run `living-docs init` first.
|
|
9
|
+
|
|
10
|
+
Plan pages describe future intent. They should be explicit about scope, assumptions, validation, and open questions.
|
|
11
|
+
|
|
12
|
+
## Source Priority
|
|
13
|
+
|
|
14
|
+
1. `.living-docs/config.json` for docs location and project settings.
|
|
15
|
+
2. Existing architecture and change pages under the configured `contentDir`.
|
|
16
|
+
3. Source files, APIs, schemas, config, tests, or runtime surfaces that constrain the proposed work.
|
|
17
|
+
4. User-provided goals and constraints.
|
|
18
|
+
|
|
19
|
+
## Workflow
|
|
20
|
+
|
|
21
|
+
1. Read `.living-docs/config.json`.
|
|
22
|
+
2. Choose the target domain and topic slug.
|
|
23
|
+
3. Create a plan page:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
node .living-docs/scripts/create-doc.mjs plan <domain> <topic-slug> "<Title>"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
4. Fill the plan with:
|
|
30
|
+
- goal
|
|
31
|
+
- scope and non-goals
|
|
32
|
+
- proposed architecture or flow
|
|
33
|
+
- validation plan
|
|
34
|
+
- open questions
|
|
35
|
+
5. Use built-in components when a diagram clarifies the plan:
|
|
36
|
+
- `<ArchMap />` for target architecture.
|
|
37
|
+
- `<FlowSteps />` for proposed execution flow.
|
|
38
|
+
- `<StateFlow />` for lifecycle or state transitions.
|
|
39
|
+
- mermaid for complex graphs, branches, or sequence diagrams.
|
|
40
|
+
6. Keep shipped facts out of plan pages; when the plan ships, create a change record and update architecture.
|
|
41
|
+
7. Add/update frontmatter `terms`.
|
|
42
|
+
8. Run:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
node .living-docs/scripts/glossary.mjs
|
|
46
|
+
node .living-docs/scripts/check.mjs
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Write Safety
|
|
50
|
+
|
|
51
|
+
- Do not present a plan as current architecture or shipped behavior.
|
|
52
|
+
- Keep speculative details clearly labeled as assumptions or open questions.
|
|
53
|
+
- If a plan depends on unknown runtime behavior, add a validation task instead of guessing.
|
|
54
|
+
|
|
55
|
+
Report the plan page path, major assumptions, open questions, and validation result.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: living-docs-write
|
|
3
|
+
description: General entrypoint for creating or updating living-docs MDX documentation in a project initialized with living-docs. Use whenever the user asks to write docs, update docs, explain current architecture, record a shipped change, draft a future plan, refresh glossary terms, validate docs health, or maintain the generated Fumadocs documentation system.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# living-docs-write
|
|
7
|
+
|
|
8
|
+
Use this skill only inside a project that has `.living-docs/config.json`. If that file is missing, tell the user to run `living-docs init` before writing living-docs content.
|
|
9
|
+
|
|
10
|
+
This is the portable entrypoint for agents that do not have native slash or skill invocation. For Codex, Claude Code, and similar skill-aware agents, route to the named living-docs skill directly when it is available. For Cursor, Gemini CLI, Copilot, or generic agents, read the matching `SKILL.md` file from the installed workflow directory before editing docs.
|
|
11
|
+
|
|
12
|
+
## Routine
|
|
13
|
+
|
|
14
|
+
1. Read `.living-docs/config.json`.
|
|
15
|
+
2. Inspect existing docs under the configured `contentDir`.
|
|
16
|
+
3. Choose the specific workflow:
|
|
17
|
+
- Architecture/current system shape: use `living-docs-architecture`.
|
|
18
|
+
- Shipped behavior or implementation change: use `living-docs-change`.
|
|
19
|
+
- Future direction or blueprint: use `living-docs-plan`.
|
|
20
|
+
- Terms changed: use `living-docs-glossary`.
|
|
21
|
+
- Validation only: use `living-docs-check`.
|
|
22
|
+
4. Keep MDX as the source of truth. Do not edit generated HTML output.
|
|
23
|
+
5. Prefer built-in MDX components for common diagrams:
|
|
24
|
+
- `<ArchMap />` for architecture layers.
|
|
25
|
+
- `<FlowSteps />` for runtime or behavior flows.
|
|
26
|
+
- `<StateFlow />` for state transitions.
|
|
27
|
+
- `<TermGrid />` for page-local vocabulary.
|
|
28
|
+
6. Match the language and tone of the existing docs unless the user asks otherwise.
|
|
29
|
+
|
|
30
|
+
## Write Safety
|
|
31
|
+
|
|
32
|
+
- Do not invent architecture or verification details. Inspect source files, diffs, tests, logs, or the runtime surface first.
|
|
33
|
+
- Do not overwrite an existing MDX page unless the user asked to update that page or the selected workflow clearly targets it.
|
|
34
|
+
- Keep historical facts in change records, current facts in architecture pages, and future intent in plan pages.
|
|
35
|
+
- If the request mixes shipped facts and future intent, create or update separate change and plan pages instead of blending them.
|
|
36
|
+
|
|
37
|
+
## Finish Gate
|
|
38
|
+
|
|
39
|
+
Run one of:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
node .living-docs/scripts/check.mjs
|
|
43
|
+
living-docs check
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Report the changed MDX files and the validation result.
|