跳到正文
cccskills
免费在 GitHub 公开

critic

Perform an adversarial review of the current uncommitted changeset, validating it against project contracts and architectural intent.

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

查看安装方法

包含的文件(1)

  • SKILL.md4.1 KB

SKILL.md(原文)

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

Critic — adversarial review of the changeset

Review the current uncommitted changeset against project contracts and architectural intent.

Stance

Be skeptical. Reject changes that violate contracts, introduce regressions, or drift from architectural intent — even when they "work." Favor false positives over false negatives.

Boundaries

  • In scope: the uncommitted diff, the contracts it must satisfy, and the deterministic checks.
  • Out of scope: fixing what you find (dev), committing (ship), assessing knowledge-base content quality (assess).

Phase 1 — Load context

  1. Gather the changeset — run git diff (staged + unstaged) to capture all pending changes.
  2. Identify affected systems — from the diff, list the files, components, and layers touched.
  3. Load the relevant contracts:
    • CLAUDE.md / AGENTS.md — operational boundaries and coding standards
    • src/content/config.ts — content schemas (if content files changed)
    • src/styles/ds/ — design tokens and layout system (if styles changed)
    • specs/ — any spec covering the changed domain
  4. Load the design system reference — for UI or style changes, read src/components/ds-docs/ for documented patterns.

Phase 2 — Adversarial review

Evaluate every change against the loaded contracts. Check each dimension independently.

A. Spec compliance

  • Do the changes fulfill documented requirements, or drift from them?
  • Any spec violations — missing requirements, violated constraints?
  • Any work beyond scope (gold-plating, undocumented features)?

B. Architectural integrity

  • No Tailwind — any utility class names that smell like Tailwind but aren't defined in project CSS?
  • Type safety — any any types, untyped parameters, or schema violations?
  • Component imports — is every component used in .astro files explicitly imported?
  • Design tokens — hardcoded colors, fonts, or spacing instead of CSS variables?
  • Content layer — using the modern glob() loader, not legacy type: 'content'?

C. Grid and layout

  • Elements using .breakout or .full — are they in a context where the grid columns are available?
  • Any display: contents side effects (DOM vs. visual tree selector mismatches)?
  • Is subgrid usage correct?

D. Content quality (if .md/.mdx changed)

  • Does frontmatter match the schema in config.ts?
  • Does the body start with ## (h2), not # (h1)?
  • Are cross-references bidirectional?
  • Do mermaid blocks have matching <figure> elements?

E. Regression risk

  • Do the changes break patterns established elsewhere in the codebase?
  • Any silent behavior changes (works, but wrong)?
  • CSS specificity conflicts with existing rules?

F. Security

  • Any raw user input rendered without escaping?
  • Are external URLs validated?
  • Any secrets or credentials in the diff?

Phase 3 — Verification

Run the project's deterministic checks:

  1. pnpm check — type validation (0 errors required)
  2. pnpm lint — Biome checks

Report the results. If either fails, include the errors in the review.

Phase 4 — Verdict

Present findings as a structured review:

## Adversarial Review: [date]

### Verdict: PASS | PASS WITH NOTES | FAIL

### Changeset Summary
- Files changed: N
- Lines added/removed: +N / -N
- Systems touched: [list]

### Violations (if any)
For each violation:
1. **File:Line** — Description
   - **Contract:** Which rule or spec is violated
   - **Impact:** Why this matters
   - **Fix:** Specific remediation

### Observations (non-blocking)
Items that aren't violations but warrant attention.

### Checks
- Type check: PASS/FAIL
- Lint: PASS/FAIL

Verdict rules:

  • FAIL — any ALWAYS rule or hard constraint from CLAUDE.md is violated, or pnpm check / pnpm lint fails.
  • PASS WITH NOTES — only observations, or an ASK FIRST boundary was crossed without confirmation.
  • PASS — the changeset is clean against all contracts.

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

assemble

免费

Dev-Critic loop: implement, review, fix — repeat until clean

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

villetakanen/asdlc-io452026年10月9日 更新

assess

免费

Assess source material against the ASDLC Knowledge Base and produce an evidence-calibrated Content Review Report.

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

villetakanen/asdlc-io452026年10月9日 更新

curator

免费

Triage the content corpus against the latest GSC snapshot and produce a prioritized refresh report. Read-only: reports, never edits.

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

villetakanen/asdlc-io452026年10月9日 更新

dev

免费

Implement features, fix bugs, and keep the codebase healthy and maintainable. Works from a defined PBI, issue, or task description.

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

villetakanen/asdlc-io452026年10月9日 更新

geo-audit

免费

GEO+SEO audit of asdlc.io — analyzes the codebase for Generative Engine Optimization across AI citability, technical infrastructure, content quality, schema markup, and knowledge base discoverability. Produces a composite GEO Score (0-100) with prioritized action plan.

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

villetakanen/asdlc-io452026年10月9日 更新

lead

免费

Produce written specs and atomic PBIs that an implementation agent can execute independently. Authors specs and Linear issues.

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

villetakanen/asdlc-io452026年10月9日 更新

查看 villetakanen 的全部技能

报告此技能的问题