agent-docs-kit 2.1.0__tar.gz
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/.claude-plugin/marketplace.json +21 -0
- agent_docs_kit-2.1.0/.claude-plugin/plugin.json +22 -0
- agent_docs_kit-2.1.0/.github/workflows/publish.yml +55 -0
- agent_docs_kit-2.1.0/.gitignore +23 -0
- agent_docs_kit-2.1.0/CHANGELOG.md +28 -0
- agent_docs_kit-2.1.0/LICENSE +21 -0
- agent_docs_kit-2.1.0/PKG-INFO +299 -0
- agent_docs_kit-2.1.0/README.md +285 -0
- agent_docs_kit-2.1.0/package.json +37 -0
- agent_docs_kit-2.1.0/pyproject.toml +37 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/__init__.py +686 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/__main__.py +3 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/fumadocs-starter/app/docs/[[...slug]]/page.tsx +44 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/fumadocs-starter/app/docs/layout.tsx +12 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/fumadocs-starter/app/global.css +450 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/fumadocs-starter/app/layout.tsx +15 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/fumadocs-starter/app/page.tsx +5 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/fumadocs-starter/components/living-docs/index.tsx +185 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/fumadocs-starter/components/mdx.tsx +27 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/fumadocs-starter/content/docs/architecture.mdx +55 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/fumadocs-starter/content/docs/components.mdx +132 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/fumadocs-starter/content/docs/glossary.mdx +16 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/fumadocs-starter/content/docs/index.mdx +72 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/fumadocs-starter/content/docs/meta.json +4 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/fumadocs-starter/lib/layout.shared.ts +7 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/fumadocs-starter/lib/source.ts +7 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/fumadocs-starter/next-env.d.ts +4 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/fumadocs-starter/next.config.mjs +10 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/fumadocs-starter/package.json +27 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/fumadocs-starter/source.config.ts +34 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/fumadocs-starter/tsconfig.json +23 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/project/.living-docs/scripts/check.mjs +72 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/project/.living-docs/scripts/create-doc.mjs +88 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/project/.living-docs/scripts/glossary.mjs +107 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/project/.living-docs/templates/architecture.mdx +51 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/project/.living-docs/templates/change.mdx +40 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/project/.living-docs/templates/glossary.mdx +15 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/project/.living-docs/templates/plan.mdx +54 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/styles/atlas.css +450 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/workflow-skills/living-docs-architecture/SKILL.md +55 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/workflow-skills/living-docs-change/SKILL.md +62 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/workflow-skills/living-docs-check/SKILL.md +32 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/workflow-skills/living-docs-glossary/SKILL.md +30 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/workflow-skills/living-docs-plan/SKILL.md +55 -0
- agent_docs_kit-2.1.0/src/living_docs_cli/assets/workflow-skills/living-docs-write/SKILL.md +46 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://anthropic.com/claude-code/marketplace.schema.json",
|
|
3
|
+
"name": "agent-docs-kit",
|
|
4
|
+
"version": "2.1.0",
|
|
5
|
+
"description": "Standalone marketplace for the living-docs Fumadocs/MDX documentation system workflow.",
|
|
6
|
+
"owner": {
|
|
7
|
+
"name": "wuyuxiangX"
|
|
8
|
+
},
|
|
9
|
+
"plugins": [
|
|
10
|
+
{
|
|
11
|
+
"name": "agent-docs-kit",
|
|
12
|
+
"description": "Initialize and maintain a generic documentation system: Fumadocs + MDX, project-local templates/scripts, agent skills, managed context blocks, glossary generation, and validation.",
|
|
13
|
+
"version": "2.1.0",
|
|
14
|
+
"author": {
|
|
15
|
+
"name": "wuyuxiangX"
|
|
16
|
+
},
|
|
17
|
+
"source": ".",
|
|
18
|
+
"category": "productivity"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "agent-docs-kit",
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "Bootstrap and maintain a generic Fumadocs + MDX documentation system with project-local scripts, agent skills, managed context blocks, glossary generation, and validation.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "wuyuxiangX"
|
|
7
|
+
},
|
|
8
|
+
"homepage": "https://github.com/wuyuxiangX/agent-docs-kit",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"keywords": [
|
|
11
|
+
"living-docs",
|
|
12
|
+
"documentation",
|
|
13
|
+
"fumadocs",
|
|
14
|
+
"mdx",
|
|
15
|
+
"agent-skill",
|
|
16
|
+
"claude-code",
|
|
17
|
+
"codex",
|
|
18
|
+
"copilot",
|
|
19
|
+
"cursor",
|
|
20
|
+
"gemini-cli"
|
|
21
|
+
]
|
|
22
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build:
|
|
14
|
+
name: Build distributions
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- name: Check out repository
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
|
|
20
|
+
- name: Set up Python
|
|
21
|
+
uses: actions/setup-python@v5
|
|
22
|
+
with:
|
|
23
|
+
python-version: "3.13"
|
|
24
|
+
|
|
25
|
+
- name: Set up uv
|
|
26
|
+
uses: astral-sh/setup-uv@v6
|
|
27
|
+
|
|
28
|
+
- name: Build package
|
|
29
|
+
run: uv build
|
|
30
|
+
|
|
31
|
+
- name: Upload distributions
|
|
32
|
+
uses: actions/upload-artifact@v4
|
|
33
|
+
with:
|
|
34
|
+
name: python-package-distributions
|
|
35
|
+
path: dist/
|
|
36
|
+
|
|
37
|
+
publish:
|
|
38
|
+
name: Publish distributions to PyPI
|
|
39
|
+
needs: build
|
|
40
|
+
runs-on: ubuntu-latest
|
|
41
|
+
environment:
|
|
42
|
+
name: pypi
|
|
43
|
+
url: https://pypi.org/project/agent-docs-kit/
|
|
44
|
+
permissions:
|
|
45
|
+
contents: read
|
|
46
|
+
id-token: write
|
|
47
|
+
steps:
|
|
48
|
+
- name: Download distributions
|
|
49
|
+
uses: actions/download-artifact@v4
|
|
50
|
+
with:
|
|
51
|
+
name: python-package-distributions
|
|
52
|
+
path: dist/
|
|
53
|
+
|
|
54
|
+
- name: Publish package distributions to PyPI
|
|
55
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# OS
|
|
2
|
+
.DS_Store
|
|
3
|
+
Thumbs.db
|
|
4
|
+
|
|
5
|
+
# Editors
|
|
6
|
+
.vscode/
|
|
7
|
+
.idea/
|
|
8
|
+
*.swp
|
|
9
|
+
|
|
10
|
+
# Python
|
|
11
|
+
__pycache__/
|
|
12
|
+
*.pyc
|
|
13
|
+
.venv/
|
|
14
|
+
dist/
|
|
15
|
+
*.egg-info/
|
|
16
|
+
|
|
17
|
+
# Local testing artifacts
|
|
18
|
+
/tmp/
|
|
19
|
+
|
|
20
|
+
# Node / Fumadocs
|
|
21
|
+
node_modules/
|
|
22
|
+
.next/
|
|
23
|
+
out/
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
- Added interactive `living-docs init` prompts for target project, docs directory, agent integrations, style, and overwrite behavior.
|
|
6
|
+
- Added `--interactive` and `--yes` flags so humans can choose options while scripts can stay non-interactive.
|
|
7
|
+
- Renamed the public distribution and repository identity to `agent-docs-kit` because `living-docs` is blocked by PyPI's project-name similarity checks. The `living-docs` CLI command remains available.
|
|
8
|
+
- Clarified the split between the Python bootstrap CLI and the generated Node/Fumadocs docs app.
|
|
9
|
+
|
|
10
|
+
## 2.0.0
|
|
11
|
+
|
|
12
|
+
Major architecture shift from direct HTML generation to a generic documentation system.
|
|
13
|
+
|
|
14
|
+
- Added a Python CLI package with `living-docs init`, `living-docs check`, `living-docs version`, and `living-docs self check`.
|
|
15
|
+
- Added a Fumadocs + MDX starter app generated under `docs/`.
|
|
16
|
+
- Added project-local `.living-docs/` config, MDX templates, and Node scripts for doc creation, glossary generation, and validation.
|
|
17
|
+
- Added generated agent skills for architecture docs, change records, plans, glossary refresh, and docs checks.
|
|
18
|
+
- Added managed context blocks for `AGENTS.md`, `CLAUDE.md`, Copilot instructions, Cursor project rules, `GEMINI.md`, and generic agent context.
|
|
19
|
+
- Removed the root global helper skill and `setup` installer; `living-docs init` is the bootstrap path.
|
|
20
|
+
- Removed the old hand-authored HTML documentation path from the main skill.
|
|
21
|
+
|
|
22
|
+
## 1.1.0
|
|
23
|
+
|
|
24
|
+
Legacy HTML script reorganization.
|
|
25
|
+
|
|
26
|
+
## 1.0.0
|
|
27
|
+
|
|
28
|
+
Initial HTML living-docs prototype.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 wuyuxiangX
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: agent-docs-kit
|
|
3
|
+
Version: 2.1.0
|
|
4
|
+
Summary: Bootstrap and maintain a Fumadocs-powered MDX documentation system with agent skills, reusable templates, and validation.
|
|
5
|
+
Project-URL: Homepage, https://github.com/wuyuxiangX/agent-docs-kit
|
|
6
|
+
Project-URL: Repository, https://github.com/wuyuxiangX/agent-docs-kit
|
|
7
|
+
Project-URL: Issues, https://github.com/wuyuxiangX/agent-docs-kit/issues
|
|
8
|
+
Author: wuyuxiangX
|
|
9
|
+
License: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: agent-skill,claude-code,codex,cursor,documentation,fumadocs,gemini-cli,mdx
|
|
12
|
+
Requires-Python: >=3.10
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
|
|
15
|
+
# agent-docs-kit
|
|
16
|
+
|
|
17
|
+
Generic documentation system for agent-assisted projects.
|
|
18
|
+
|
|
19
|
+
agent-docs-kit bootstraps a Fumadocs + MDX documentation app, project-local scaffolding scripts, reusable MDX templates, and agent skills for Codex, Claude Code, Copilot, Cursor, Gemini CLI, or a generic agent directory.
|
|
20
|
+
|
|
21
|
+
agent-docs-kit is skills-first. It installs `SKILL.md` workflow skills into the
|
|
22
|
+
target project instead of installing slash-command prompt files.
|
|
23
|
+
|
|
24
|
+
The model follows the same separation that makes tools like Spec Kit scale:
|
|
25
|
+
|
|
26
|
+
- **CLI**: install and manage the documentation system.
|
|
27
|
+
- **Project infra**: keep config, templates, scripts, and validation inside the repo.
|
|
28
|
+
- **Agent skills**: handle day-to-day authoring workflows.
|
|
29
|
+
- **Fumadocs**: render and organize the docs site.
|
|
30
|
+
|
|
31
|
+
The CLI is a small Python bootstrapper so it can be run with `uvx` without
|
|
32
|
+
requiring Node in the source package. The generated documentation app is still
|
|
33
|
+
Node/Fumadocs: after init, previewing, type-checking, and building docs happens
|
|
34
|
+
inside the generated `docs/` app with npm.
|
|
35
|
+
|
|
36
|
+
## Install
|
|
37
|
+
|
|
38
|
+
One-time usage:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
uvx agent-docs-kit init
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Persistent install:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
uv tool install agent-docs-kit
|
|
48
|
+
agent-docs-kit init
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
The PyPI distribution is named `agent-docs-kit` because `living-docs` is blocked
|
|
52
|
+
by PyPI's project-name similarity checks. It still installs both CLI commands:
|
|
53
|
+
`agent-docs-kit` and `living-docs`.
|
|
54
|
+
|
|
55
|
+
`agent-docs-kit init` is interactive in a terminal:
|
|
56
|
+
|
|
57
|
+
```text
|
|
58
|
+
? Target project [.]:
|
|
59
|
+
? Docs directory [docs]:
|
|
60
|
+
? Agent integrations
|
|
61
|
+
1. codex - Codex (default)
|
|
62
|
+
2. claude - Claude Code
|
|
63
|
+
3. copilot - GitHub Copilot
|
|
64
|
+
4. cursor - Cursor
|
|
65
|
+
5. gemini - Gemini CLI
|
|
66
|
+
6. generic - Generic
|
|
67
|
+
Enter names or numbers separated by commas, or 'all'.
|
|
68
|
+
Selection [codex]:
|
|
69
|
+
? Style [atlas]:
|
|
70
|
+
? Overwrite existing managed files if needed? [y/N]:
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Use explicit flags for scripts or CI:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
agent-docs-kit init . --integration codex
|
|
77
|
+
agent-docs-kit init . --integration codex --integration claude --integration copilot
|
|
78
|
+
agent-docs-kit init . --integration codex --integration cursor --integration gemini
|
|
79
|
+
agent-docs-kit init . --integration codex --docs-dir docs --style atlas --yes
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
The starter uses the `atlas` style by default:
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
agent-docs-kit init . --style atlas --interactive
|
|
86
|
+
agent-docs-kit styles
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Supported Agent Platforms
|
|
90
|
+
|
|
91
|
+
living-docs installs the same workflow skills into the best available
|
|
92
|
+
instruction surface for each agent. Native skill platforms get direct skill
|
|
93
|
+
folders; other agents get portable `SKILL.md` workflow files plus a project
|
|
94
|
+
context file that points to them.
|
|
95
|
+
|
|
96
|
+
| Integration | Context file | Workflow files |
|
|
97
|
+
| --- | --- | --- |
|
|
98
|
+
| `codex` | `AGENTS.md` | `.agents/skills/living-docs-*` |
|
|
99
|
+
| `claude` | `CLAUDE.md` | `.claude/skills/living-docs-*` |
|
|
100
|
+
| `copilot` | `.github/copilot-instructions.md` | `.github/skills/living-docs-*` |
|
|
101
|
+
| `cursor` | `.cursor/rules/living-docs.mdc` | `.living-docs/skills/living-docs-*` |
|
|
102
|
+
| `gemini` | `GEMINI.md` | `.living-docs/skills/living-docs-*` |
|
|
103
|
+
| `generic` | `.living-docs/AGENT_CONTEXT.md` | `.living-docs/skills/living-docs-*` |
|
|
104
|
+
|
|
105
|
+
You can repeat `--integration` to install several surfaces in one project.
|
|
106
|
+
`cursor`, `gemini`, and `generic` share `.living-docs/skills`, so a project can
|
|
107
|
+
support multiple agents without duplicating the portable workflow files.
|
|
108
|
+
|
|
109
|
+
## User Paths
|
|
110
|
+
|
|
111
|
+
There is one bootstrap path: install the CLI, then run `agent-docs-kit init` or
|
|
112
|
+
`living-docs init` in the target project. The project-local skills are generated
|
|
113
|
+
during init.
|
|
114
|
+
|
|
115
|
+
```text
|
|
116
|
+
<project>/.living-docs/
|
|
117
|
+
<project>/docs/
|
|
118
|
+
<project>/.agents/skills/living-docs-* # Codex integration
|
|
119
|
+
<project>/.claude/skills/living-docs-* # Claude integration
|
|
120
|
+
<project>/.github/skills/living-docs-* # Copilot integration
|
|
121
|
+
<project>/.cursor/rules/living-docs.mdc # Cursor integration
|
|
122
|
+
<project>/GEMINI.md # Gemini CLI integration
|
|
123
|
+
<project>/.living-docs/skills/living-docs-* # Portable workflows
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
The per-project workflow skills live in the CLI assets under
|
|
127
|
+
`src/living_docs_cli/assets/workflow-skills/` and are copied into each target
|
|
128
|
+
project during `init`, so they can use that project's
|
|
129
|
+
`.living-docs/config.json`, templates, scripts, and context file. There is no
|
|
130
|
+
separate global `living-docs` helper skill.
|
|
131
|
+
|
|
132
|
+
## What Init Creates
|
|
133
|
+
|
|
134
|
+
```text
|
|
135
|
+
.living-docs/
|
|
136
|
+
config.json
|
|
137
|
+
templates/
|
|
138
|
+
architecture.mdx
|
|
139
|
+
change.mdx
|
|
140
|
+
plan.mdx
|
|
141
|
+
glossary.mdx
|
|
142
|
+
scripts/
|
|
143
|
+
create-doc.mjs
|
|
144
|
+
glossary.mjs
|
|
145
|
+
check.mjs
|
|
146
|
+
|
|
147
|
+
docs/
|
|
148
|
+
app/
|
|
149
|
+
components/
|
|
150
|
+
content/docs/
|
|
151
|
+
lib/
|
|
152
|
+
package.json
|
|
153
|
+
source.config.ts
|
|
154
|
+
|
|
155
|
+
.agents/skills/ # codex integration
|
|
156
|
+
.claude/skills/ # claude integration
|
|
157
|
+
.github/skills/ # copilot skills mode
|
|
158
|
+
.cursor/rules/living-docs.mdc # cursor integration
|
|
159
|
+
GEMINI.md # gemini integration
|
|
160
|
+
.living-docs/skills/ # portable workflow skills
|
|
161
|
+
AGENTS.md / CLAUDE.md / ... # managed living-docs context block
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
The managed context block is bounded by:
|
|
165
|
+
|
|
166
|
+
```markdown
|
|
167
|
+
<!-- LIVING-DOCS START -->
|
|
168
|
+
...
|
|
169
|
+
<!-- LIVING-DOCS END -->
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Re-running init replaces only that block and preserves surrounding project instructions.
|
|
173
|
+
|
|
174
|
+
## Day-to-Day Workflow
|
|
175
|
+
|
|
176
|
+
Use generated skills from your agent:
|
|
177
|
+
|
|
178
|
+
- `living-docs-write` for routing a general docs request to the right workflow
|
|
179
|
+
- `living-docs-architecture` for current architecture docs
|
|
180
|
+
- `living-docs-change` for shipped change records
|
|
181
|
+
- `living-docs-plan` for future design plans
|
|
182
|
+
- `living-docs-glossary` after terms change
|
|
183
|
+
- `living-docs-check` before committing docs changes
|
|
184
|
+
|
|
185
|
+
The skills call project-local scripts:
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
node .living-docs/scripts/create-doc.mjs change api auth-flow "Auth Flow Update"
|
|
189
|
+
node .living-docs/scripts/glossary.mjs
|
|
190
|
+
node .living-docs/scripts/check.mjs
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
## MDX Components
|
|
194
|
+
|
|
195
|
+
living-docs ships reusable MDX components in the generated Fumadocs app. Use
|
|
196
|
+
them directly in `.mdx` pages:
|
|
197
|
+
|
|
198
|
+
```mdx
|
|
199
|
+
<ArchMap
|
|
200
|
+
tiers={[
|
|
201
|
+
{
|
|
202
|
+
title: 'Entry points',
|
|
203
|
+
boxes: [
|
|
204
|
+
{ title: 'Web app', body: 'User-facing route.', tone: 'blue' },
|
|
205
|
+
{ title: 'API', body: 'Server boundary.', tone: 'green' },
|
|
206
|
+
],
|
|
207
|
+
},
|
|
208
|
+
]}
|
|
209
|
+
/>
|
|
210
|
+
|
|
211
|
+
<FlowSteps
|
|
212
|
+
title="Request flow"
|
|
213
|
+
steps={[
|
|
214
|
+
{ title: 'Receive input', body: 'Validate payload.', tone: 'blue' },
|
|
215
|
+
{ title: 'Run service', body: 'Execute domain action.', tone: 'green' },
|
|
216
|
+
{ title: 'Return result', body: 'Send status and telemetry.', tone: 'amber' },
|
|
217
|
+
]}
|
|
218
|
+
/>
|
|
219
|
+
|
|
220
|
+
<StateFlow
|
|
221
|
+
title="Lifecycle"
|
|
222
|
+
states={[
|
|
223
|
+
{ name: 'draft', description: 'Work in progress.', tone: 'amber' },
|
|
224
|
+
{ name: 'active', description: 'Current runtime truth.', tone: 'green' },
|
|
225
|
+
]}
|
|
226
|
+
/>
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
The generated docs include `/docs/components` with copyable examples. Use
|
|
230
|
+
mermaid for complex sequence diagrams, branches, or graphs that do not fit the
|
|
231
|
+
built-in components.
|
|
232
|
+
|
|
233
|
+
The global CLI can also validate the project:
|
|
234
|
+
|
|
235
|
+
```bash
|
|
236
|
+
agent-docs-kit check
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
## Run the Docs Site
|
|
240
|
+
|
|
241
|
+
```bash
|
|
242
|
+
cd docs
|
|
243
|
+
npm install
|
|
244
|
+
npm run dev -- --port 3333
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
Fumadocs reads MDX from `docs/content/docs`.
|
|
248
|
+
|
|
249
|
+
## Publish to PyPI
|
|
250
|
+
|
|
251
|
+
Releases are published from GitHub Actions with PyPI Trusted Publishing. This
|
|
252
|
+
avoids long-lived PyPI API tokens in the repository or on a local machine.
|
|
253
|
+
|
|
254
|
+
One-time PyPI setup for a new package:
|
|
255
|
+
|
|
256
|
+
1. Open <https://pypi.org/manage/account/publishing/>.
|
|
257
|
+
2. Add a pending GitHub Actions publisher with:
|
|
258
|
+
- PyPI project name: `agent-docs-kit`
|
|
259
|
+
- Owner: `wuyuxiangX`
|
|
260
|
+
- Repository name: `agent-docs-kit`
|
|
261
|
+
- Workflow filename: `publish.yml`
|
|
262
|
+
- Environment name: `pypi`
|
|
263
|
+
|
|
264
|
+
After that, publish a release by tagging the commit:
|
|
265
|
+
|
|
266
|
+
```bash
|
|
267
|
+
git tag -a v2.1.0 -m v2.1.0
|
|
268
|
+
git push origin v2.1.0
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
The workflow builds the Python package with `uv build` and uploads the
|
|
272
|
+
distribution files to PyPI.
|
|
273
|
+
|
|
274
|
+
## Authoring Contract
|
|
275
|
+
|
|
276
|
+
- MDX is the source of truth.
|
|
277
|
+
- Architecture pages describe current state.
|
|
278
|
+
- Change pages are immutable records of shipped changes.
|
|
279
|
+
- Plan pages describe future intent.
|
|
280
|
+
- Glossary pages are generated from frontmatter `terms`.
|
|
281
|
+
- Architecture and change pages should include `<ArchMap />` or mermaid diagrams.
|
|
282
|
+
- Validation must pass before treating docs work as complete.
|
|
283
|
+
|
|
284
|
+
## CLI
|
|
285
|
+
|
|
286
|
+
```bash
|
|
287
|
+
agent-docs-kit init
|
|
288
|
+
agent-docs-kit init [target] [--integration codex|claude|copilot|cursor|gemini|generic] [--docs-dir docs] [--force] [--yes]
|
|
289
|
+
agent-docs-kit init . --style atlas --interactive
|
|
290
|
+
agent-docs-kit check
|
|
291
|
+
agent-docs-kit skills
|
|
292
|
+
agent-docs-kit styles
|
|
293
|
+
agent-docs-kit version
|
|
294
|
+
agent-docs-kit self check
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
## License
|
|
298
|
+
|
|
299
|
+
MIT
|