跳到正文
cccskills
免费在 GitHub 公开

architect

Use when requirements exist and a technical design is needed before implementation begins

中文简介正在准备中。当前显示原文说明。

Trevoke/org-gtd.el星标 486(GitHub 486 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md3.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

/architect — Design Interview

Overview

Design the technical solution through conversation. Propose approaches with tradeoffs, let the user choose, then detail the chosen design.

Core principle: Lead with options, not answers. The user picks the direction.

When to Use

  • Requirements exist (from /define or provided by user)
  • Technical approach needs to be decided before coding
  • Multiple valid designs exist and tradeoffs matter

The Process

1. Find Requirements

Look for the most recent *-requirements.md in docs/plans/.

If none found or multiple exist, ask the user which to use. If no requirements exist at all, suggest /define first.

2. Explore the Codebase

Before proposing anything, understand what exists:

  • How does the codebase handle similar features?
  • Which files will be touched?
  • What patterns are already established?
  • How are similar features tested?

Name specific files and patterns you found. Don't hand-wave about "the existing architecture."

3. Propose 2-3 Approaches

For each approach:

### Approach A: [Name] (Recommended)

**Summary:** One sentence.
**How it works:** Key components and interactions.
**Pros:** Why this is good.
**Cons:** Why this might not be ideal.
**Risk:** What could go wrong.
**Fits existing patterns:** How it aligns with what's already in the codebase.

Lead with your recommendation but explain why the others exist.

4. Interview — Let the User Choose

Use AskUserQuestion:

  • Which approach do they prefer?
  • Any constraints you missed?
  • Acceptable tradeoffs?

One question at a time. Don't dump all decisions at once.

5. Detail the Chosen Design

Present in sections, validating each with the user before moving on:

SectionContent
OverviewWhat we're building and why this approach
ComponentsEach new/modified module with its responsibility
Data FlowHow data moves through the system
API SurfacePublic functions — signatures and behavior
Error HandlingWhat can go wrong and how we handle it
Testing StrategyWhat to test, at what level

Design principles to consider:

  • Does the code model the domain naturally? (DDD)
  • Single responsibility — each module does one thing
  • Does it feel like idiomatic Emacs Lisp?
  • Are we building only what's needed? (YAGNI)

6. Save and Commit

Derive name from requirements doc (same <name> slug).

docs/plans/YYYY-MM-DD-<name>-design.md

Commit: docs: add <name> design

7. Next Step

Design saved. When ready, use /implement to plan and execute the implementation.

Common Mistakes

MistakeFix
Presenting one design as "the answer"Always propose 2-3 approaches with tradeoffs
Not reading the codebase firstExplore before proposing. Name specific files and patterns.
Designing without interviewingAsk the user which approach. They decide direction.
Including full implementation codeDesign describes WHAT and WHY. /implement handles HOW.
Producing the entire design in one shotPresent section by section, validate each with user.
Hand-waving about "existing patterns"Be specific: "org-gtd-organize.el uses transient at line 42"
Not referencing next stepAlways end with: "use /implement when ready"

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

define

免费

Use when a new feature request, bug report, or work request needs requirements defined before implementation

中文简介正在准备中。当前显示原文说明。

Trevoke/org-gtd.el4862026年8月7日 更新

implement

免费

Use when a design exists and it's time to break it into tasks and execute with subagent dispatch and review

中文简介正在准备中。当前显示原文说明。

Trevoke/org-gtd.el4862026年8月7日 更新

qa

免费

Use when implementation is complete and you want to verify quality through adversarial testing that writes code and provides evidence

中文简介正在准备中。当前显示原文说明。

Trevoke/org-gtd.el4862026年8月7日 更新

refactor

免费

Use when code quality needs improvement after implementation, without changing behavior

中文简介正在准备中。当前显示原文说明。

Trevoke/org-gtd.el4862026年8月7日 更新

test

免费

Use EVERY TIME you need to run tests, verify tests pass, or check for regressions. ALWAYS use this instead of running eldev directly.

中文简介正在准备中。当前显示原文说明。

Trevoke/org-gtd.el4862026年8月7日 更新

Use when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions

中文简介正在准备中。当前显示原文说明。

Trevoke/org-gtd.el4862026年8月7日 更新

查看 Trevoke 的全部技能

报告此技能的问题