aimship 0.1.0-preview.4 → 0.1.0-preview.8
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/CONTRIBUTING.md +59 -0
- package/README.md +126 -19
- package/README.zh-CN.md +127 -20
- package/docs/cli.md +68 -32
- package/docs/examples.md +5 -0
- package/docs/guide.md +181 -30
- package/docs/guide.zh-CN.md +210 -0
- package/docs/installation.md +19 -108
- package/docs/reference.md +78 -0
- package/docs/reference.zh-CN.md +78 -0
- package/lib/approvals.mjs +153 -0
- package/lib/cli.mjs +29 -16
- package/lib/documents.mjs +156 -0
- package/lib/migrate.mjs +77 -0
- package/lib/state.mjs +96 -24
- package/lib/view.mjs +75 -0
- package/package.json +3 -2
- package/skills/aimship/SKILL.md +2 -2
- package/skills/aimship/references/artifact-map.json +172 -0
- package/skills/aimship/references/core.md +12 -6
- package/skills/aimship/references/document-patterns.md +32 -10
- package/skills/aimship/references/document-review.md +28 -0
- package/skills/aimship/references/hosts.md +4 -2
- package/skills/aimship/references/recovery.md +10 -0
- package/skills/aimship/references/sources-and-changes.md +8 -0
- package/skills/aimship/references/stages/contract.md +10 -2
- package/skills/aimship/references/stages/diagnose.md +10 -0
- package/skills/aimship/references/stages/frame.md +4 -0
- package/skills/aimship/references/stages/handoff.md +4 -0
- package/skills/aimship/references/stages/implement.md +6 -0
- package/skills/aimship/references/stages/plan.md +10 -2
- package/skills/aimship/references/stages/prototype.md +8 -0
- package/skills/aimship/references/stages/requirements.md +8 -0
- package/skills/aimship/references/stages/review.md +4 -0
- package/skills/aimship/references/stages/scope.md +8 -0
- package/skills/aimship/references/stages/tech-design.md +11 -1
- package/skills/aimship/references/stages/test-design.md +9 -1
- package/skills/aimship/references/stages/verify.md +6 -0
- package/skills/aimship/references/templates/change-log.md +14 -0
- package/skills/aimship/references/templates/diagnosis.md +39 -0
- package/skills/aimship/references/templates/handoff.md +34 -0
- package/skills/aimship/references/templates/plan.md +35 -0
- package/skills/aimship/references/templates/prd.md +39 -0
- package/skills/aimship/references/templates/review.md +19 -0
- package/skills/aimship/references/templates/scope.md +39 -0
- package/skills/aimship/references/templates/tech-design.md +40 -0
- package/skills/aimship/references/templates/testing.md +35 -0
package/docs/guide.md
CHANGED
|
@@ -1,59 +1,210 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Aimship Guide
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[中文](guide.zh-CN.md) · [README](../README.md)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This guide explains what to provide, how the agent proceeds and where to find results in common situations. You do not need to memorize stage names or fixed prompts.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
<a id="install"></a>
|
|
8
|
+
If Aimship is not installed yet, start with the README's [installation instructions](../README.md#install).
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
[Select Aimship](#hosts) · [Start from your situation](#start) · [Proceed and review](#review) · [Progress and results](#results) · [Changing requirements](#changes) · [Sessions and continuation](#continue) · [Parallel work](#parallel) · [Complete delivery](#completion) · [Usage problems](#troubleshoot)
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
<a id="hosts"></a>
|
|
13
|
+
<a id="1-select-aimship-in-your-host"></a>
|
|
14
|
+
<a id="1-select-aimship-in-your-ai-development-tool"></a>
|
|
15
|
+
## 1. Select Aimship in your AI tool
|
|
12
16
|
|
|
13
|
-
|
|
17
|
+
After installation, open a new tool session and select Aimship:
|
|
14
18
|
|
|
15
|
-
|
|
19
|
+
| AI tool | How to select it | If it is missing |
|
|
20
|
+
| --- | --- | --- |
|
|
21
|
+
| Codex | Choose Aimship in the Skill selector; use `$aimship` in CLI | Start a new conversation or restart the CLI; restart the app if the list is stale |
|
|
22
|
+
| Cursor | Use `/aimship` | Start a new agent session and inspect Customize → Skills; restart Cursor if stale |
|
|
23
|
+
| Claude Code | Use `/aimship` | Start a new session and inspect the slash-command list; restart Claude Code if stale |
|
|
16
24
|
|
|
17
|
-
|
|
25
|
+
Each tool needs its own login, available model and access to delivery materials and relevant code repositories. Grant access when an operation needs it. Delivery materials are stored separately; code stays in its existing repository.
|
|
18
26
|
|
|
19
|
-
|
|
27
|
+
AI tool integrations are experimental: actual Skill discovery, directory access and continuation across AI tools remain unverified. Healthy installation files do not prove that a tool loaded the Skill. Codex and Cursor share an entry, and compatible tools may discover entries in other locations; inspect paths and versions if duplicates appear, preserving unrelated or customized content. See the official [Cursor documentation](https://cursor.com/docs/skills) and [Codex skill locations](https://learn.chatgpt.com/docs/build-skills) for tool behavior.
|
|
20
28
|
|
|
21
|
-
|
|
29
|
+
<a id="start"></a>
|
|
30
|
+
<a id="describe-the-work-and-its-endpoint"></a>
|
|
31
|
+
## 2. Start from your current situation
|
|
22
32
|
|
|
23
|
-
|
|
33
|
+
### Starting with an idea
|
|
24
34
|
|
|
25
|
-
|
|
35
|
+
Describe the problem, who it affects, the expected change and known constraints. Include screenshots, discussion notes or references if available; a complete PRD is not required.
|
|
26
36
|
|
|
27
|
-
|
|
37
|
+
The agent clarifies gaps that affect scope and acceptance, organizes requirements, and proposes the stages and execution order. After you confirm the goal and important tradeoffs, work proceeds. Requirements and acceptance criteria are usually recorded in `prd.md`; open `status.md` for current progress.
|
|
28
38
|
|
|
29
|
-
|
|
39
|
+
### Working from an existing PRD, prototype or other materials
|
|
30
40
|
|
|
31
|
-
|
|
41
|
+
Provide material locations, the versions to adopt and relevant code locations. If only part of the material applies, identify that scope. Mention known gaps when materials are incomplete.
|
|
32
42
|
|
|
33
|
-
|
|
43
|
+
The agent checks access and coverage of the delivery goal. When adopting an authoritative PRD or prototype, it preserves the originals and records the adopted scope, gaps and decisions in `scope.md`; scattered references instead inform authored requirements. Covered interactions are reused, with uncovered changes developed as needed. Follow the requirements document and its source links to see what was adopted and which decisions remain.
|
|
34
44
|
|
|
35
|
-
|
|
45
|
+
### Changing a feature, fixing a defect or refactoring
|
|
36
46
|
|
|
37
|
-
|
|
47
|
+
Provide the relevant repository and feature location, expected behavior, current problems and behavior that must be preserved. For a defect, include available reproduction steps, errors or logs; for refactoring, explain the technical goal and external behavior that must remain unchanged.
|
|
38
48
|
|
|
39
|
-
|
|
49
|
+
The agent examines the implementation, confirms requirements and technical constraints, and arranges design, implementation, review and verification. Ordinary debugging stays within the current work; a significant unknown requiring independent investigation leads to an arrangement change. `plan.md` tracks implementation, while `review.md` and `testing.md` record review and actual verification results.
|
|
40
50
|
|
|
41
|
-
|
|
51
|
+
In all these situations, the agent preserves the original request and maintains delivery records. Important business, scope, compatibility, cost or data decisions remain yours; routine technical decisions stay within your authorization. An unanswered decision is not treated as approval, and dependent work waits for resolution.
|
|
42
52
|
|
|
43
|
-
|
|
53
|
+
<a id="review"></a>
|
|
54
|
+
<a id="review-documents-and-continue"></a>
|
|
55
|
+
## 3. Proceed and review
|
|
44
56
|
|
|
45
|
-
|
|
57
|
+
The usual development order is PRD/Scope → technical design → interfaces and independent SQL when applicable → test cases → implementation plan → implementation/review/verification → handoff and acceptance. Prototype, investigation and design-only work keep their agreed endpoint; review-only and verify-only reuse their existing basis.
|
|
46
58
|
|
|
47
|
-
|
|
59
|
+
For each document requiring your review, the agent generates and self-checks it, provides a link, a short summary and the next stage, then waits for your review. Read the document and either request changes or explicitly approve it. Requested edits are revised, self-checked and presented again. Questions, silence and asking to see results do not count as approval.
|
|
48
60
|
|
|
49
|
-
|
|
61
|
+
Your explicit approval is recorded against that document version and automatically starts the next authorized stage; no second start confirmation is needed. If you have explicitly arranged to continue in a new session, the agent saves a handoff first; see [session arrangements](#continue). The chat shows the current stage, pending document, review status and next stage. Document approval is separate from final delivery acceptance.
|
|
50
62
|
|
|
51
|
-
|
|
63
|
+
Authorized implementation, agent reviews, defect repairs and retests can proceed continuously. Each implementation batch is reviewed, followed by overall review and independent verification. New material decisions and production actions still need authorization.
|
|
52
64
|
|
|
53
|
-
|
|
65
|
+
<a id="results"></a>
|
|
66
|
+
<a id="3-inspect-progress-and-results"></a>
|
|
67
|
+
## 4. Inspect progress and results
|
|
54
68
|
|
|
55
|
-
|
|
69
|
+
Start with the delivery's **`status.md`** for the current stage, pending documents, review status, blockers, next stage and artifact links. Read verification conclusions alongside the tested version, environment and evidence. Checks lacking accounts, tools or environments remain blocked or unexecuted rather than passing.
|
|
56
70
|
|
|
57
|
-
|
|
71
|
+
<a id="delivery-structure"></a>
|
|
72
|
+
### Delivery structure and documents
|
|
58
73
|
|
|
59
|
-
|
|
74
|
+
By default, each request has its own delivery directory under `~/Aimship/`, while code stays in its existing repositories.
|
|
75
|
+
|
|
76
|
+
The tree below lists delivery artifacts and their purposes. Files are generated according to the selected stages and input conditions; unselected stages produce no empty documents. `prd.md` and `scope.md` are alternative requirement entries, not two files required for every delivery.
|
|
77
|
+
|
|
78
|
+
```text
|
|
79
|
+
~/Aimship/
|
|
80
|
+
├── 20261023-order-export/ # One request, one delivery folder
|
|
81
|
+
│ ├── status.md # Generated overview and reading entry
|
|
82
|
+
│ ├── prd.md # Authored requirements, scope and acceptance
|
|
83
|
+
│ ├── scope.md # Used instead of PRD when adopting authoritative inputs
|
|
84
|
+
│ ├── tech-design.md # Architecture, changes, data, risks and requirement coverage
|
|
85
|
+
│ ├── plan.md # Implementation batches, tasks and actual execution
|
|
86
|
+
│ ├── testing.md # Test cases, coverage, runs and retest results
|
|
87
|
+
│ ├── review.md # Batch/overall reviews, findings and follow-up
|
|
88
|
+
│ ├── handoff.md # Delivered result, usage, validation and remaining work
|
|
89
|
+
│ ├── diagnosis.md # Only for an independent investigation
|
|
90
|
+
│ ├── change-log.md # Meaningful changes, decisions and affected work
|
|
91
|
+
│ ├── openapi.yaml # New HTTP contract; reuse an existing authority when available
|
|
92
|
+
│ ├── database.sql # SQL for one database; multiple targets use database-<id>.sql
|
|
93
|
+
│ ├── prototype/ # Newly authored prototypes when required
|
|
94
|
+
│ │ └── index.html # Entry for an HTML prototype; its assets stay here
|
|
95
|
+
│ ├── source/ # Preserved original request and adopted input versions
|
|
96
|
+
│ │ ├── request.md # Original commission or source entry
|
|
97
|
+
│ │ └── … # External PRD, prototype, screenshots and other inputs
|
|
98
|
+
│ └── .aimship/ # Managed state and supporting evidence
|
|
99
|
+
│ ├── state.json # Stages, references, versions and repository/worktree links
|
|
100
|
+
│ ├── state.previous.json # Previous state for recovery after writes
|
|
101
|
+
│ ├── view.json # Metadata for the generated status view
|
|
102
|
+
│ └── evidence/ # Evidence retained when needed
|
|
103
|
+
└── 20261024-another-request/ # Independent request and progress
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Formal documents are directly in the request folder. `source/` preserves adopted originals; `.aimship/` holds internal records. The software itself is installed separately in `~/.aimship/`.
|
|
107
|
+
|
|
108
|
+
Filenames, outlines and identifier rules come from shared templates. Requirements and acceptance criteria link to implementation tasks, reviews and versioned test cases/results. The [document reference](reference.md) explains exactly when each artifact is produced and what it contains.
|
|
109
|
+
|
|
110
|
+
<a id="changes"></a>
|
|
111
|
+
<a id="review-verify-and-change"></a>
|
|
112
|
+
<a id="4-requirements-change-during-delivery"></a>
|
|
113
|
+
## 5. Requirements change during delivery
|
|
114
|
+
|
|
115
|
+
Explain what changed, why, and what should remain. If you edited a formal document, identify the location so the agent can reconcile its meaning.
|
|
116
|
+
|
|
117
|
+
The agent assesses the impact on scope, design, implementation and verification, records decisions, and updates affected documents and work arrangements. It brings necessary tradeoffs to you while other authorized work continues. Adopted originals are preserved.
|
|
118
|
+
|
|
119
|
+
A material change to an approved document returns it to review and holds dependent work until the review is resolved. Earlier approvals and results remain as history; an old approval cannot authorize the revised content. Work resumes in dependency order after re-review. Unaffected work is retained, and formatting or typo fixes do not require full re-review.
|
|
120
|
+
|
|
121
|
+
Meaningful changes and their impact are recorded in `change-log.md`; see `status.md` for next steps. Do not edit `status.md` to change requirements or record acceptance: it is a generated view. Any manual edits need preserving before the agent reconciles and regenerates it.
|
|
122
|
+
|
|
123
|
+
<a id="continue"></a>
|
|
124
|
+
<a id="continue-in-another-conversation"></a>
|
|
125
|
+
<a id="5-resume-after-a-pause-or-in-another-session"></a>
|
|
126
|
+
<a id="6-resume-after-a-pause-or-in-another-session"></a>
|
|
127
|
+
## 6. Session arrangements and continuing work
|
|
128
|
+
|
|
129
|
+
### The maintainer's session practice
|
|
130
|
+
|
|
131
|
+
To manage growing context, the maintainer has used the following arrangement of separate sessions (windows):
|
|
132
|
+
|
|
133
|
+
| Work | Session arrangement |
|
|
134
|
+
| --- | --- |
|
|
135
|
+
| Requirements / Scope | One session |
|
|
136
|
+
| Technical design, SQL and interface documents | One shared session |
|
|
137
|
+
| Test-case design | One session |
|
|
138
|
+
| Implementation plan | One session |
|
|
139
|
+
| Implementation | One session per implementation batch, including that batch's agent review |
|
|
140
|
+
| Overall review | One session |
|
|
141
|
+
| Test execution | One session per test batch |
|
|
142
|
+
|
|
143
|
+
This is practical experience, not a required split or a stage completion condition. Adjust it to the task's size, volume of materials and accumulated context. Assess any combined arrangement in actual use. Sharing a session for technical design, SQL and interfaces still requires the agreed document order: review technical design first, then each applicable interface/SQL document individually. A shared window does not bypass approval.
|
|
144
|
+
|
|
145
|
+
Implementation batches and test batches serve different purposes. Test batches follow the verification arrangement and need not correspond one-to-one with implementation batches; this does not require testing after every implementation batch. A new window alone does not guarantee independent judgment or quality. Each new session still needs the relevant complete formal documents, saved state and actual artifacts, not just a brief chat summary.
|
|
146
|
+
|
|
147
|
+
### Arrange the next session and hand off
|
|
148
|
+
|
|
149
|
+
Aimship defines stages, artifacts, reviews and handoffs; it does not create new sessions. When changing windows, open a new session in your AI tool and provide the same delivery directory and handoff information.
|
|
150
|
+
|
|
151
|
+
If you want to change sessions after approving a document, say so with the approval, for example: “This document is approved. Save the handoff first; I will continue in a new window.” The agent records approval and your continuation arrangement without starting the next stage in the current session. For implementation or test batches, you can instead say: “Finish this batch, save the results and handoff, and leave the next batch for a new session.” This does not add human approval requirements to execution records.
|
|
152
|
+
|
|
153
|
+
Before ending the current session, have the agent save progress, review status, unresolved issues and the next step, and provide the full delivery directory path and relevant code locations. In the new session, select Aimship and provide the same delivery directory. The agent reads the relevant complete formal documents and state, checks actual artifacts and continues according to the saved arrangement. Ensure that a different tool can access the same materials and code.
|
|
154
|
+
|
|
155
|
+
Keep only one writing session per delivery; the old session must stop writing before the new one takes over. Pending documents still require your explicit approval, and changing windows cannot bypass review. Progress and next steps remain in the same `status.md`; you do not need to copy the entire chat.
|
|
156
|
+
|
|
157
|
+
### Handle interruptions and version changes
|
|
158
|
+
|
|
159
|
+
After an unexpected interruption, have the agent check completed operations before repeating writes or other actions with side effects. If a repository moved, provide its new location so the agent can verify its identity and update the association. State conflicts or progress-view problems need reconciliation or repair, not forced overwrites.
|
|
160
|
+
|
|
161
|
+
After a software upgrade, an old session may retain old rules. Save work, then have the agent reconcile the current version and delivery records at a stable boundary; start a new session if context cannot refresh reliably. Older delivery formats require explicit migration, rule adoption and document reconciliation before work continues; unknown formats remain read-only. Originals and historical results are preserved without inventing work that was never performed or treating old completion records as approval. The [CLI protocol](cli.md) provides recovery details for the agent.
|
|
162
|
+
|
|
163
|
+
<a id="parallel"></a>
|
|
164
|
+
<a id="work-on-two-requests-at-once"></a>
|
|
165
|
+
<a id="6-progress-several-deliveries-at-once"></a>
|
|
166
|
+
## 7. Progress several deliveries at once
|
|
167
|
+
|
|
168
|
+
Use a separate delivery directory for each request, with one writing session per delivery. Tell the agent about known shared code, interfaces, databases or test environments.
|
|
169
|
+
|
|
170
|
+
While one delivery changes code, another can perform read-only analysis. Before both change the same code, arrange sequential implementation or separate checkouts/worktrees, reusing existing isolation when available. The agent checks overlap against accessible known delivery records and documents coordination in the plan. Unknown or stale records and work outside Aimship limit this check.
|
|
171
|
+
|
|
172
|
+
Read each delivery's own progress and results. Completing a branch does not complete integration; Aimship provides no global lock, automatic agent scheduling, automatic worktree creation or automatic merge.
|
|
173
|
+
|
|
174
|
+
<a id="completion"></a>
|
|
175
|
+
<a id="decide-when-work-is-done"></a>
|
|
176
|
+
<a id="7-complete-a-delivery"></a>
|
|
177
|
+
## 8. Complete a delivery
|
|
178
|
+
|
|
179
|
+
Review artifact locations, usage instructions, review and verification conclusions, remaining issues and next steps in the handoff. Compare them with the original goal when deciding whether to accept the result.
|
|
180
|
+
|
|
181
|
+
The agent records goal completion, user acceptance, merge and deployment separately. Asking for a preview does not shorten the goal; if you explicitly end early, the handoff preserves the original goal and unfinished work.
|
|
182
|
+
|
|
183
|
+
Small later corrections can continue the same delivery while preserving its earlier completion record. A new goal or substantial redesign starts a related delivery.
|
|
184
|
+
|
|
185
|
+
<a id="troubleshoot"></a>
|
|
186
|
+
<a id="8-problems-during-use"></a>
|
|
187
|
+
## 9. Problems during use
|
|
188
|
+
|
|
189
|
+
| Situation | What to do |
|
|
190
|
+
| --- | --- |
|
|
191
|
+
| Materials or code cannot be accessed | Grant the required directory access in the current tool and identify the failed operation; do not move materials to bypass restrictions |
|
|
192
|
+
| The progress page differs from actual results | Have the agent inspect current records and files, preserve manual edits and regenerate the progress page |
|
|
193
|
+
| A formal document changed outside the session | Identify the changes and have the agent assess their meaning and effect on subsequent work |
|
|
194
|
+
| An old delivery cannot continue | Have the agent check format migration, rule adoption and document reconciliation, preserving historical results and explaining blockers |
|
|
195
|
+
| Aimship is missing, or installation/version problems occur | See [installation and upgrade problems](../README.md#installation-troubleshooting) in the README |
|
|
196
|
+
|
|
197
|
+
For a bug report, include the tool and Aimship versions, the operation, expected and actual results, and minimal reproducible materials. Redact credentials, personal paths and business data before submitting to [GitHub Issues](https://github.com/clsx/aimship/issues).
|
|
198
|
+
|
|
199
|
+
## Related references
|
|
200
|
+
|
|
201
|
+
<a id="artifacts"></a>
|
|
202
|
+
<a id="keep-only-useful-artifacts"></a>
|
|
203
|
+
See the [delivery document reference](reference.md) for generation conditions, stage outputs, outlines and identifier rules. The agent maintains these as work progresses; you do not need to learn them all before starting.
|
|
204
|
+
|
|
205
|
+
<a id="update"></a>
|
|
206
|
+
<a id="update-or-stop-using-aimship"></a>
|
|
207
|
+
For software upgrades, adding tools, version queries and installation health checks, see the [README](../README.md#update).
|
|
208
|
+
|
|
209
|
+
<a id="uninstall"></a>
|
|
210
|
+
For tool disconnection or full uninstallation, see the [README](../README.md#uninstall). Source development and isolated validation belong in [Contributing](../CONTRIBUTING.md).
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
# Aimship 使用指南
|
|
2
|
+
|
|
3
|
+
[English](guide.md) · [README](../README.zh-CN.md)
|
|
4
|
+
|
|
5
|
+
本指南按实际使用场景说明:需要提供什么,Agent 如何推进,以及在哪里查看成果。你不需要记住阶段名称或固定提示词。
|
|
6
|
+
|
|
7
|
+
<a id="install"></a>
|
|
8
|
+
尚未安装时,先阅读 README 的[安装说明](../README.zh-CN.md#install)。
|
|
9
|
+
|
|
10
|
+
[选择 Aimship](#hosts) · [按当前情况开始](#start) · [推进与审核](#review) · [查看进度与成果](#results) · [需求变化](#changes) · [会话与续接](#continue) · [并行需求](#parallel) · [完成交付](#completion) · [使用问题](#troubleshoot)
|
|
11
|
+
|
|
12
|
+
<a id="hosts"></a>
|
|
13
|
+
<a id="1-在宿主中选择-aimship"></a>
|
|
14
|
+
<a id="1-在-ai-开发工具中选择-aimship"></a>
|
|
15
|
+
## 1. 在 AI 工具中选择 Aimship
|
|
16
|
+
|
|
17
|
+
安装后开启新的 AI 工具会话,选择 Aimship:
|
|
18
|
+
|
|
19
|
+
| AI 工具 | 如何选择 | 未显示时 |
|
|
20
|
+
| --- | --- | --- |
|
|
21
|
+
| Codex | 在 Skill 选择器中选择 Aimship;CLI 中使用 `$aimship` | 新建会话或重启 CLI,列表未刷新时重启应用 |
|
|
22
|
+
| Cursor | 使用 `/aimship` | 新建 Agent 会话,检查 Customize → Skills;列表未刷新时重启 Cursor |
|
|
23
|
+
| Claude Code | 使用 `/aimship` | 新建会话并检查斜杠命令列表;列表未刷新时重启 Claude Code |
|
|
24
|
+
|
|
25
|
+
每个 AI 工具分别需要登录、可用模型以及交付资料和相关代码仓库的访问权限,在实际操作需要时授权。交付资料单独保存,代码仍在原仓库中。
|
|
26
|
+
|
|
27
|
+
AI 工具集成仍处于实验阶段,真实 Skill 发现、目录访问和跨工具接续仍待验证。安装文件健康不等于 AI 工具已加载 Skill。Codex 和 Cursor 共用入口,兼容 AI 工具也可能发现其他位置的入口;出现重复项时检查路径和版本,保留无关或定制内容。AI 工具行为可参考官方 [Cursor 文档](https://cursor.com/docs/skills)和 [Codex Skill 位置说明](https://learn.chatgpt.com/docs/build-skills)。
|
|
28
|
+
|
|
29
|
+
<a id="start"></a>
|
|
30
|
+
<a id="describe-the-work-and-its-endpoint"></a>
|
|
31
|
+
## 2. 按当前情况开始
|
|
32
|
+
|
|
33
|
+
### 从一个想法开始
|
|
34
|
+
|
|
35
|
+
说明想解决的问题、使用者、期望变化和已知限制。有截图、讨论记录或参考资料时一起提供,无需先准备完整 PRD。
|
|
36
|
+
|
|
37
|
+
Agent 会澄清影响范围和验收判断的缺口,整理需求,提出所需阶段及执行顺序。你确认目标和重要取舍后,Agent 继续推进。需求与验收标准通常记录在 `prd.md`,当前进度从 `status.md` 查看。
|
|
38
|
+
|
|
39
|
+
### 已有 PRD、原型或其他资料
|
|
40
|
+
|
|
41
|
+
提供资料位置、准备采用的版本,以及相关代码位置;如果只采用部分内容,说明本次范围。已有资料不完整时,可以直接说明已知缺口。
|
|
42
|
+
|
|
43
|
+
Agent 会核对资料是否可访问、是否覆盖本次目标。采用权威 PRD/原型时,保留原件,通过 `scope.md` 记录采用范围、缺口和决定;零散参考则用于编写需求。已有交互被充分覆盖时复用,未覆盖的变化再补充。你可从需求文档和关联资料中查看采用了哪些内容、还需决定什么。
|
|
44
|
+
|
|
45
|
+
### 修改现有功能、修复缺陷或重构
|
|
46
|
+
|
|
47
|
+
提供相关仓库和功能位置,说明期望行为、当前问题及必须保留的行为。修复缺陷时附上可用的复现条件、错误信息或日志;重构时说明技术目标和不能改变的外部行为。
|
|
48
|
+
|
|
49
|
+
Agent 会检查相关实现,确认需求与技术约束,安排设计、实施、审核和验证。普通调试随当前工作处理;重大未知问题需要独立调查时,再调整安排。`plan.md` 记录实施进度,`review.md` 和 `testing.md` 分别记录审核与实际验证结果。
|
|
50
|
+
|
|
51
|
+
以上场景都由 Agent 保留原始委托并维护交付记录。重要的业务、范围、兼容性、成本或数据决策由你决定;授权内的日常技术取舍由 Agent 处理。待决问题没有回应时不会被视为批准,相关依赖工作等待解决。
|
|
52
|
+
|
|
53
|
+
<a id="review"></a>
|
|
54
|
+
<a id="逐份审核与自动衔接"></a>
|
|
55
|
+
## 3. 推进与审核
|
|
56
|
+
|
|
57
|
+
通常的开发顺序是 PRD/Scope → 技术方案 → 接口和独立 SQL(适用时)→ 测试用例 → 实施计划 → 实施/评审/验证 → 交付验收。原型、调查和仅设计委托保留约定终点;仅 review、仅 verify 使用已有依据。
|
|
58
|
+
|
|
59
|
+
每份需人审文档生成、自检后,Agent 给出文档入口、短摘要和下一阶段,等待你审核。你阅读文档后提出修改意见,或明确表示通过。有修改意见时,Agent 修改、自检后再次送审。提问、沉默和要求看结果都不算批准。
|
|
60
|
+
|
|
61
|
+
你明确通过后,批准会关联该文档版本,Agent 自动开始下一授权阶段,不再询问是否开始。如果你已明确安排换会话继续,Agent 会先保存交接信息,具体见[会话安排](#continue)。聊天中会显示当前阶段、待审文档、审核状态和下一阶段。文档批准与最终交付验收分开。
|
|
62
|
+
|
|
63
|
+
授权内的实施、Agent 评审、缺陷修复和复测可连续推进。实施按批次审核,全部完成后整体审核,再独立验证。新增实质决定和生产动作仍需对应授权。
|
|
64
|
+
|
|
65
|
+
<a id="results"></a>
|
|
66
|
+
<a id="3-查看进度与成果"></a>
|
|
67
|
+
## 4. 查看进度与成果
|
|
68
|
+
|
|
69
|
+
从交付目录的 **`status.md`** 查看当前阶段、待审文档、审核状态、阻塞事项、下一阶段和成果入口。查看验证结论时,同时关注对应版本、环境和证据。缺少账号、工具或环境的检查会标为阻塞或未执行,不能计为通过。
|
|
70
|
+
|
|
71
|
+
<a id="delivery-structure"></a>
|
|
72
|
+
### 交付目录与文档
|
|
73
|
+
|
|
74
|
+
默认每个需求在 `~/Aimship/` 下使用独立交付目录,代码保留在原仓库。
|
|
75
|
+
|
|
76
|
+
下方列出交付产物及其用途;实际生成范围由所选阶段和输入条件确定,未选阶段不生成空文档。`prd.md` 与 `scope.md` 是需求入口的两种选择,并非每个需求都要同时生成。
|
|
77
|
+
|
|
78
|
+
```text
|
|
79
|
+
~/Aimship/
|
|
80
|
+
├── 20261023-订单导出/ # 每个需求一个独立交付目录
|
|
81
|
+
│ ├── status.md # 自动生成的进度总览和阅读入口
|
|
82
|
+
│ ├── prd.md # 自编需求:目标、范围、需求和验收标准
|
|
83
|
+
│ ├── scope.md # 采用权威外部资料时使用,替代自编 PRD
|
|
84
|
+
│ ├── tech-design.md # 技术方案:架构、改动、数据、风险和需求覆盖
|
|
85
|
+
│ ├── plan.md # 实施计划:批次、任务及实际执行记录
|
|
86
|
+
│ ├── testing.md # 测试用例、覆盖关系、执行与重测结果
|
|
87
|
+
│ ├── review.md # 各批及整体审核、发现的问题和处理结论
|
|
88
|
+
│ ├── handoff.md # 交付结果、使用方式、验证结论和遗留事项
|
|
89
|
+
│ ├── diagnosis.md # 仅独立调查时生成的定位与证据记录
|
|
90
|
+
│ ├── change-log.md # 重要变更、决定及受影响的工作
|
|
91
|
+
│ ├── openapi.yaml # 新建 HTTP 契约;已有权威契约优先复用
|
|
92
|
+
│ ├── database.sql # 单数据库 SQL;多目标为 database-<id>.sql
|
|
93
|
+
│ ├── prototype/ # 符合生成条件时新建的原型
|
|
94
|
+
│ │ └── index.html # HTML 原型入口,相关资源也放在此目录
|
|
95
|
+
│ ├── source/ # 保留原始需求和采用的外部资料版本
|
|
96
|
+
│ │ ├── request.md # 原始委托或来源入口
|
|
97
|
+
│ │ └── … # 外部 PRD、原型、截图及其他输入
|
|
98
|
+
│ └── .aimship/ # 工具维护的内部状态与辅助证据
|
|
99
|
+
│ ├── state.json # 阶段、引用、版本及仓库/worktree 关联
|
|
100
|
+
│ ├── state.previous.json # 写入后用于恢复的上一版状态
|
|
101
|
+
│ ├── view.json # 进度视图的生成元信息
|
|
102
|
+
│ └── evidence/ # 按需保留的验证等证据
|
|
103
|
+
└── 20261024-另一个需求/ # 独立的资料与进度
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
正式文档直接放在需求目录下;`source/` 保留采用的原件,`.aimship/` 保存内部记录。软件安装目录为 `~/.aimship/`,与各需求目录内的 `.aimship/` 分别管理。
|
|
107
|
+
|
|
108
|
+
文档名称、大纲和编号遵循统一模板。需求与验收标准关联到实施任务、审核、带版本的测试用例及执行结果。[交付文档参考](reference.zh-CN.md)进一步说明每种文档的生成条件和具体内容。
|
|
109
|
+
|
|
110
|
+
<a id="changes"></a>
|
|
111
|
+
<a id="review-verify-and-change"></a>
|
|
112
|
+
<a id="4-推进中需求发生变化"></a>
|
|
113
|
+
## 5. 推进中需求发生变化
|
|
114
|
+
|
|
115
|
+
说明发生了什么变化、原因以及希望保留的内容。如果已修改正式文档,指出位置,让 Agent 核对修改的含义。
|
|
116
|
+
|
|
117
|
+
Agent 会分析对范围、设计、实现和验证的影响,记录决定,更新受影响的工作安排和文档。需要你判断的取舍会提出,其他授权内工作继续,原始采用资料继续保留。
|
|
118
|
+
|
|
119
|
+
已批准文档发生实质变更时,回到对应阶段重审,依赖它的工作等待审核解决后再继续;旧批准和结果保留为历史,不能用旧批准放行新版。重审通过后,按依赖顺序恢复。无关工作不重置,排版和错字修正不需全量重审。
|
|
120
|
+
|
|
121
|
+
重要变化及影响记录在 `change-log.md`,后续安排从 `status.md` 查看。不要通过修改 `status.md` 来改变需求或表示验收;它是生成视图,已有手改内容需先保留,再由 Agent 核对和重建。
|
|
122
|
+
|
|
123
|
+
<a id="continue"></a>
|
|
124
|
+
<a id="continue-in-another-conversation"></a>
|
|
125
|
+
<a id="5-暂停后或换会话继续"></a>
|
|
126
|
+
<a id="6-暂停后或换会话继续"></a>
|
|
127
|
+
## 6. 会话安排与继续工作
|
|
128
|
+
|
|
129
|
+
### 维护者的分窗口实践
|
|
130
|
+
|
|
131
|
+
为了控制上下文不断累积带来的负担,维护者实际使用过以下会话(窗口)安排:
|
|
132
|
+
|
|
133
|
+
| 工作内容 | 窗口安排 |
|
|
134
|
+
| --- | --- |
|
|
135
|
+
| 需求/Scope | 一个窗口 |
|
|
136
|
+
| 技术文档、SQL、接口文档 | 共用一个窗口 |
|
|
137
|
+
| 测试用例设计 | 一个窗口 |
|
|
138
|
+
| 实施计划 | 一个窗口 |
|
|
139
|
+
| 实施 | 每个实施批次一个窗口,包含该批 Agent 评审 |
|
|
140
|
+
| 整体 review | 一个窗口 |
|
|
141
|
+
| 测试执行 | 每个测试批次一个窗口 |
|
|
142
|
+
|
|
143
|
+
这是使用经验,不是强制分窗规则或阶段完成条件。可按任务规模、资料量和上下文累积情况调整;合并后的效果需在实际工作中核对。技术文档、SQL 和接口共用窗口时,仍按既定顺序先审技术文档,再逐份审核适用的接口/SQL 文档,不能因为共用窗口而跳过审核。
|
|
144
|
+
|
|
145
|
+
实施批次与测试批次承担不同工作。测试批次按验证安排划分,不要求与实施批次一一对应,也不要求每个实施批次结束后立即测试。新窗口本身不保证判断独立或质量;每个新会话仍需读取相关的完整正式文档、已保存状态和实际成果,不能只靠简短聊天摘要接手。
|
|
146
|
+
|
|
147
|
+
### 安排新会话与交接
|
|
148
|
+
|
|
149
|
+
Aimship 负责阶段、产物、审核与交接规范,本身不创建新会话。需要换窗口时,由你在所用的 AI 工具中开启新会话,再提供同一交付目录和交接信息。
|
|
150
|
+
|
|
151
|
+
如果希望文档通过后换窗口,在批准时一并说明,例如:“这份文档通过。先保存交接信息,我会在新窗口继续。”Agent 会记录批准和你的续接安排,不在当前会话直接开始下一阶段。实施或测试批次则可以说:“完成本批,保存结果和交接信息,下一批在新会话继续。”这不增加对执行记录的人工审批要求。
|
|
152
|
+
|
|
153
|
+
结束当前会话前,请 Agent 保存进度、审核状态、未解决问题和下一步,并给出交付目录的完整路径及相关代码位置。新会话中选择 Aimship,提供同一个交付目录;Agent 读取相关的完整正式文档和状态、核对实际成果后,按已保存的安排继续。更换 AI 工具时也要确保能访问同一份资料和代码。
|
|
154
|
+
|
|
155
|
+
同一交付只保留一个写入会话,旧会话停止写入后再由新会话接手。待审文档仍需你明确通过,换窗口不能跳过审核。进度和下一步仍从同一份 `status.md` 查看,无需复制完整聊天。
|
|
156
|
+
|
|
157
|
+
### 处理中断与版本变化
|
|
158
|
+
|
|
159
|
+
意外中断时,让 Agent 先核对已经完成的操作,避免重复写入或重跑有副作用的动作。代码仓库搬迁后提供新位置,由 Agent 核对身份后更新关联。状态冲突或进度视图异常需要先协调或修复,不能强行覆盖。
|
|
160
|
+
|
|
161
|
+
软件升级后,旧会话可能保留旧规则。先保存工作,再让 Agent 在稳定边界核对当前版本与交付记录;无法可靠刷新时开启新会话。旧格式交付需要明确迁移、采用规则并整理相关文档后继续,未知格式保持只读。已有原件和历史结果保留,不补造过去未执行的工作,也不将旧完成记录当作批准;恢复协议供 Agent 查阅 [CLI 文档](cli.md)。
|
|
162
|
+
|
|
163
|
+
<a id="parallel"></a>
|
|
164
|
+
<a id="work-on-two-requests-at-once"></a>
|
|
165
|
+
<a id="6-同时推进多个需求"></a>
|
|
166
|
+
## 7. 同时推进多个需求
|
|
167
|
+
|
|
168
|
+
不同需求使用独立交付目录,每个交付只保留一个写入会话。向 Agent 说明已知的共享代码、接口、数据库或测试环境。
|
|
169
|
+
|
|
170
|
+
一个需求正在修改代码时,另一个可以先做只读分析。两个需求都要修改同一份代码之前,安排串行实施或独立 checkout/worktree,并优先复用已有隔离。Agent 会根据可访问的已知交付记录核对重叠范围,在计划中记录协调方式;未知或过期记录、Aimship 外的工作不在完整掌握范围内。
|
|
171
|
+
|
|
172
|
+
各需求分别查看自己的进度和结果。分支完成不代表集成完成;Aimship 不提供全局锁、自动 Agent 调度、自动创建 worktree 或自动合并。
|
|
173
|
+
|
|
174
|
+
<a id="completion"></a>
|
|
175
|
+
<a id="decide-when-work-is-done"></a>
|
|
176
|
+
<a id="7-完成交付"></a>
|
|
177
|
+
## 8. 完成交付
|
|
178
|
+
|
|
179
|
+
查看交接记录中的成果位置、使用方式、审核和验证结论、遗留问题与后续事项,并对照原目标判断是否接受。
|
|
180
|
+
|
|
181
|
+
Agent 会分别记录目标完成、用户验收、合并和部署的实际情况。要求预览不代表缩短目标;明确提前结束时,交接中保留原目标和未完成工作。
|
|
182
|
+
|
|
183
|
+
后续小修正可以继续原交付,并保留此前完成记录;新目标或大幅重新设计则建立关联的新交付。
|
|
184
|
+
|
|
185
|
+
<a id="troubleshoot"></a>
|
|
186
|
+
<a id="8-使用中遇到问题"></a>
|
|
187
|
+
## 9. 使用中遇到问题
|
|
188
|
+
|
|
189
|
+
| 情况 | 如何处理 |
|
|
190
|
+
| --- | --- |
|
|
191
|
+
| 无法访问资料或代码 | 在当前 AI 工具授权需要的目录,说明失败的具体操作,不通过搬动资料绕过权限限制 |
|
|
192
|
+
| 进度页与实际成果不一致 | 请 Agent 核对当前记录和实际文件,保留手改内容后重建进度页 |
|
|
193
|
+
| 正式文档在会话外被修改 | 指出修改位置,请 Agent 核对含义及对后续工作的影响 |
|
|
194
|
+
| 旧交付无法继续 | 请 Agent 检查格式迁移、规则采用和文档整理,保留历史结果并说明阻塞原因 |
|
|
195
|
+
| 找不到 Aimship、安装或版本异常 | 查看 README 的[安装与升级问题](../README.zh-CN.md#installation-troubleshooting) |
|
|
196
|
+
|
|
197
|
+
反馈问题时提供 AI 工具和 Aimship 版本、具体操作、预期与实际结果,以及可复现的最小资料;隐去凭据、个人路径和业务数据,通过 [GitHub Issues](https://github.com/clsx/aimship/issues)提交。
|
|
198
|
+
|
|
199
|
+
## 相关参考
|
|
200
|
+
|
|
201
|
+
<a id="artifacts"></a>
|
|
202
|
+
<a id="keep-only-useful-artifacts"></a>
|
|
203
|
+
文档生成条件、阶段产物、大纲与编号规则见[交付文档参考](reference.zh-CN.md)。这些规则由 Agent 随工作维护,无需在开始前逐项掌握。
|
|
204
|
+
|
|
205
|
+
<a id="update"></a>
|
|
206
|
+
<a id="update-or-stop-using-aimship"></a>
|
|
207
|
+
软件升级、添加 AI 工具和版本/安装状态查询见 [README](../README.zh-CN.md#update)。
|
|
208
|
+
|
|
209
|
+
<a id="uninstall"></a>
|
|
210
|
+
断开 AI 工具或完整卸载见 [README](../README.zh-CN.md#uninstall)。源码开发与隔离验证见[贡献指南](../CONTRIBUTING.md)。
|