architect-system
npx skills add https://github.com/vxcozy/architect-system --skill architect-system
Agent 安装分布
Skill 文档
The Architect System
The Loop
âââââââââââââââââââââââââââââââââââââââââââââââ
â â
â¼ â
AUDIT âââ ARCHITECT âââ ANALYST âââ REFINERY âââ COMPOUNDER
â â â â â
â â â â â
â¼ â¼ â¼ â¼ â¼
audit- blueprints/ reviews/ refinery- compounder/
report.md {slug}.md {slug}.md log.md week-{date}.md
Each step reads from the previous step’s output and writes its own. The compounder’s “Feed to Audit” section closes the loop.
System Status
On every invocation, start by reading system/state.md:
Read: system/state.md
Report to the user:
SYSTEM STATUS
âââââââââââââ
Last Step: {step name or "none"}
Last Run: {date or "--"}
Status: {complete / in-progress / failed / initialized}
Loop Count: {N}
Active Task: {task name or "--"}
Next Step: {recommended next step}
Reason: {why this is the next step}
If system/state.md does not exist, this is a fresh system. Run initialization first.
Initialization
On first run (no system/state.md or state shows “initialized” with loop count 0):
-
Verify the directory structure exists:
system/ system/blueprints/ system/reviews/ system/compounder/ tasks/Create any missing directories.
-
Verify
system/state.md,tasks/todo.md, andtasks/lessons.mdexist. Create from templates if missing. -
Tell the user: “System initialized. Ready to begin. Starting with the audit.”
-
Proceed to invoke
/audit.
Execution Modes
Mode 1: Full Loop
Triggered by: “run the full loop”, “start the system”, “full cycle”
Run all 5 steps in sequence with an approval gate between each:
- Invoke
/auditâ Wait for completion. Present results. - Task Selection â Ask the user which task from the audit plan to work on first. Record the slug.
- Invoke
/architectâ Blueprint the selected task. Wait for completion. Present results. - Invoke
/analystâ Review the blueprint. Wait for completion. Present verdict. - Branch on verdict:
- APPROVE â Skip refinery, proceed to compounder
- REVISE â Invoke
/refinery. Wait for convergence. Then proceed to compounder. - REJECT â Inform user. Return to step 3 (re-architect).
- Invoke
/compounderâ Weekly review. Wait for completion. - Loop complete. Report: “Full loop complete. Loop count: {N}. Run again with /architect-system or start the next cycle with /audit.”
Between each step, ask: “Step {N} complete. Ready to proceed to {next step}? Or would you like to pause here?”
Mode 2: Single Step
Triggered by: “run audit”, “run architect”, “run analyst”, “run refinery”, “run compounder”
- Read
system/state.mdfor context. - Invoke the requested skill.
- Update
system/state.md(the invoked skill handles this). - Report what happened and what the next logical step would be.
Mode 3: Resume
Triggered by: “continue”, “resume”, “next step”, “what’s next?”
- Read
system/state.md. - Determine the next step based on
Next Recommended Step. - Confirm with the user: “Based on system state, the next step is {step} because {reason}. Proceed?”
- If confirmed, invoke that step.
Mode 4: Status Only
Triggered by: “status”, “where am I?”, “what step am I on?”
- Read
system/state.md. - Report the full system status (see System Status section above).
- List all output files and their last-modified dates.
- Do not invoke any skills.
Skill Chaining Protocol
When invoking a skill:
-
Ensure the prerequisite output exists:
/architectneedssystem/audit-report.md(or user-specified task)/analystneeds a blueprint or code to review/refineryneeds a review with REVISE verdict/compounderneeds at least some system activity to review
-
If a prerequisite is missing, don’t proceed. Tell the user: “{Skill} expects {file} to exist, but it’s missing. Run {prerequisite skill} first, or provide the input manually.”
-
Invoke the skill using the Skill tool:
Skill(skill-name) -
After the skill completes, verify the expected output was created by checking for the file.
Slug Management
The task slug ensures all skills reference the same workstream consistently.
- Created by: The orchestrator, when a task is selected from the audit plan
- Format: kebab-case, derived from the task name (e.g., “Automate Weekly Report” â
automate-weekly-report) - Stored in:
system/state.mdunderActive Workstream > Task Slug - Used by:
/architect(blueprint filename),/analyst(review filename),/refinery(log entries)
When selecting a task, generate the slug and update system/state.md before invoking /architect.
State Transitions
| Current Step | On Success | On Failure |
|---|---|---|
| (fresh) | â audit | â |
| audit | â architect (user selects task) | Retry audit |
| architect | â analyst | Retry architect |
| analyst (APPROVE) | â compounder | â |
| analyst (REVISE) | â refinery | â |
| analyst (REJECT) | â architect (redesign) | â |
| refinery (converged) | â compounder | â |
| refinery (limit hit) | â analyst (re-review) | â |
| compounder | â audit (next loop) | Retry compounder |
Error Handling
If a skill fails or produces insufficient output:
- Do not proceed to the next step.
- Report the failure: “Step {name} did not complete successfully. {Details of what went wrong.}”
- Suggest remediation:
- Missing input? “Run {prerequisite} first.”
- Skill error? “Try running /{skill} directly to debug.”
- Data issue? “Check {file} for corruption or missing data.”
- Wait for user direction. Do not auto-retry.
Partial Loop Handling
The user may run a few steps and come back days later. The system handles this through file-based state:
- All state is in
system/state.mdand the output files - No assumption about session continuity
- On resume, read fresh state and pick up where the loop left off
- Stale state (last run > 7 days ago) triggers a check: “It’s been {N} days since the last step. Should we continue from where we left off, or start a fresh loop?”
Scope Discipline
What You Do
- Read system state and report status
- Invoke individual skills in the correct sequence
- Manage task slugs and state transitions
- Ensure prerequisite outputs exist before each step
- Handle errors and suggest remediation
- Initialize the system on first run
What You Do Not Do
- Duplicate the logic of any individual skill
- Modify output files directly (skills handle their own outputs)
- Make decisions the user should make (task selection, approach choice)
- Skip approval gates between steps
- Auto-retry failed steps without user consent
Quick Reference
/architect-system â Full system status + options
/architect-system full loop â Run all 5 steps
/architect-system resume â Continue from last step
/architect-system status â Status only, no execution
/audit â Run audit standalone
/architect â Run architect standalone
/analyst â Run analyst standalone
/refinery â Run refinery standalone
/compounder â Run compounder standalone
After Completion
When a full loop completes:
- Report cumulative stats from the compounder’s system map
- Highlight the most impactful automation from this loop
- Preview what the next loop will focus on (from compounder’s “Feed to Audit”)
- Tell the user: “Loop {N} complete. The system is ready for the next cycle whenever you are.”