跳到正文
cccskills
免费在 GitHub 公开

architect

Run a full dev cycle on one change: clarify, plan, execute, lint, fix. Start every change here.

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

查看安装方法

包含的文件(1)

  • SKILL.md5.4 KB

SKILL.md(原文)

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

Architect

Single skill, two model tiers:

  • Planning tier (Phases 1–3): clarify, research, create the plan and task file
  • Worker tier (Phases 4–5): execute the task file, run lint checks, fix feedback

Follow AGENTS.md communication + reference-doc rules.

Phase 1 — Clarify

If requirements are unclear, ask one grouped message. Skip if already clear.

Phase 2 — Research

Build context from graft first, then read only what you need:

  1. bin/harness graft ask "<research question>" --source to locate/understand · bin/harness graft grep "<symbol>" to find every occurrence · bin/harness graft callers <sym> (or --depth all for multi-file changes) to trace edges · bin/harness graft skeleton <file> for an API skim. Add --in <dir>/ to narrow a subtree. Always through bin/harness graft — a bare graft answers an empty graph as "no matching nodes" and exits 0.
  2. Open source files only at the exact file:line graft names — never whole files to rebuild understanding graft gives.
  3. .agents/notes/ for the same slug
  4. AGENTS.md for the project's layout and its commands — it is on every project; workflow.md beside it when the project has one Follow AGENTS.md reference-doc rules (never load a whole file under .agents/docs/; grep one section). Live by the graft skill: "use graft before raw grep/code-read" is authoritative.

Phase 3 — Plan (planning tier)

Create .agents/tasks/YYYY-MM-DD-<type>-<slug>.md. Generate uid from the current time (YYYYMMDD-HHMMSS) if known; otherwise use the date plus a random suffix (YYYYMMDD-<random>).

---
type: <type>
slug: <kebab-case>
date: YYYY-MM-DD
uid: YYYYMMDD-<random>
status: planning
review_required: yes | no
risk: []
---

## Goal
## Context
## Tasks
- [ ] 1. ...

## Edge cases
- [ ] 1. ...

## Session checkpoint
## Log
## Feedback

Enumerate 3–5 edge cases relevant to the change; ensure the plan covers each. REST/SQL/auth/user-input surfaces must cover at minimum: missing/invalid input, capability/nonce failure, and the empty/oversize boundary.

Set review_required: yes and risk: per AGENTS.md when REST, SQL, auth, export, multisite, user input, or new admin UI is involved.

Show a ~10-line summary of the plan. End with: "Ready to start, or would you like to adjust anything?" Ambiguous SQL/auth/REST design: Tell the user to re-run planning on audit tier before any coding.

Phase 4 — Execute (worker tier)

On approval, run all tasks in order.

Lint tiers

Task touchesLint
REST, SQL, auth, sanitization, PHP logic, JS/ReactImmediate after task: run composer run verify:php and npm run lint + npm run lint:css
Comments, docs, pure CSS, no new surfaceBatch every 5 tasks
All tasks doneRun npm run test:all
When lint is skipped, say: "Lint skipped — no PHP/JS surface changed."

Re-evaluate review_required after implementation

After all tasks, compare the actual code against the task file's review_required/risk. If it touches a surface (REST, SQL, auth, user input, export, multisite, new admin UI) the plan did not flag, update the frontmatter so the review gate matches what shipped.

Thread rotation

After 3 tasks or ~20 turns, update ## Session checkpoint and tell the user: start a new worker tier thread with /resume and this task file.

Retry ceiling

After 3 failed attempts on the same task (any failure type), STOP and re-plan — update ## Tasks/## Log, tell the user what's wrong. Do not grind past three iterations; different error types accumulate toward the same ceiling.

Self-review before "done"

Before reporting completion, silently argue against your own solution (redundancy, unused code, simpler alternative, missed edge case). Fix or note anything surfaced. Then add a one-line self-review note: checked [redundancy/unused code/edge cases/alternatives] — nothing surfaced, or noted [issue] — see Log.

Stop conditions

Stop only for uncovered design decisions, frozen documentation, version bumps, or major scope creep.

Completion message

On completion: status: done, full test gate, one-line summary of what was done and what files changed. Ask user to test.

Phase 5 — Feedback (worker tier)

Fix reported issues; append to ## Feedback. When stable: review_required: yes → "Open /reviewer on audit tier (planning tier OK only for low-risk optional review)."; else "Review optional; ship when satisfied."

Implementation reflexes

ABSPATH guard · the project's own prefix on every hook — zenpress_ is derived from the text domain, which is the same string for the projects this was written for and a different one for any project that was renamed, forked or shortened its prefix, so confirm the prefix with the owner before relying on it, and ask rather than assume when the code disagrees with it · REST current_user_can() · $wpdb->prepare() · sanitize in / escape out · docblocks on public surfaces · never reword existing i18n strings.

Project specifics

The reflexes above are the baseline. What this project adds — its own capability names, REST namespace, tables, prefix exceptions, block bindings — is in AGENTS.md, and it wins where the two disagree. Read it before your first edit, not after.

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

Write a document an agent consumes — a skill, an AGENTS.md, a README, a docblock, or any file reached by a pointer.

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

quentin-ld/zenpress92026年10月17日 更新

graft

免费

Locate and understand code through the project's graft graph before reading: where-is-X, how-does-Y or what-calls-Z.

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

quentin-ld/zenpress92026年10月17日 更新

grilling

免费

Stress-test the owner's plan, decision or idea by interviewing them to a shared understanding before any work starts.

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

quentin-ld/zenpress92026年10月17日 更新

Remove AI tells from French prose without lowering its register — a reply, a `.po` target, a French post.

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

quentin-ld/zenpress92026年10月17日 更新

humanizer

免费

Remove AI tells from English prose — a README, a comment, a user-facing string, a review. French is `humaniseur-fr`.

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

quentin-ld/zenpress92026年10月17日 更新

Turn surviving mutants into better tests or bug reports: on a survivor, a red MSI gate, or before a threshold drops.

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

quentin-ld/zenpress92026年10月17日 更新

查看 quentin-ld 的全部技能

报告此技能的问题