/tstack:migrate-engineering-docsfrom tstack
Move a project's engineering documents from older layouts into engineering/ (specifications, architecture, decision records, tickets filed by state, the handoff file), and bring AGENTS.md, CLAUDE.md and the project memory to the current rules. This skill MUST be used when the user asks to migrate, tidy or convert old engineering documents, before an engineering document is created or updated in a project that still has delivery-plan.md, delivery-status.md, ENG.md, DESIGN-REVIEW.md, docs/tickets/ or tickets with a status field, and when CLAUDE.md holds more than its pointer, AGENTS.md holds introductions, or the memory holds lessons that hold on any machine. It MUST show what would change and get the user's decision first, and MUST NOT delete a document before its content is carried over and the user agrees. It MUST NOT move documentation written for the project's users. Triggers on: 遷移工程文件、整理舊文件、搬舊文件、整理 AGENTS.md、精簡 AGENTS.md、記憶升級、migrate docs、migrate engineering docs
Ships in tstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Engineering documents live under engineering/, as the core's Engineering Documents sets. This skill brings a project that was set up earlier to that layout. The script moves files; this skill carries over the content that no longer has a document of its own, with the user's agreement at each point where something would be lost. It also brings the project's AGENTS.md, CLAUDE.md and memory to the rules that now govern them.
Run it on request, and when another skill finds an older layout before writing an engineering document.
| Older location | Now |
|---|---|
ENG.md | engineering/architecture.md |
docs/tickets/, docs/dev/tickets/ | engineering/tickets/, filed into doing/ and done/ by each ticket's old status field |
docs/dev/specs/ | engineering/specs/ |
HANDOFF.md at the root | engineering/handoff.md, keeping only unfinished work that has no ticket |
delivery-plan.md, delivery-status.md | No status file. Its decisions become decision records, its blockers and handoff notes go on their tickets |
DESIGN-REVIEW.md, docs/dev/ui-review.md | No review record. Open items become fix tickets, component copy and states go into the feature's specification |
docs/security-scan/report.md, docs/dev/security-scan.md | No kept report. Unfixed findings become fix tickets |
docs/software-engineering-guidelines/ | The notes of the ticket the work belongs to |
docs/plan-grilling/, docs/plans/ | plans/ at the project root, where the plan-grilling skill saves plans |
docs/design/ | design/ at the project root, where the design-studio skill keeps its working files |
A CLAUDE.md with instructions of its own | The AGENTS.md beside it; CLAUDE.md keeps the single line the core's Agent Context Files sets |
Introductions, structure overviews, installation and usage notes in an AGENTS.md | The README.md beside it |
| A project memory entry that holds on any machine | AGENTS.md or engineering/architecture.md, through project-memory's promotion rule; the entry is then marked promoted |
delivery-plan.md is the oldest name of the status record. A feature plan with that name is not moved.
The oldest versions of this workflow also left these, which the script reports and does not move, because people write files with the same names:
| File | When an earlier version of this workflow wrote it |
|---|---|
PLAN.md at the root | Carry the scope it still describes into a specification |
TODOS.md at the root | Turn each open item into a ticket, or into a Follow-ups entry in a project without tickets |
~/.mystack/projects/<project>/ in the user's home directory | Plans, design notes and checkpoints kept outside the repository. Carry over what the open work still needs |
In a project whose tickets are OpenSpec changes, the tickets stay under openspec/. Only the status record moves, and the order it set between changes is written into each change's proposal.md.
The script is scripts/migrate_layout.py; its --help lists every move and rule. Run it from the project root without --apply and read the whole report: what would move, what is blocked, which tickets it cannot file, which files it found and will not move, which directories under docs/ no move covers, and which CLAUDE.md and AGENTS.md files are not yet as the core sets. The sections it lists in AGENTS.md are candidates; read each one and decide whether it is a rule or an introduction.
Then read the project's memory through project-memory (load --json gives every entry that is not yet promoted) and sort each entry by its promotion rule: staying in the store, or going to a named file. Make the table of what goes where part of the report.
Work on a clean working tree, on a branch of its own. When the tree has uncommitted changes, ask the user how to proceed before going on.
Moving files changes the user's project, so the user decides. Look up an earlier decision first: a line in AGENTS.md that keeps or defers the old layout, or an older entry in project memory through project-memory under the preference key engineering-layout-migration (delivery-status-migration counts for the status record only), which counts and is promoted into that AGENTS.md line. When the user started this skill themselves, that is the decision to migrate, and only the choices below remain. A decision to keep or defer the layout concerns the engineering documents only; the questions about AGENTS.md sections and memory entries are still asked, and Step 5 still runs for what the user agrees to.
Show the report in the user's language, then ask together:
docs/ hold engineering documents, and where each goes under engineering/. Recommend engineering/specs for specifications, engineering/tickets for tickets, and a folder of the same name for anything else. Documentation written for the project's users stays in docs/.PLAN.md, TODOS.md and files in the home directory came from this workflow, when the report names them.AGENTS.md sections are introductions and go to README.md.When the user keeps or defers the old layout, write that as one line in AGENTS.md, with the condition for asking again, so that no agent on any machine starts the migration; the line is removed when the migration is done. While an answer is pending, and when the user keeps or defers the old layout, keep using the existing files and do not create engineering/ beside them.
--apply, passing each chosen directory as --move SOURCE=DESTINATION.**Blocked:** line it created.A project that keeps its specifications in a format of its own keeps that format after the move.
The script parks the documents that no longer exist as a kind under engineering/reports/legacy-* and lists them under "Carry over by hand". For each one, write its content where it now belongs, show the user what went where, and delete the parked file once they agree.
| File | Carry over |
|---|---|
engineering/architecture.md | Bring it to the form in Step 4 of eng-architect's Engineering workflow. Move the reasoning of each hard-to-reverse choice to a decision record, and the migration steps of one change to its ticket |
legacy-status.md, and engineering/handoff.md moved from the root | Write each decision that still holds as a decision record. Move each handoff note to the ## Notes of the ticket it concerns, each working rule to AGENTS.md, and each fact about a machine to project memory through project-memory. A note about unfinished work that no ticket covers stays in, or goes to, engineering/handoff.md. Check that every blocker named is on its ticket and that every ticket called done is in done/. For OpenSpec changes, write what each change waits for into its proposal.md |
legacy-ui-review.md | Write each open item as a fix ticket, and each component's copy and states into the Screens section of that feature's specification |
legacy-security-scan.md | Write each unfixed finding as a fix ticket. When the repository is public or its visibility is unknown, get the user's confirmation first |
Other files under engineering/reports/ | Move what is still needed into the notes of the ticket it belongs to |
| Index files moved with the tickets, such as a table of tickets or a generated list | Remove every column or field that repeats a ticket's state, or regenerate the file from the directories |
PLAN.md, TODOS.md, files in the home directory | Only when the user said they came from this workflow: carry over as the table in What older projects hold sets |
Ticket formats, the notes section and fix tickets are set out in eng-architect's Ticket breakdown guidelines and Ticket lifecycle.
AGENTS.md, CLAUDE.md and the memory to the current rulesThe user decided these moves in Step 2.
CLAUDE.md the report lists, apply the core's Agent Context Files: move its instructions into the AGENTS.md beside it, then leave the single line.README.md beside that AGENTS.md, under a heading that fits the README. Rules stay; a section that mixes both is split.promote.AGENTS.md first, and replace its required-artifacts entries with the current set from Step 5b of the engineering workflow.engineering/README.md as the core's Engineering Documents sets.CLAUDE.md to bring over; every AGENTS.md section it still lists is one the user kept as a rule.AGENTS.md line that kept or deferred the old layout, when there was one.Tell the user, in this order:
CLAUDE.md, AGENTS.md and README.md, and which memory entries were promoted into which filelegacy-* file remains, or each one that remains is named in the report with the reason.AGENTS.md and engineering/README.md describe the layout the project now has.CLAUDE.md is the single pointer line, and AGENTS.md holds only what the core's Agent Context Files allows.CLAUDE.md to bring over, and every AGENTS.md section it lists was decided by the user.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub timlai666/tstack --plugin tstack13 skills in this plugin
/acceptance-reviewCheck finished work against what was originally asked: every requirement is matched to a result that was actually exercised, and the original problem is shown to be solved. This skill MUST be used before reporting substantial work as done or handing it back, and when the user asks whether the result meets the request. Work this conversation produced MUST be checked by an independent reviewer who is not given the implementer's summary. It MUST NOT be used outside software engineering work, and MUST NOT replace diff-review, security-scan or test-and-fix. Triggers on: 驗收、有沒有做到、有沒有符合需求、有沒有解決問題、做完了嗎、acceptance review/agent-delegationRules and script for handing work to a subagent or another CLI (OpenCode, Antigravity, Copilot, Codex, Claude). This skill MUST be loaded before dispatching any subagent or CLI, even for a small task, and before changing an existing API's name, signature, usage or behavior. New delegation MUST go through scripts/dispatch.py and its task-local levels, and MUST NOT skip tools based on earlier turns. It MUST NOT be applied to work that is not software engineering. A main agent MUST NOT dispatch through its own CLI. A dispatched worker MUST NOT apply this skill or delegate further. Triggers on: subagent、派工、分工、antigravity、agy、opencode、copilot、codex、誰來寫、用哪個模型、介面變更Other plugins' skills for the same job