AGENT SKILL

architect

Use only when the user explicitly says "complex architect".

License 许可
Apache-2.0
最近更新
2026-11-07
Stars
★ 2
Forks
0

01 前言 Front Matter

name
architect
description
Use only when the user explicitly says "complex architect".

03 SKILL.md 正文

Architect

A procedure for turning a task into two artifacts: spec.md (PM-level intent) and plan.md (phased implementation plan). The skill handles user interaction and spec authoring; the plan-architect and plan-reviewer agents handle plan drafting and quality review.

Workflow

Step 1  Deep-scan codebase + draft picker questions + ask user
Step 2  Write spec.md from the answers
Step 3  Spawn 2 plan-architect agents in parallel, each given the spec
        → {Plan}-plan-{pragmatic|widescope-refactorimprovements}.md
Step 4  Picker: user selects which design implementation plan to take
        (or chooses a combination of elements from each plan)
        → rename chosen to {Plan}-plan.md; delete the other plan file
Step 5  Spawn plan-reviewer → score
        Skill writes/updates the **Review Score** header in {Plan}-plan.md
          ≥ 8 → Step 7
          < 8 → Step 6
Step 6  Spawn plan-architect with spec.md + {Plan}-plan.md + reviewer feedback
        → re-review (max 2 cycles total). After 2, proceed to Step 7 anyway.
Step 7  Report

Paths

  • Output directory: ./output/architect/
  • {PlanName} is PascalCase derived from the task (e.g. UserAuthSystem).
  • Spec: ./output/architect/{PlanName}-spec.md
  • Per-design plans (during generation): ./output/architect/{PlanName}-plan-{pragmatic|widescope-refactorimprovements}.md
  • Canonical chosen plan: ./output/architect/{PlanName}-plan.md

Agents

Agent Role
plan-architect Sub-agent. Given task + spec + approach, deep-scans the codebase and writes plan.md. Does not write the spec and does not ask user questions.
plan-reviewer Sub-agent. Scores the plan against the spec (1-10); returns PASS / REVISE with feedback.

Mode Detection

  • Create — no existing spec or plan for this task. Run the full workflow.
  • Edit — existing {PlanName}-plan.md and the user wants changes. Skip Steps 1-4; jump straight to Step 6 with the user's edit request as the feedback.

Step 1: Scan & Clarify (gate)

Do not proceed until the user has answered all questions.

  1. Deep scan the codebase proportionally to the task — Glob the layout, Grep related code/tests/configs, and Read the most relevant files. Synthesize: what conventions, abstractions, and integration points matter for this task.
  2. Draft 1-4 intent questions with 2-4 choices each, grounded in the scan. Ask only about things only the user can decide — scope, success criteria, priorities, audience, external constraints, behavioral defaults. Don't ask about frameworks or layout (you read those in step 1). Mark a default with (Recommended) when you have one.
  3. Ask via the host picker (ask_user / AskUserQuestion) — one question per call, sequential.

Step 2: Write spec.md

Write ./output/architect/{PlanName}-spec.md. Keep it approach-agnostic. Anchor every section in the user's answers from Step 1 and the relevant findings from the scan.

Before drafting, read ../../references/spec-guidance.md. Follow every rule and pass its pre-write checklist before saving, then continue to Step 3.

Step 3: Generate 2 Designs (parallel)

Spawn 2 plan-architect agents in parallel. Each prompt includes:

  • The task description
  • The path to the spec: ./output/architect/{PlanName}-spec.md (so the agent reads it for intent + scope)
  • A summary of the user's clarifying answers from Step 1
  • The approach: one of Pragmatic | WideScope-RefactorImprovements
  • The output path: ./output/architect/{PlanName}-plan-{approach}.md

Step 4: User Selects

Read each plan briefly. Then present the user with both of the following before asking the picker:

1. Invite the user to review both plans at their paths. State that the two designs have been written and that the user can inspect them at:

  • ./output/architect/{PlanName}-plan-pragmatic.md
  • ./output/architect/{PlanName}-plan-widescope-refactorimprovements.md

2. Print this exact markdown comparison table to chat:

Aspect Pragmatic WideScope-RefactorImprovements
Phases {N} {N}
Steps {N} {N}
Plan Short Summary Overview {1-2 sentences} {1-2 sentences}
Spec vs Scope {Exact / Extends / Subset} {Exact / Extends / Subset}
Refactors {short bullets, or "None"} {short bullets, or "None"}
Risk Delta {Lower / Same / Higher} {Lower / Same / Higher}

Then ask via picker which design implementation plan to take: Pragmatic | WideScope-RefactorImprovements | Combine elements. Mark one option with (Recommended) (default Pragmatic; recommend WideScope-RefactorImprovements when the scan surfaced notable code/architecture smells in the task area, or the task crosses module boundaries / touches code owned by multiple teams). The combine option lets the user blend pieces from both plans — capture their description via free-text.

