AGENT SKILL

ag-architect-verifier

Master Architect & Verifier protocol skill. Coordinates the 7-phase state machine (Formal Spec, Level 2 TDD Freeze, Counter-Example Loop, 5-Layer Interrogation, Proof Review, SSOT Export) for High-Risk tasks.

License 许可
MIT
最近更新
2026-08-02
Stars
★ 0
Forks
0

01 前言 Front Matter

name
ag-architect-verifier
layer
helper
description
Master Architect & Verifier protocol skill. Coordinates the 7-phase state machine (Formal Spec, Level 2 TDD Freeze, Counter-Example Loop, 5-Layer Interrogation, Proof Review, SSOT Export) for High-Risk tasks.
trigger_keywords
architect, verifier

03 SKILL.md 正文

Master Architect & Verifier Protocol Skill (ag-architect-verifier)

When to Apply

Use this skill when working with ag-architect-verifier workflows, tasks, or system specifications.

How to Use

Refer to the workflow instructions and command references detailed below.

Operational Purpose: Coordinates the end-to-end state machine for high-risk technical changes across the agent-skills-kit harness: Idea $\rightarrow$ Formal Spec $\rightarrow$ Frozen TDD Suite $\rightarrow$ Counter-Example Loop $\rightarrow$ 5-Layer Socratic Interrogation $\rightarrow$ Proof Review Gate $\rightarrow$ Operational SSOT Documentation.

Reference SSOT Document: process/development-protocols/references/architect-verifier-master-workflow-guide.md.


1. Trigger Conditions & Risk Activation

This skill MUST be activated when executing High-Risk Class tasks:

  • Auth, JWT, OAuth & Identity boundaries
  • Billing, Checkout & Payment Transactions
  • DB Schema Migration / Destructive Mutations
  • Public API Contract & DTO Changes
  • Runtime / Gateway / Proxy / Middleware
  • Permission Matrices & Security Boundaries

Keywords: high risk, architect verifier, formal spec, verification loop, TDD RED GREEN, proof review.


2. The 7-Phase State Machine

Phase 0: ARCHITECT (ag-brainstorming)

  • Conduct One-Question Grilling. Discover System Invariants, Fail-Safe Boundaries, Edge Cases.
  • Output: [feature-slug]-[topic-slug]-formal-spec.md and ADR in docs/adr/.

Phase 1: PLAN (ag-plan-agent)

  • Parse invariants, decompose 3-column WBS plan.
  • Output: [feature-slug]-plan-[dd-mm-yy].md and risk-gate.json.

Phase 2: VERIFIER PREP - TDD RED (ag-tester / ag-security / ag-scenario)

  • Generate property-based & race-condition tests.
  • Output: Test suite files and frozen adversarial-validation.json (status: RED).

Phase 3: EXECUTE - TDD GREEN (ag-execute-agent)

  • Write implementation code. Fix bugs driven by verification.json counter-example payloads.
  • Output: Source code and verification.json (status: PASS).

Phase 4: CODE INTERROGATION (ag-code-interrogation)

  • Socratic review across 5-Layer Cognitive Stack.
  • Output: interrogation-report.json (verdict: PASS).

Phase 5: PROOF REVIEW GATE (ag-code-reviewer / ag-security)

  • SAST audit and invariant cross-examination.
  • Output: review-decision.json (mustStopBeforeFinalize: false, verdict: "APPROVED").

Phase 6: UPDATE PROCESS & SSOT (ag-update-process-agent)

  • Run validate-all-context.mjs, archive spec to completed/, export operational workflow SSOT.
  • Output: docs/design/<feature-slug>-<topic-slug>-workflow.md.

References

04 同仓库更多 Skills

ngxccc
ngxccc/agent-skills-kit

zustand

Rules and standards for state management using Zustand in React and Next.js. Use when implementing client-side stores, persistence with localStorage, or preventing SSR hydration mismatch.

★ 0
ngxccc
ngxccc/agent-skills-kit

zod

Zod v4 schema validation best practices. Use when defining schemas, utilizing safeParse, or customizing error messages.

★ 0
ngxccc
ngxccc/agent-skills-kit

upstash-ratelimit

Rules, standards, and references for rate limiting in serverless environments using Upstash Ratelimit. Use when implementing rate limiting, configuring Upstash Redis, or handling request blocking.

★ 0
ngxccc
ngxccc/agent-skills-kit

ui-design

UI/UX and frontend design best practices guidelines (formerly frontend-design). This skill should be used when writing, reviewing, or designing frontend code to ensure accessibility, performance, and usability. Triggers on tasks involving HTML structure, CSS styling, responsive layouts, form design, animations, or accessibility improvements.

★ 0
ngxccc
ngxccc/agent-skills-kit

typescript

TypeScript performance, tsconfig, type errors, async patterns — triggered when the user asks to "optimize TypeScript performance", "speed up tsc compilation", "configure tsconfig.json", "fix type errors", "improve async patterns", or encounters TS errors (TS2322, TS2339, "is not assignable to"). Also triggers on .ts, .tsx, .d.ts file work involving type definitions, module organization, or memory management. Does NOT cover TypeScript basics, framework-specific patterns, or testing.

★ 0
ngxccc
ngxccc/agent-skills-kit

typescript-refactor

TypeScript and TSX refactoring and modernization guidelines from a principal specialist perspective, current to TypeScript 6.0 and React 19. This skill should be used when refactoring, reviewing, or modernizing TypeScript or React/TSX code for type safety, compiler performance, and idiomatic patterns. Triggers on tasks involving type architecture, narrowing, generics, discriminated unions, error handling, React component and hook typing, or migration to modern TypeScript features (satisfies, using, const type parameters, inferred type predicates, isolatedDeclarations, erasable syntax, import attributes).

★ 0