ai-docs-toolkit 0.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.
- ai_docs_toolkit-0.1.0/PKG-INFO +269 -0
- ai_docs_toolkit-0.1.0/README.md +203 -0
- ai_docs_toolkit-0.1.0/packaging/pypi/README.md +255 -0
- ai_docs_toolkit-0.1.0/pyproject.toml +52 -0
- ai_docs_toolkit-0.1.0/setup.cfg +4 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/__init__.py +3 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/__main__.py +4 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/cli/__init__.py +1153 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/context/__init__.py +13 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/context/markdown_output.py +470 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/core/__init__.py +360 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/core/azure_devops_provider.py +569 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/core/changed_files.py +235 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/core/config.py +515 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/core/context.py +666 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/core/doctor.py +362 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/core/file_lookup.py +656 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/core/frontmatter.py +143 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/core/graph.py +153 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/core/impact.py +291 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/core/init.py +837 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/core/planning_operations.py +792 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/core/planning_scaffold.py +334 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/core/registry.py +161 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/core/requirement_capture.py +152 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/core/scanner.py +38 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/core/schema_validation.py +222 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/core/section_fix.py +169 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/core/structure_validation.py +1155 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/core/task_export.py +639 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/docs/agent-installation.md +443 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/graph/__init__.py +13 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/graph/json_output.py +238 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/impact/__init__.py +15 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/impact/json_output.py +458 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/mcp/__init__.py +8 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/mcp/__main__.py +5 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/mcp/server.py +345 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/mcp/setup.py +107 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/examples/skills/release-publication/SKILL.md +85 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/reference/documentation-cascade-authoring-skill.md +157 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/reference/documentation-change-review-skill.md +128 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/reference/incoming-request-model.md +332 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/reference/incoming-request-triage-skill.md +158 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/reference/init-command-contract.md +262 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/reference/planning-document-model.md +1483 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/reference/toolkit-maintenance-context-routing.md +373 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/schemas/document-types/acceptance.schema.yaml +17 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/schemas/document-types/architecture-decision.schema.yaml +17 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/schemas/document-types/asset.schema.yaml +17 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/schemas/document-types/business-rule.schema.yaml +17 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/schemas/document-types/contract.schema.yaml +17 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/schemas/document-types/guide.schema.yaml +17 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/schemas/document-types/implementation-task.schema.yaml +97 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/schemas/document-types/index.schema.yaml +17 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/schemas/document-types/inventory.schema.yaml +17 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/schemas/document-types/module.schema.yaml +17 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/schemas/document-types/operation.schema.yaml +17 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/schemas/document-types/plan-stage.schema.yaml +89 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/schemas/document-types/plan.schema.yaml +86 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/schemas/document-types/runbook.schema.yaml +17 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/schemas/document-types/scenario.schema.yaml +17 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/schemas/document-types/standalone-task.schema.yaml +90 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/schemas/document-types/task-registry.schema.yaml +114 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/schemas/document-types/test-case.schema.yaml +23 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/schemas/frontmatter.schema.yaml +181 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/skills/documentation-cascade-authoring/SKILL.md +84 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/skills/documentation-change-review/SKILL.md +76 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/skills/incoming-request-triage/SKILL.md +90 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/skills/index.md +51 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/skills/planning-record-generation/SKILL.md +77 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/skills/planning-task-execution/SKILL.md +106 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/skills/toolkit-consumer-policy/SKILL.md +44 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/skills/update-ai-docs-toolkit/SKILL.md +100 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/templates/release/agent-context-architecture-beta-18.md +123 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/templates/release/archive-validation-beta-12.md +123 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/templates/release/cascade-impact-beta-14.md +69 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/templates/release/consumer-migration-hardening.md +128 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/templates/release/decision-visibility-beta-13.md +132 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/templates/release/doctor-filesystem-traversal-beta-19.md +98 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/templates/release/doctor-json-provenance-beta-20.md +107 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/templates/release/documentation-cascade-authoring-beta-23.md +54 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/templates/release/documentation-change-review-beta-21.md +105 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/templates/release/incoming-request-storage-beta-17.md +70 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/templates/release/incoming-request-triage-beta-22.md +52 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/templates/release/migration-note.md +90 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/templates/release/post-publication-checks.md +9 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/templates/release/release-task.md +123 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/templates/release/routing-restoration-beta-15.md +39 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/templates/release/task-retirement-beta-16.md +54 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/templates/release/validation-evidence.md +18 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/templates/release/version-change-checklist.md +11 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/workflows/documentation-cascade-adoption.md +581 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/workflows/plan-stage-workflow.md +752 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/.ai-docs/workflows/toolkit-migration-workflow.md +150 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/AGENTS.md +177 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/ai-docs-index.md +39 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/templates/project/ai-docs.config.yaml +56 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/validation/__init__.py +16 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit/validation/human.py +313 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit.egg-info/PKG-INFO +269 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit.egg-info/SOURCES.txt +130 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit.egg-info/dependency_links.txt +1 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit.egg-info/entry_points.txt +3 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit.egg-info/requires.txt +9 -0
- ai_docs_toolkit-0.1.0/src/ai_docs_toolkit.egg-info/top_level.txt +1 -0
- ai_docs_toolkit-0.1.0/tests/test_azure_devops_provider.py +288 -0
- ai_docs_toolkit-0.1.0/tests/test_bootstrap_templates.py +384 -0
- ai_docs_toolkit-0.1.0/tests/test_cli_baseline.py +1429 -0
- ai_docs_toolkit-0.1.0/tests/test_config_loader_and_scanner.py +279 -0
- ai_docs_toolkit-0.1.0/tests/test_consumer_matrix.py +32 -0
- ai_docs_toolkit-0.1.0/tests/test_context_cli_json.py +354 -0
- ai_docs_toolkit-0.1.0/tests/test_context_cli_markdown.py +322 -0
- ai_docs_toolkit-0.1.0/tests/test_context_depth.py +340 -0
- ai_docs_toolkit-0.1.0/tests/test_context_policy.py +385 -0
- ai_docs_toolkit-0.1.0/tests/test_context_selector.py +380 -0
- ai_docs_toolkit-0.1.0/tests/test_document_graph.py +155 -0
- ai_docs_toolkit-0.1.0/tests/test_document_registry.py +154 -0
- ai_docs_toolkit-0.1.0/tests/test_execution_evals.py +310 -0
- ai_docs_toolkit-0.1.0/tests/test_frontmatter_parser.py +97 -0
- ai_docs_toolkit-0.1.0/tests/test_graph_cli_json.py +313 -0
- ai_docs_toolkit-0.1.0/tests/test_impact_analysis.py +233 -0
- ai_docs_toolkit-0.1.0/tests/test_impact_cli_human.py +190 -0
- ai_docs_toolkit-0.1.0/tests/test_impact_cli_json.py +421 -0
- ai_docs_toolkit-0.1.0/tests/test_init_cli.py +692 -0
- ai_docs_toolkit-0.1.0/tests/test_mcp_server.py +572 -0
- ai_docs_toolkit-0.1.0/tests/test_schema_validation.py +382 -0
- ai_docs_toolkit-0.1.0/tests/test_skill_eval_harness.py +666 -0
- ai_docs_toolkit-0.1.0/tests/test_structure_validation.py +1361 -0
- ai_docs_toolkit-0.1.0/tests/test_task_export.py +404 -0
- ai_docs_toolkit-0.1.0/tests/test_validate_cli_human.py +254 -0
- ai_docs_toolkit-0.1.0/tests/test_validate_cli_json.py +329 -0
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ai-docs-toolkit
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: AI-oriented documentation toolkit.
|
|
5
|
+
Requires-Python: >=3.11
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
Requires-Dist: jsonschema>=4.26
|
|
8
|
+
Requires-Dist: PyYAML>=6.0
|
|
9
|
+
Provides-Extra: dev
|
|
10
|
+
Requires-Dist: build>=1.2; extra == "dev"
|
|
11
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
12
|
+
Provides-Extra: mcp
|
|
13
|
+
Requires-Dist: mcp<3,>=2; extra == "mcp"
|
|
14
|
+
|
|
15
|
+
# AI Docs Toolkit
|
|
16
|
+
|
|
17
|
+
AI Docs Toolkit is a documentation toolkit for AI-assisted software development.
|
|
18
|
+
|
|
19
|
+
It treats documentation as an engineering interface between humans, AI agents, code, tests and change management. It provides versioned CLI and MCP tools, reusable agent instructions and project-owned documentation workflows.
|
|
20
|
+
|
|
21
|
+
## Purpose
|
|
22
|
+
|
|
23
|
+
The toolkit is intended for projects where:
|
|
24
|
+
- AI agents participate in implementation;
|
|
25
|
+
- system knowledge must stay readable for humans and usable by automation;
|
|
26
|
+
- documentation should define constraints, expected behavior and validation rules;
|
|
27
|
+
- changes should be traceable across business rules, architecture, contracts, modules, acceptance criteria and code.
|
|
28
|
+
|
|
29
|
+
The core idea is that documentation should not be a secondary artifact created after implementation. It should guide implementation, validation and review.
|
|
30
|
+
|
|
31
|
+
## Current Status
|
|
32
|
+
|
|
33
|
+
The stable 0.1.0 package includes:
|
|
34
|
+
- schema and structure validation for Markdown documents with YAML front matter;
|
|
35
|
+
- document graph output;
|
|
36
|
+
- impact analysis;
|
|
37
|
+
- context bundle output;
|
|
38
|
+
- an executable `ai-docs` CLI;
|
|
39
|
+
- optional local MCP runtime entrypoint.
|
|
40
|
+
|
|
41
|
+
## Installation
|
|
42
|
+
|
|
43
|
+
Install the stable release:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
python -m pip install ai-docs-toolkit==0.1.0
|
|
47
|
+
ai-docs --version
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
For ephemeral execution with `uvx`:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
uvx --from ai-docs-toolkit==0.1.0 ai-docs --version
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
For the optional local MCP runtime:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
python -m pip install "ai-docs-toolkit[mcp]==0.1.0"
|
|
60
|
+
ai-docs-mcp --project-root .
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
For the latest stable release, use `python -m pip install --upgrade ai-docs-toolkit`
|
|
64
|
+
without an exact version pin.
|
|
65
|
+
|
|
66
|
+
## Stable 0.1.0
|
|
67
|
+
|
|
68
|
+
This release completes the 0.1.0 beta series. Small edits and short bounded work
|
|
69
|
+
can use sufficient session context; task records remain available when durable
|
|
70
|
+
continuation, handoff or project policy requires them. Agent instructions are in
|
|
71
|
+
English and were reviewed for compactness. Existing assignments carry across
|
|
72
|
+
technical steps, and significant work includes a proportionate retrospective.
|
|
73
|
+
|
|
74
|
+
Context excludes archived history by default, supports an optional body budget
|
|
75
|
+
and configurable traversal depth, and explains selection, exclusions and gaps.
|
|
76
|
+
The budget is off by default; required documents remain whole on overflow.
|
|
77
|
+
Strict JSON consumers must accept the added context metadata. CLI/MCP names and
|
|
78
|
+
existing task/document ids are preserved.
|
|
79
|
+
|
|
80
|
+
When upgrading from 0.1.0b25, review `ai-docs init --dry-run` and `ai-docs init
|
|
81
|
+
--check`, resolve modified managed files, then run `ai-docs init`. Existing
|
|
82
|
+
AGENTS.md, config and local policy require a deliberate merge where applicable;
|
|
83
|
+
keep project checks and restart MCP clients. Validate the project and inspect
|
|
84
|
+
representative context output. See the packaged
|
|
85
|
+
`ai_docs_toolkit/docs/agent-installation.md`, “Integrated Consumer Migration”,
|
|
86
|
+
for commands, preservation rules and rollback. No bulk task/schema migration is
|
|
87
|
+
required.
|
|
88
|
+
|
|
89
|
+
Compatibility was checked with five synthetic consumer profiles. Agent behavior
|
|
90
|
+
was observed on one runtime; these checks do not establish universal performance
|
|
91
|
+
improvements or real consumer pilot coverage.
|
|
92
|
+
|
|
93
|
+
## Earlier Beta Changes
|
|
94
|
+
|
|
95
|
+
Beta 12 excludes Markdown documents under `work_history.archive_root` from
|
|
96
|
+
`ai-docs validate` checks while retaining successfully parsed archive ids for
|
|
97
|
+
active-document relationship resolution. Validation summaries include
|
|
98
|
+
`archived_documents_excluded`. Set `work_history.archive_root: null` to retain
|
|
99
|
+
the previous validate-all behavior.
|
|
100
|
+
|
|
101
|
+
Beta 13 updates toolkit-managed agent instructions so agents proactively report
|
|
102
|
+
blocking decisions, safe non-blocking defaults and implementation proposals.
|
|
103
|
+
Existing projects should follow the packaged
|
|
104
|
+
`.ai-docs/templates/release/decision-visibility-beta-13.md` migration note.
|
|
105
|
+
|
|
106
|
+
Beta 14 adds explicit code-to-module ownership mapping for
|
|
107
|
+
`ai-docs impact --changed`, plus `--base REF` support for clean CI checkouts.
|
|
108
|
+
Existing projects should follow the packaged
|
|
109
|
+
`.ai-docs/templates/release/cascade-impact-beta-14.md` migration note.
|
|
110
|
+
|
|
111
|
+
Beta 15 restores the toolkit update route alongside the cascade adoption route
|
|
112
|
+
in the managed agent-profile skill index. Existing projects should follow the
|
|
113
|
+
packaged `.ai-docs/templates/release/routing-restoration-beta-15.md` migration
|
|
114
|
+
note.
|
|
115
|
+
|
|
116
|
+
Beta 16 adds explicit completed-task retirement after current knowledge is
|
|
117
|
+
transferred to canonical documents. Existing projects should follow the
|
|
118
|
+
packaged `.ai-docs/templates/release/task-retirement-beta-16.md` migration note.
|
|
119
|
+
|
|
120
|
+
Beta 17 reconciles incoming request storage under canonical
|
|
121
|
+
`ai-docs/requests/`, packages the referenced incoming request model and adds
|
|
122
|
+
safe migration guidance for records created under legacy `docs/requests/`.
|
|
123
|
+
Existing projects should follow the packaged
|
|
124
|
+
`.ai-docs/templates/release/incoming-request-storage-beta-17.md` migration note.
|
|
125
|
+
|
|
126
|
+
Beta 19 bounds doctor Markdown discovery to project documentation roots, skips
|
|
127
|
+
symlinked files and tolerates entries removed during traversal. Existing
|
|
128
|
+
projects should follow
|
|
129
|
+
`.ai-docs/templates/release/doctor-filesystem-traversal-beta-19.md`.
|
|
130
|
+
|
|
131
|
+
Beta 20 adds stable JSON output for `ai-docs doctor`, exposes the same contract
|
|
132
|
+
through the read-only `ai_docs_doctor` MCP tool and records managed-file
|
|
133
|
+
provenance in `.ai-docs/managed-files.json`. Existing projects should follow
|
|
134
|
+
`.ai-docs/templates/release/doctor-json-provenance-beta-20.md` and reconnect
|
|
135
|
+
long-lived MCP processes after upgrading.
|
|
136
|
+
|
|
137
|
+
Beta 21 adds the toolkit-managed `documentation-change-review` skill and its
|
|
138
|
+
normative reference contract. Existing projects should follow
|
|
139
|
+
`.ai-docs/templates/release/documentation-change-review-beta-21.md` and review
|
|
140
|
+
managed-file changes before refreshing the agent profile.
|
|
141
|
+
|
|
142
|
+
Beta 22 adds the toolkit-managed `incoming-request-triage` skill, its normative
|
|
143
|
+
contract and safe composition with the existing request/planning lifecycle.
|
|
144
|
+
Existing projects should follow
|
|
145
|
+
`.ai-docs/templates/release/incoming-request-triage-beta-22.md` and review
|
|
146
|
+
managed-file changes before refreshing the agent profile.
|
|
147
|
+
|
|
148
|
+
Beta 23 adds the toolkit-managed `documentation-cascade-authoring` skill and
|
|
149
|
+
its normative contract for authorized, top-down documentation changes.
|
|
150
|
+
Existing projects should follow
|
|
151
|
+
`.ai-docs/templates/release/documentation-cascade-authoring-beta-23.md` and
|
|
152
|
+
review managed-file changes before refreshing the agent profile.
|
|
153
|
+
|
|
154
|
+
Beta 24 moves the optional MCP runtime to the stable Python MCP SDK 2.x line
|
|
155
|
+
with dependency range `mcp>=2,<3`. Existing MCP tool/resource names and stdio
|
|
156
|
+
entrypoints remain unchanged. Consumers upgrading from beta 23 should reinstall
|
|
157
|
+
the MCP extra and reconnect every long-lived MCP client before verification.
|
|
158
|
+
|
|
159
|
+
Beta 25 preserves printable Unicode characters when toolkit operations rewrite
|
|
160
|
+
Markdown YAML front matter. Planning lifecycle commands, task registry updates
|
|
161
|
+
and Azure DevOps write-back no longer replace readable non-ASCII text with
|
|
162
|
+
`\uXXXX` escape sequences. No manual migration is required.
|
|
163
|
+
|
|
164
|
+
## Quick Start
|
|
165
|
+
|
|
166
|
+
Bootstrap a repository for AI Docs Toolkit:
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
ai-docs init
|
|
170
|
+
ai-docs validate
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
For a documentation-only bootstrap without `AGENTS.md`:
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
ai-docs init --profile minimal
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
The command creates missing toolkit files and skips existing files by default.
|
|
180
|
+
Use `--force` only when you explicitly want to overwrite toolkit-owned target files.
|
|
181
|
+
|
|
182
|
+
Validate a configured project:
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
ai-docs validate
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
Generate machine-readable validation output:
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
ai-docs validate --json
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Build a document graph:
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
ai-docs graph --format json
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
Analyze impact for changed files:
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
ai-docs impact --changed
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
Prepare an agent context bundle for changed files:
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
ai-docs context --changed
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
## Repository Bootstrap
|
|
213
|
+
|
|
214
|
+
Repository bootstrap is an explicit command.
|
|
215
|
+
Package installation does not modify project files.
|
|
216
|
+
|
|
217
|
+
Default agent-oriented bootstrap:
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
ai-docs init
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
Minimal bootstrap:
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
ai-docs init --profile minimal
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
The source repository may be private or unavailable to agents in consuming projects.
|
|
230
|
+
Package usage does not require access to repository-local documentation files.
|
|
231
|
+
|
|
232
|
+
## AI Agent Instructions
|
|
233
|
+
|
|
234
|
+
The package includes an agent-readable instruction document for install, update, bootstrap, validation and context commands.
|
|
235
|
+
|
|
236
|
+
Give this short instruction to an agent that can inspect installed package resources:
|
|
237
|
+
|
|
238
|
+
```text
|
|
239
|
+
Install `ai-docs-toolkit`, then configure this repository by following the packaged instructions in `ai_docs_toolkit/docs/agent-installation.md`.
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
After installation, an agent can locate it with:
|
|
243
|
+
|
|
244
|
+
```bash
|
|
245
|
+
python -c "from importlib import resources; print(resources.files('ai_docs_toolkit').joinpath('docs/agent-installation.md'))"
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
Operators can give the prompt from that document to an AI agent when asking it to install or update the toolkit in a consuming repository.
|
|
249
|
+
|
|
250
|
+
## Development
|
|
251
|
+
|
|
252
|
+
Source checkout development install:
|
|
253
|
+
|
|
254
|
+
```bash
|
|
255
|
+
python -m pip install -e ".[dev]"
|
|
256
|
+
ai-docs --version
|
|
257
|
+
ai-docs validate
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
Current CI/source checkout install contract:
|
|
261
|
+
|
|
262
|
+
```bash
|
|
263
|
+
python -m pip install -e .
|
|
264
|
+
ai-docs validate --json
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
## License
|
|
268
|
+
|
|
269
|
+
License is not selected yet.
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
# AI Docs Toolkit
|
|
2
|
+
|
|
3
|
+
AI Docs Toolkit is a documentation toolkit for AI-assisted software development.
|
|
4
|
+
|
|
5
|
+
It treats documentation as an engineering interface between humans, AI agents, code, tests and change management. Version 0.1.0 is the first stable release after the beta series.
|
|
6
|
+
|
|
7
|
+
## Purpose
|
|
8
|
+
|
|
9
|
+
The toolkit is intended for projects where:
|
|
10
|
+
- AI agents participate in implementation;
|
|
11
|
+
- system knowledge must stay readable for humans and usable by automation;
|
|
12
|
+
- documentation should define constraints, expected behavior and validation rules;
|
|
13
|
+
- changes should be traceable across business rules, architecture, contracts, modules, acceptance criteria and code.
|
|
14
|
+
|
|
15
|
+
The core idea is that documentation should not be a secondary artifact created after implementation. It should guide implementation, validation and review.
|
|
16
|
+
|
|
17
|
+
## Use Cases
|
|
18
|
+
|
|
19
|
+
AI Docs Toolkit supports:
|
|
20
|
+
- typed Markdown documents with YAML front matter;
|
|
21
|
+
- document taxonomy and explicit relationships;
|
|
22
|
+
- validation of metadata, required sections and links;
|
|
23
|
+
- document graph construction;
|
|
24
|
+
- impact analysis for planned and actual changes;
|
|
25
|
+
- context bundles for AI agents;
|
|
26
|
+
- CI, pre-commit and agent workflow integrations.
|
|
27
|
+
|
|
28
|
+
## Current Status
|
|
29
|
+
|
|
30
|
+
The stable package provides:
|
|
31
|
+
- typed Markdown documents with YAML front matter;
|
|
32
|
+
- schema and structure validation;
|
|
33
|
+
- document graph output;
|
|
34
|
+
- impact analysis;
|
|
35
|
+
- context selection with history filtering, optional body budgets and configurable depth;
|
|
36
|
+
- proportionate agent workflows and optional MCP integration;
|
|
37
|
+
- CI, pre-commit and agent workflow examples.
|
|
38
|
+
|
|
39
|
+
At this stage the repository contains:
|
|
40
|
+
- concept documents that explain the methodology;
|
|
41
|
+
- architecture and reference documents for repository structure, schemas, CLI, graph, impact, context, CI and distribution;
|
|
42
|
+
- planning documents that define active post-MVP hardening work;
|
|
43
|
+
- a workflow for implementing plan stages as documented change units;
|
|
44
|
+
- YAML schemas for MVP front matter and document types;
|
|
45
|
+
- Markdown document templates and a minimal project example;
|
|
46
|
+
- Python package baseline and an executable `ai-docs` CLI.
|
|
47
|
+
|
|
48
|
+
## Installation
|
|
49
|
+
|
|
50
|
+
Current supported local development install from a source checkout:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
python -m pip install -e ".[dev]"
|
|
54
|
+
ai-docs --version
|
|
55
|
+
ai-docs validate
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Current CI/source checkout install contract:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
python -m pip install -e .
|
|
62
|
+
ai-docs validate --json
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
For a consuming project using an installed package:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
python -m pip install ai-docs-toolkit
|
|
69
|
+
ai-docs init
|
|
70
|
+
ai-docs validate
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Install the stable package from Public PyPI with your preferred tool:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
python -m pip install ai-docs-toolkit
|
|
77
|
+
pipx install ai-docs-toolkit
|
|
78
|
+
uvx --from ai-docs-toolkit ai-docs validate
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
For upgrades from beta 25, follow the [consumer migration guide](src/ai_docs_toolkit/docs/agent-installation.md#integrated-consumer-migration-010).
|
|
82
|
+
Review managed-file changes and preserve existing project rules before refreshing.
|
|
83
|
+
|
|
84
|
+
Docker, npm/npx and standalone binary distribution are deferred.
|
|
85
|
+
See [Distribution Strategy](.ai-docs/reference/distribution-strategy.md) for supported and deferred channels.
|
|
86
|
+
|
|
87
|
+
## Quick Start
|
|
88
|
+
|
|
89
|
+
Validate this repository:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
ai-docs validate
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Bootstrap a consuming project after installing the package:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
ai-docs init
|
|
99
|
+
ai-docs validate
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
For an AI agent installing the package in a consuming project, use the packaged instruction document:
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
python -c "from importlib import resources; print(resources.files('ai_docs_toolkit').joinpath('docs/agent-installation.md'))"
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
The packaged instruction document also includes JetBrains MCP setup steps for both manual setup and agent-assisted setup.
|
|
109
|
+
|
|
110
|
+
Generate machine-readable validation output:
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
ai-docs validate --json
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Build a document graph:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
ai-docs graph --format json
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Analyze impact for changed files:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
ai-docs impact --changed
|
|
126
|
+
ai-docs impact --changed --base <git-ref> --format json
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Projects can opt in to code-to-document impact through `cascade.root_module` and `cascade.module_ownership` in `ai-docs.config.yaml`.
|
|
130
|
+
|
|
131
|
+
Prepare an agent context bundle for changed files:
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
ai-docs context --changed
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## Documentation Map
|
|
138
|
+
|
|
139
|
+
Start here:
|
|
140
|
+
- [Vision](ai-docs/concepts/vision.md)
|
|
141
|
+
- [Documentation as Interface](ai-docs/concepts/documentation-as-interface.md)
|
|
142
|
+
- [Document Taxonomy](ai-docs/concepts/document-taxonomy.md)
|
|
143
|
+
- [Change Cascade](ai-docs/concepts/change-cascade.md)
|
|
144
|
+
- [Planning as Execution Interface](ai-docs/concepts/planning-as-execution-interface.md)
|
|
145
|
+
|
|
146
|
+
Architecture:
|
|
147
|
+
- [Repository Structure](ai-docs/architecture/repository-structure.md)
|
|
148
|
+
- [Schemas and Templates](ai-docs/architecture/schemas-and-templates.md)
|
|
149
|
+
- [CLI Architecture](ai-docs/architecture/cli-architecture.md)
|
|
150
|
+
|
|
151
|
+
Planning:
|
|
152
|
+
- [MVP Plan](ai-docs/planning/archive/plans/2026-05-13-mvp/plan.md)
|
|
153
|
+
- [Backlog](ai-docs/planning/backlog.md)
|
|
154
|
+
|
|
155
|
+
Workflows:
|
|
156
|
+
- [Plan Stage Workflow](.ai-docs/workflows/plan-stage-workflow.md)
|
|
157
|
+
|
|
158
|
+
Reference:
|
|
159
|
+
- [Document Types](.ai-docs/reference/document-types.md)
|
|
160
|
+
- [Front Matter Fields](.ai-docs/reference/frontmatter-fields.md)
|
|
161
|
+
- [Planning Document Model](.ai-docs/reference/planning-document-model.md)
|
|
162
|
+
- [Source Of Truth Model](.ai-docs/reference/source-of-truth-model.md)
|
|
163
|
+
- [Test Case Documentation](.ai-docs/reference/test-case-documentation.md)
|
|
164
|
+
- [Distribution Strategy](.ai-docs/reference/distribution-strategy.md)
|
|
165
|
+
- [CI And Agent Integration](.ai-docs/reference/ci-agent-integration.md)
|
|
166
|
+
- [Init Command Contract](.ai-docs/reference/init-command-contract.md)
|
|
167
|
+
|
|
168
|
+
## Development Model
|
|
169
|
+
|
|
170
|
+
The toolkit is developed using its own documentation methodology.
|
|
171
|
+
|
|
172
|
+
Changes should be handled as documented change units:
|
|
173
|
+
- identify the active plan stage;
|
|
174
|
+
- read [Plan Stage Workflow](.ai-docs/workflows/plan-stage-workflow.md) before executing planning tasks;
|
|
175
|
+
- read the source documents for the task;
|
|
176
|
+
- update affected documentation before or together with implementation;
|
|
177
|
+
- keep planning documents aligned with the actual repository state;
|
|
178
|
+
- run `ai-docs validate` before closure.
|
|
179
|
+
|
|
180
|
+
For the current execution workflow, see [Plan Stage Workflow](.ai-docs/workflows/plan-stage-workflow.md).
|
|
181
|
+
|
|
182
|
+
## Planning Direction
|
|
183
|
+
|
|
184
|
+
The MVP plan is closed and retained as work history.
|
|
185
|
+
Current work is tracked in the post-MVP hardening plan.
|
|
186
|
+
|
|
187
|
+
Details:
|
|
188
|
+
- [Post-MVP Hardening Plan](ai-docs/planning/archive/plans/2026-05-15-post-mvp-hardening/plan.md)
|
|
189
|
+
- [MVP Plan](ai-docs/planning/archive/plans/2026-05-13-mvp/plan.md)
|
|
190
|
+
|
|
191
|
+
## Non-Goals For MVP
|
|
192
|
+
|
|
193
|
+
The MVP does not aim to provide:
|
|
194
|
+
- semantic contradiction detection;
|
|
195
|
+
- automatic documentation rewriting;
|
|
196
|
+
- full IDE plugins;
|
|
197
|
+
- hosted services;
|
|
198
|
+
- database-backed graph storage;
|
|
199
|
+
- cross-repository dependency graphs.
|
|
200
|
+
|
|
201
|
+
## License
|
|
202
|
+
|
|
203
|
+
License is not selected yet. This is tracked as a product documentation gap in [BLG-017 Product Core Documentation Gaps](ai-docs/planning/backlog/task-000009-product-core-documentation-gaps.md).
|