Then:

  • Rename the chosen design's plan to ./output/architect/{PlanName}-plan.md.
  • Delete the other plan file. The spec is unchanged and stays as-is.
  • If the user picked "Combine", spawn a single plan-architect with approach=Custom, the user's described blend, the spec path, and the canonical plan path (./output/architect/{PlanName}-plan.md).

Step 5: Review

Spawn plan-reviewer with the path to {PlanName}-plan.md and {PlanName}-spec.md.

When the reviewer returns, the skill updates the **Review Score**: {N}/10 header line in {PlanName}-plan.md to the score this reviewer pass returned (see Score Maintenance below). Then route:

  • Score ≥ 8 → Step 7.
  • Score < 8 → Step 6.

Step 6: Revise (max 2 cycles)

Spawn plan-architect with:

  • The spec path: ./output/architect/{PlanName}-spec.md
  • The existing plan path: ./output/architect/{PlanName}-plan.md
  • The reviewer feedback

The agent edits the plan in place. It must not touch the **Review Score**: header (the architect agent is instructed accordingly). Then re-spawn plan-reviewer per Step 5 — and the skill again rewrites the header to the new score.

After 2 cycles regardless of score → Step 7 (note remaining issues).

Score Maintenance (skill-owned)

The **Review Score**: {N}/10 line in {PlanName}-plan.md is owned by this skill, not by either sub-agent. The contract:

  • After every plan-reviewer pass (Steps 5 and 6), the skill rewrites that single line in {PlanName}-plan.md to reflect the most recent reviewer score and verdict, in the form **Review Score**: {N}/10 — {PASS | REVISE} ({YYYY-MM-DD}). If the line is absent (first review after Step 4), the skill inserts it immediately after the **Spec**: line.
  • The plan-architect agent never writes or edits this line — it is instructed to leave it alone during revisions.
  • The plan-reviewer agent never writes or edits this line — it reports its score in its own output only.
  • This guarantees the score in the plan file matches the score reported in the CLI Step-7 report; the file is never stuck at a stale "score-that-triggered-revision" value.

Step 7: Report

Tell the user:

  • Paths to {PlanName}-spec.md and {PlanName}-plan.md
  • Brief plan summary (phases, total steps)
  • Final review score
  • Chosen approach
  • What was changed during revision (if any)
  • Any unresolved reviewer findings

Communication

  • Keep the user informed at each step in one short line.
  • Do not show raw agent output — summarize.
  • Plain-prose questions are not allowed in Step 1 or Step 4 — always use the picker.

04 同仓库更多 Skills

LiorZivi
LiorZivi/ZiviDevelopmentMarketplace

my-skill

SKILL_DESCRIPTION — when should Claude load this skill?

★ 2
LiorZivi
LiorZivi/ZiviDevelopmentMarketplace

my-skill

SKILL_DESCRIPTION — when should Claude load this skill?

★ 2
LiorZivi
LiorZivi/ZiviDevelopmentMarketplace

humanizer

Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, passive voice, negative parallelisms, and filler phrases.

★ 2
LiorZivi
LiorZivi/ZiviDevelopmentMarketplace

deep-research

Use when the user needs multi-source research with citation tracking, evidence persistence, and structured report generation. Triggers on "deep research", "comprehensive analysis", "research report", "compare X vs Y", "analyze trends", or "state of the art". Not for simple lookups, debugging, or questions answerable with 1-2 searches.

★ 2
LiorZivi
LiorZivi/ZiviDevelopmentMarketplace

ai-local-diffusion-invoker

Generate images locally on the user's own NVIDIA GPU by invoking a separately-installed LocalAIExecution `localai` CLI (FLUX text-to-image) through its stable --json subprocess contract. This skill vendors NONE of LocalAIExecution's code — it discovers the external tool at runtime and shells out to it. Use when the user wants to create/generate an image, render a picture from a text prompt, run local text-to-image / diffusion / FLUX, or make art on their own GPU without cloud or paid APIs. Triggers on: 'generate an image of X', 'create a picture of X', 'render X locally', 'make art of X', 'text-to-image X', 'run FLUX on X', 'local diffusion X'.

★ 2
LiorZivi
LiorZivi/ZiviDevelopmentMarketplace

telegram-remote

Activate, operate, and tear down a bidirectional bridge between this Copilot CLI session and a Telegram bot DM so the user can step away from the terminal. Works from any repository and needs only a Telegram bot token plus chat ID. Posts meaningful progress, routes questions, uploads requested local files, and injects Telegram replies back into the session. Invoke with no args to activate or with 'end' to close an active session. Activation triggers: 'telegram-remote', 'i'm stepping away', 'ping me on telegram', 'post progress to telegram', 'afk mode', 'continue on telegram', 'headed into a meeting'. End triggers: 'telegram-remote end', 'end-telegram-remote', 'stop-telegram-remote', 'i'm back at the terminal', 'back from afk', 'stop posting to telegram', 'disable remote mode'.

★ 2