@laitszkin/apollo-toolkit 3.8.2 → 3.8.3
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.
- package/CHANGELOG.md +7 -0
- package/align-project-documents/SKILL.md +136 -130
- package/align-project-documents/agents/openai.yaml +2 -2
- package/align-project-documents/references/templates/standardized-docs-template.md +119 -0
- package/analyse-app-logs/scripts/__pycache__/filter_logs_by_time.cpython-312.pyc +0 -0
- package/analyse-app-logs/scripts/__pycache__/log_cli_utils.cpython-312.pyc +0 -0
- package/analyse-app-logs/scripts/__pycache__/search_logs.cpython-312.pyc +0 -0
- package/archive-specs/README.md +12 -25
- package/archive-specs/SKILL.md +24 -47
- package/archive-specs/agents/openai.yaml +2 -2
- package/archive-specs/references/templates/architecture.md +13 -21
- package/archive-specs/references/templates/docs-index.md +24 -24
- package/archive-specs/references/templates/features.md +18 -18
- package/archive-specs/references/templates/principles.md +28 -0
- package/archive-specs/references/templates/readme.md +4 -13
- package/docs-to-voice/scripts/__pycache__/docs_to_voice.cpython-312.pyc +0 -0
- package/generate-spec/scripts/__pycache__/create-specscpython-312.pyc +0 -0
- package/katex/scripts/__pycache__/render_katex.cpython-312.pyc +0 -0
- package/maintain-project-constraints/SKILL.md +90 -88
- package/maintain-project-constraints/agents/openai.yaml +2 -2
- package/open-github-issue/scripts/__pycache__/open_github_issue.cpython-312.pyc +0 -0
- package/package.json +1 -1
- package/read-github-issue/scripts/__pycache__/find_issues.cpython-312.pyc +0 -0
- package/read-github-issue/scripts/__pycache__/read_issue.cpython-312.pyc +0 -0
- package/resolve-review-comments/scripts/__pycache__/review_threads.cpython-312.pyc +0 -0
- package/text-to-short-video/scripts/__pycache__/enforce_video_aspect_ratio.cpython-312.pyc +0 -0
- package/align-project-documents/references/templates/category-based-project-docs-template.md +0 -170
- package/archive-specs/references/templates/configuration.md +0 -29
- package/archive-specs/references/templates/developer-guide.md +0 -33
- package/archive-specs/references/templates/getting-started.md +0 -38
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
2
|
display_name: "archive-specs"
|
|
3
|
-
short_description: "Convert completed specs into project docs and archive the consumed plans"
|
|
4
|
-
default_prompt: "Use $archive-specs to inventory the project's spec.md/tasks.md/checklist.md/contract.md/design.md files plus any batch-level coordination.md, reconcile them with the current repository, use coordination.md to understand shared preparation and legacy-replacement direction across parallel plan sets,
|
|
3
|
+
short_description: "Convert completed specs into standardized project docs and archive the consumed plans"
|
|
4
|
+
default_prompt: "Use $archive-specs to inventory the project's spec.md/tasks.md/checklist.md/contract.md/design.md files plus any batch-level coordination.md, reconcile them with the current repository, use coordination.md to understand shared preparation and legacy-replacement direction across parallel plan sets, delegate documentation generation to align-project-documents which produces standardized docs under docs/features/ (BDD user-facing features), docs/architecture/ (macro-level design principles), and docs/principles/ (code conventions and constraints), then delegate AGENTS.md/CLAUDE.md refresh to maintain-project-constraints which writes business goals, common commands, and the project documentation index. Archive the consumed source plans after successful conversion, deleting them only when the repository clearly does not need historical retention and keeping coordination.md active while any spec set still depends on it."
|
|
@@ -1,29 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# <模組/層名稱> 設計原則
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[One-sentence summary of this module's role in the system.]
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
- Major modules: [module names and responsibilities]
|
|
7
|
-
- Data flow summary: [request/event/job flow]
|
|
8
|
-
- Integration boundaries: [DB/API/queue/filesystem]
|
|
5
|
+
## <原則標題>
|
|
9
6
|
|
|
10
|
-
|
|
7
|
+
<原則描述:這條原則規範什麼、為什麼這樣設計、適用範圍>
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
| --- | --- |
|
|
14
|
-
| `[path]` | [What lives here] |
|
|
15
|
-
| `[path]` | [What lives here] |
|
|
9
|
+
## <原則標題>
|
|
16
10
|
|
|
17
|
-
|
|
11
|
+
<原則描述>
|
|
18
12
|
|
|
19
|
-
|
|
20
|
-
- Trigger: [route/command/job]
|
|
21
|
-
- Main steps: [step summary]
|
|
22
|
-
- Dependencies: [internal/external]
|
|
23
|
-
- Failure boundaries: [where failures surface]
|
|
13
|
+
---
|
|
24
14
|
|
|
25
|
-
##
|
|
15
|
+
## Writing Rules
|
|
26
16
|
|
|
27
|
-
- State
|
|
28
|
-
-
|
|
29
|
-
-
|
|
17
|
+
- State design principles, not implementation details.
|
|
18
|
+
- Keep each principle macro-level so it survives minor code changes.
|
|
19
|
+
- Focus on: module responsibilities, boundary rules, data flow direction, and integration contracts.
|
|
20
|
+
- Each file covers one module or architectural layer.
|
|
21
|
+
- Before writing a principle, ask: "Would a refactor that renames files or extracts a helper violate this principle?" If yes, the principle is too specific.
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
# [Project Name] Documentation
|
|
1
|
+
# [Project Name] Documentation Index
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Features (`docs/features/`)
|
|
4
4
|
|
|
5
|
-
-
|
|
6
|
-
- Setup and deployment: `docs/getting-started.md`
|
|
7
|
-
- Configuration and external services: `docs/configuration.md`
|
|
8
|
-
- Architecture: `docs/architecture.md`
|
|
9
|
-
- Features and workflows: `docs/features.md`
|
|
10
|
-
- Developer guide: `docs/developer-guide.md`
|
|
5
|
+
User-facing capabilities described with BDD scenarios (Given/When/Then). Each file covers one functional category.
|
|
11
6
|
|
|
12
|
-
|
|
7
|
+
| File | Category | Description |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| `docs/features/[category].md` | [category name] | [One-line description] |
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
- Audience: [operators / developers / both]
|
|
16
|
-
- Covers: installation, prerequisites, local run, deployment flow
|
|
11
|
+
## Architecture (`docs/architecture/`)
|
|
17
12
|
|
|
18
|
-
|
|
19
|
-
- Audience: [operators / developers / both]
|
|
20
|
-
- Covers: env vars, config files, secrets, external services, API key setup
|
|
13
|
+
Macro-level design principles organized by module or layer. Each principle is abstract enough to survive minor code changes.
|
|
21
14
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
| File | Module | Description |
|
|
16
|
+
| --- | --- | --- |
|
|
17
|
+
| `docs/architecture/[module].md` | [module name] | [One-line description] |
|
|
25
18
|
|
|
26
|
-
|
|
27
|
-
- Audience: [users / support / developers]
|
|
28
|
-
- Covers: major workflows, entrypoints, user value, important edge cases
|
|
19
|
+
## Principles (`docs/principles/`)
|
|
29
20
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
Code style, naming conventions, and development constraints extracted from the codebase.
|
|
22
|
+
|
|
23
|
+
| File | Topic | Description |
|
|
24
|
+
| --- | --- | --- |
|
|
25
|
+
| `docs/principles/[topic].md` | [topic name] | [One-line description] |
|
|
26
|
+
|
|
27
|
+
## Root Documents
|
|
28
|
+
|
|
29
|
+
- `README.md` — project overview and quick start
|
|
30
|
+
- `CONTRIBUTING.md` — contribution workflow (if applicable)
|
|
31
|
+
- `SECURITY.md` — vulnerability reporting (if applicable)
|
|
32
|
+
- `CHANGELOG.md` — release history (if applicable)
|
|
33
33
|
|
|
34
34
|
## Reference List
|
|
35
35
|
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# <功能類別名稱>
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[One-sentence summary of this functional category from a user perspective.]
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
- Primary entrypoints: [routes/pages/commands/jobs]
|
|
7
|
-
- Notable limitations or guardrails: [if any]
|
|
5
|
+
## <功能名稱>
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
- **Given** <前置條件>
|
|
8
|
+
- **When** <使用者操作>
|
|
9
|
+
- **Then** <預期結果>
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
## <功能名稱>
|
|
12
12
|
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
- Edge or failure notes: [important caveats]
|
|
17
|
-
- Evidence: [spec/code/doc path]
|
|
13
|
+
- **Given** <前置條件>
|
|
14
|
+
- **When** <使用者操作>
|
|
15
|
+
- **Then** <預期結果>
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
---
|
|
20
18
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
19
|
+
## Writing Rules
|
|
20
|
+
|
|
21
|
+
- Describe behavior from a user's perspective; never mention file paths, function names, or database tables.
|
|
22
|
+
- Use BDD phrasing: **Given** (precondition) → **When** (action) → **Then** (outcome).
|
|
23
|
+
- Each file covers exactly one functional category (e.g., authentication, data export, notifications).
|
|
24
|
+
- Group related features under descriptive subheadings.
|
|
25
|
+
- Title the file with a term users would recognize, not a module name.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# <慣例類別>
|
|
2
|
+
|
|
3
|
+
[One-sentence summary of what this convention area covers.]
|
|
4
|
+
|
|
5
|
+
## <慣例名稱>
|
|
6
|
+
|
|
7
|
+
<慣例描述>
|
|
8
|
+
|
|
9
|
+
**理由**: <為什麼採用此慣例>
|
|
10
|
+
|
|
11
|
+
**範例**: <從代碼庫提取的具體範例>
|
|
12
|
+
|
|
13
|
+
## <慣例名稱>
|
|
14
|
+
|
|
15
|
+
<慣例描述>
|
|
16
|
+
|
|
17
|
+
**理由**: <為什麼採用此慣例>
|
|
18
|
+
|
|
19
|
+
**範例**: <從代碼庫提取的具體範例>
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Writing Rules
|
|
24
|
+
|
|
25
|
+
- Each file covers one convention area (e.g., naming, coding style, dependency management, error handling, testing).
|
|
26
|
+
- State the convention clearly.
|
|
27
|
+
- Provide rationale traceable to the codebase.
|
|
28
|
+
- Include a brief example from the codebase, not an invented one.
|
|
@@ -29,20 +29,11 @@
|
|
|
29
29
|
|
|
30
30
|
## Documentation
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
- Setup and deployment: `docs/getting-started.md`
|
|
34
|
-
- Configuration: `docs/configuration.md`
|
|
35
|
-
- Architecture: `docs/architecture.md`
|
|
36
|
-
- Features: `docs/features.md`
|
|
37
|
-
- Developer guide: `docs/developer-guide.md`
|
|
32
|
+
Detailed documentation is available under `docs/` and indexed in `AGENTS.md`/`CLAUDE.md`:
|
|
38
33
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
[Short explanation of the user-facing value and the main flow.]
|
|
43
|
-
|
|
44
|
-
### [Feature Area 2]
|
|
45
|
-
[Short explanation of the user-facing value and the main flow.]
|
|
34
|
+
- **Features** (`docs/features/`): user-facing capabilities described with BDD scenarios
|
|
35
|
+
- **Architecture** (`docs/architecture/`): macro-level design principles by module
|
|
36
|
+
- **Principles** (`docs/principles/`): code style, naming conventions, and development constraints
|
|
46
37
|
|
|
47
38
|
## Notes
|
|
48
39
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: maintain-project-constraints
|
|
3
|
-
description:
|
|
3
|
+
description: Create and maintain AGENTS.md/CLAUDE.md with the project's macro business goals, common development commands, and an index of all standardized project documentation under docs/. Use when AGENTS.md/CLAUDE.md is missing or may be outdated.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Maintain Project Constraints
|
|
@@ -14,130 +14,132 @@ description: Automatically create and maintain AGENTS.md/CLAUDE.md so it stays a
|
|
|
14
14
|
|
|
15
15
|
## Standards
|
|
16
16
|
|
|
17
|
-
- Evidence: Infer
|
|
18
|
-
- Execution:
|
|
19
|
-
- Quality:
|
|
20
|
-
- Output: Maintain a concise root-level `AGENTS.md
|
|
17
|
+
- Evidence: Infer project business goals and common commands from current code, configuration, and existing project documentation — not assumptions.
|
|
18
|
+
- Execution: Read the entire codebase or existing project docs before writing; create or update only after building a concrete inventory.
|
|
19
|
+
- Quality: Remove stale commands, paths, and references; keep AGENTS.md/CLAUDE.md focused on the three required sections only.
|
|
20
|
+
- Output: Maintain a concise root-level `AGENTS.md`/`CLAUDE.md` with common development commands, macro business goals, and a project documentation index.
|
|
21
21
|
|
|
22
22
|
## Goal
|
|
23
23
|
|
|
24
|
-
Keep `AGENTS.md
|
|
24
|
+
Keep `AGENTS.md`/`CLAUDE.md` accurate and synchronized with the current state of the repository, focused on helping agents understand the project's purpose, navigate its documentation, and run common development tasks.
|
|
25
25
|
|
|
26
26
|
## Trigger Conditions
|
|
27
27
|
|
|
28
|
-
Invoke this skill when
|
|
28
|
+
Invoke this skill when:
|
|
29
29
|
|
|
30
|
-
1. `AGENTS.md
|
|
31
|
-
2. `AGENTS.md
|
|
30
|
+
1. `AGENTS.md` or `CLAUDE.md` does not exist.
|
|
31
|
+
2. `AGENTS.md` or `CLAUDE.md` exists but may have drifted after code changes, documentation updates, or workflow changes.
|
|
32
|
+
3. After `align-project-documents` has updated the `docs/` structure and the document index needs to be refreshed.
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
## Required Output Format
|
|
34
35
|
|
|
35
|
-
|
|
36
|
+
`AGENTS.md`/`CLAUDE.md` must contain exactly three sections:
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
### 1. Common Development Commands
|
|
38
39
|
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
40
|
+
- Include only commands that are real, current, and useful in this repository.
|
|
41
|
+
- Prefer repository-owned entry points: package scripts, CLIs, `bin/` programs, `scripts/`, `Makefile`, `justfile`, or equivalent task runners.
|
|
42
|
+
- For each command, explain when to use it in one short phrase.
|
|
43
|
+
- Prioritize commands that help an agent inspect, validate, build, test, or operate the repository.
|
|
44
|
+
- Do not invent commands, aliases, flags, or task names not traceable to the repository.
|
|
44
45
|
|
|
45
|
-
|
|
46
|
+
### 2. Project Business Goals
|
|
46
47
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
4. Keep it concise, but make sure the purpose is understandable without reading the rest of the document.
|
|
48
|
+
- Describe the project's macro business purpose: what problem it solves, what outcome it aims to achieve, who it serves.
|
|
49
|
+
- Write at the product or business level, not at the implementation level.
|
|
50
|
+
- Keep it concise but self-contained — a reader should understand why the project exists without reading other documents.
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
### 3. Project Documentation Index
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
5. Do not invent commands, aliases, flags, or task names that are not traceable to the repository.
|
|
54
|
+
- List all standardized project documentation files under `docs/`.
|
|
55
|
+
- Organize by category: `docs/features/`, `docs/architecture/`, `docs/principles/`.
|
|
56
|
+
- For each document, provide the file path and a one-line description of what it covers.
|
|
57
|
+
- List any additional root-level documentation files (e.g., `README.md`, `CONTRIBUTING.md`, `SECURITY.md`).
|
|
59
58
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
1. One short sentence that summarizes what the repository currently enables.
|
|
63
|
-
2. An exhaustive unordered list of the repository's current existing functions/capabilities.
|
|
64
|
-
3. Each bullet must be a short capability statement, preferably in the style of `- Users can ...` or the repository-equivalent actor phrasing.
|
|
65
|
-
|
|
66
|
-
Example:
|
|
59
|
+
### Template Example
|
|
67
60
|
|
|
68
61
|
```markdown
|
|
62
|
+
## Common Development Commands
|
|
69
63
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
- `npm test` — run the repository's automated test suite.
|
|
64
|
+
- `npm test` — run the test suite.
|
|
65
|
+
- `npm run build` — compile the project for production.
|
|
73
66
|
- `apltk validate-skill-frontmatter` — validate every top-level `SKILL.md` frontmatter block.
|
|
74
|
-
- `apltk validate-openai-agent-config` — validate every `agents/openai.yaml` interface config.
|
|
75
|
-
- `apltk codex` — install the current toolkit into the local Codex skills directory.
|
|
76
67
|
|
|
77
|
-
##
|
|
68
|
+
## Project Business Goals
|
|
78
69
|
|
|
79
70
|
This project enables users to manage and run reusable automation workflows.
|
|
71
|
+
It solves the problem of scattered, inconsistent automation scripts by providing a unified catalog of versioned, validated skills.
|
|
72
|
+
|
|
73
|
+
## Project Documentation Index
|
|
74
|
+
|
|
75
|
+
### Features (`docs/features/`)
|
|
76
|
+
|
|
77
|
+
- `docs/features/skill-management.md` — skill creation, editing, and lifecycle management
|
|
78
|
+
- `docs/features/validation.md` — skill and configuration validation workflows
|
|
79
|
+
|
|
80
|
+
### Architecture (`docs/architecture/`)
|
|
81
|
+
|
|
82
|
+
- `docs/architecture/skill-system.md` — skill loading, resolution, and execution model
|
|
83
|
+
- `docs/architecture/validation-pipeline.md` — validation pipeline design
|
|
84
|
+
|
|
85
|
+
### Principles (`docs/principles/`)
|
|
86
|
+
|
|
87
|
+
- `docs/principles/naming-conventions.md` — file and identifier naming rules
|
|
88
|
+
- `docs/principles/dependency-management.md` — internal and external dependency rules
|
|
89
|
+
|
|
90
|
+
### Root Documents
|
|
80
91
|
|
|
81
|
-
-
|
|
82
|
-
- Users can update an existing workflow configuration.
|
|
83
|
-
- Users can validate workflow inputs before execution.
|
|
84
|
-
- Users can run the workflow and inspect the result.
|
|
92
|
+
- `README.md` — project overview and quick start
|
|
85
93
|
```
|
|
86
94
|
|
|
87
95
|
## Workflow
|
|
88
96
|
|
|
89
|
-
### 1) Build factual understanding
|
|
97
|
+
### 1) Build factual understanding
|
|
90
98
|
|
|
91
|
-
-
|
|
92
|
-
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
- repository command
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
- test directories and tooling/config files
|
|
99
|
-
- Infer architecture and conventions from real code, not assumptions.
|
|
100
|
-
- Build a concrete inventory of all currently implemented capabilities before drafting `Core business flow`.
|
|
101
|
-
- Build a separate inventory of stable, repository-specific commands before drafting `Common Commands`.
|
|
99
|
+
- Read the repository entry points, configuration, and command surfaces (`package.json`, `bin/`, `scripts/`, `Makefile`, etc.).
|
|
100
|
+
- If standardized project documentation exists under `docs/`, read `docs/features/`, `docs/architecture/`, and `docs/principles/` to understand the documented capabilities and to build the index.
|
|
101
|
+
- If `docs/` does not exist or is incomplete, read the source code directly to extract business goals and common commands.
|
|
102
|
+
- Build a concrete inventory of:
|
|
103
|
+
- Every stable, repository-specific command.
|
|
104
|
+
- The project's macro business purpose (from docs, README, or inferred from the codebase's capabilities).
|
|
105
|
+
- Every file under `docs/` that should appear in the index.
|
|
102
106
|
|
|
103
|
-
### 2)
|
|
107
|
+
### 2) Extract macro business goals
|
|
104
108
|
|
|
105
|
-
|
|
109
|
+
- Derive the project's business purpose from:
|
|
110
|
+
1. Existing documentation (`README.md`, `docs/features/`) if available.
|
|
111
|
+
2. The set of user-facing capabilities found in the codebase.
|
|
112
|
+
- Write at the product level: what problem does this solve? who uses it? what outcome does it produce?
|
|
113
|
+
- Do not restate implementation details or list features; the document index already points to feature docs.
|
|
106
114
|
|
|
107
|
-
|
|
108
|
-
- Document architecture, business flow, purpose, and coding conventions from observed facts.
|
|
109
|
-
- Write `Core project purpose` as the repository's macro intent, such as the problem it aims to solve or the outcome it exists to achieve, rather than as a feature list.
|
|
110
|
-
- Document the repository's common commands from observed command entry points and docs.
|
|
111
|
-
- Write `Core business flow` as one summary sentence followed by unordered bullets that cover every current capability found in the repository.
|
|
112
|
-
- Write `Common commands` as short bullets in the style of ``- `command` — when to use it.``.
|
|
113
|
-
- Keep language specific to this repository; avoid generic boilerplate.
|
|
115
|
+
### 3) Write or update AGENTS.md/CLAUDE.md
|
|
114
116
|
|
|
115
|
-
|
|
117
|
+
- If `AGENTS.md` exists, update it. If `CLAUDE.md` exists, update it. If both exist, update both with identical content for the three sections.
|
|
118
|
+
- If neither exists, check for the repository's convention and create the appropriate file.
|
|
119
|
+
- Write only the three sections: Common Development Commands, Project Business Goals, Project Documentation Index.
|
|
120
|
+
- Do not add architecture descriptions, code style guidance, business flows, or any content that belongs in `docs/`.
|
|
116
121
|
|
|
117
|
-
|
|
122
|
+
### 4) Maintain the project documentation index
|
|
118
123
|
|
|
119
|
-
-
|
|
120
|
-
-
|
|
121
|
-
-
|
|
122
|
-
-
|
|
123
|
-
- Preserve correct existing content and structure where possible.
|
|
124
|
+
- Enumerate every file under `docs/features/`, `docs/architecture/`, and `docs/principles/`.
|
|
125
|
+
- For each file, write a one-line description of what it covers.
|
|
126
|
+
- List root-level documentation files (`README.md`, `CONTRIBUTING.md`, `SECURITY.md`, `CHANGELOG.md`, etc.) that exist in the repository.
|
|
127
|
+
- Keep the index synchronized with the actual files on disk; remove entries for deleted files and add entries for new files.
|
|
124
128
|
|
|
125
|
-
###
|
|
129
|
+
### 5) Quality checks before finishing
|
|
126
130
|
|
|
127
|
-
-
|
|
128
|
-
-
|
|
129
|
-
-
|
|
130
|
-
- Verify
|
|
131
|
-
-
|
|
132
|
-
-
|
|
133
|
-
- Keep instructions concise, concrete, and operational for future agents.
|
|
131
|
+
- Verify every command in Common Development Commands is traceable to a repository entry point.
|
|
132
|
+
- Verify Project Business Goals describes the macro purpose, not a feature list.
|
|
133
|
+
- Verify every file listed in the Documentation Index exists on disk.
|
|
134
|
+
- Verify the index covers all files under `docs/features/`, `docs/architecture/`, and `docs/principles/`.
|
|
135
|
+
- If both `AGENTS.md` and `CLAUDE.md` exist, verify their content is consistent.
|
|
136
|
+
- Remove any sections beyond the three required ones.
|
|
134
137
|
|
|
135
138
|
## Writing Rules
|
|
136
139
|
|
|
137
|
-
-
|
|
138
|
-
-
|
|
139
|
-
- Do not
|
|
140
|
-
- In
|
|
141
|
-
- In
|
|
142
|
-
-
|
|
143
|
-
- Keep the document focused on how agents should understand and operate in this project.
|
|
140
|
+
- Keep the document concise and scannable.
|
|
141
|
+
- Use the repository's own terminology.
|
|
142
|
+
- Do not speculate about architecture or implementation details.
|
|
143
|
+
- In Project Business Goals, describe the macro purpose; for example, the user or business problem the project solves.
|
|
144
|
+
- In the Documentation Index, prefer descriptive one-line summaries over bare file paths.
|
|
145
|
+
- When both `AGENTS.md` and `CLAUDE.md` exist, keep their content identical for the three sections.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
2
|
display_name: "Maintain Project Constraints"
|
|
3
|
-
short_description: "
|
|
4
|
-
default_prompt: "Use $maintain-project-constraints to
|
|
3
|
+
short_description: "Create and maintain AGENTS.md/CLAUDE.md with business goals, common commands, and project doc index"
|
|
4
|
+
default_prompt: "Use $maintain-project-constraints to read the codebase or existing project docs, extract the project's macro business goals, inventory common development commands, enumerate all standardized docs under docs/features/, docs/architecture/, and docs/principles/, then write or update AGENTS.md/CLAUDE.md with exactly three sections: Common Development Commands, Project Business Goals, and Project Documentation Index. If both AGENTS.md and CLAUDE.md exist, keep their content consistent."
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|