AGENT SKILL

verification-loops

Use when about to claim work is complete, fixed, or passing, before committing or creating PRs. Requires running verification commands and confirming output before making any success claims. Evidence before assertions always.

License 许可
Apache-2.0
最近更新
2026-10-05
Stars
★ 1
Forks
0

01 前言 Front Matter

name
verification-loops
description
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs. Requires running verification commands and confirming output before making any success claims. Evidence before assertions always.

03 SKILL.md 正文

Verification Loops Skill

Never claim success without running the commands to verify it.

The Core Rule

Evidence before assertions. Run the verification, read the output, confirm it, then report.

❌ "TypeScript should be fine now" (no verification)
✅ Run: npx tsc --noEmit → read output → "Exit code 0, 0 errors" → report

Standard Verification Checklist

Before marking any task complete, run all applicable checks:

1. TypeScript Gate

npx tsc --noEmit 2>&1 | head -20
echo "TSC_EXIT:$?"

Accept only: TSC_EXIT:0 and 0 error lines.

2. Lint Gate

npm run lint 2>&1 | tail -20
echo "LINT_EXIT:$?"

Accept only: 0 errors, 0 warnings (Kalmeron uses --max-warnings=0).

3. i18n Completeness

When adding new translation keys:

# Verify key exists in both files
grep '"NewKey"' messages/ar.json messages/en.json

Both files must contain the key.

4. Route Uniqueness

When adding a new page:

find app -name "page.tsx" | grep "your-route"

Should return exactly 1 result.

5. Firestore Auth Coverage

When adding a new API route:

grep -n "getServerSession\|verifyIdToken\|verifySessionCookie" app/api/your-route/route.ts

Must return at least 1 match (or be a documented public endpoint).

6. File Existence Verification

After creating a file:

ls -la path/to/created/file.ext

Never assume a write succeeded — verify the file exists and has non-zero size.

Verification by Task Type

Feature additions:

  1. npx tsc --noEmit → 0 errors
  2. npm run lint → 0 warnings
  3. Visual check: screenshot or log of the feature working

Bug fixes:

  1. Reproduce the bug in the original state (if possible)
  2. Apply the fix
  3. Confirm the original reproduction no longer triggers
  4. npx tsc --noEmit → 0 errors

i18n additions:

  1. Both ar.json and en.json updated
  2. grep "NewNamespace.NewKey" finds the key in both files
  3. Component uses t("NewNamespace.NewKey") not hardcoded text

API route additions:

  1. Route file exists at app/api/route-name/route.ts
  2. Auth check is present (or public endpoint is documented)
  3. npx tsc --noEmit → 0 errors

SAST/Security changes:

  1. SAST workflow logic inverts correctly (grep -rL for missing auth = files WITHOUT auth)
  2. No false positives in the allowlist
  3. Gate thresholds are documented and justified

Common Verification Failures in Kalmeron

Failure Symptom Verify With
TypeScript error Framer Motion types npx tsc --noEmit
Missing translation Component renders key string grep "key" messages/*.json
ESLint setState setState in useEffect warning npm run lint
Route conflict 404 or wrong page loads find app -name page.tsx | grep route
Missing auth Security gate fails grep -rL "getServerSession" app/api/
Wrong Firestore query Missing userId filter grep -n "userId" app/api/route.ts

Reporting Results

After running verification, always include the actual output:

✅ TypeScript: `npx tsc --noEmit` → exit 0, 0 errors
✅ Lint: `npm run lint` → 0 errors, 0 warnings  
✅ i18n: keys found in both ar.json and en.json
✅ Route: exactly 1 page.tsx at app/(dashboard)/new-feature/

Not:

❌ "Everything should work now"
❌ "TypeScript is probably fine"
❌ "The lint should pass"

04 同仓库更多 Skills

dahaliztupe-sketch
dahaliztupe-sketch/Kalmeron-Two

add-new-agent

خطوات تفصيليّة لإضافة وكيل ذكاء اصطناعي جديد إلى منصّة Kalmeron من الفكرة إلى الإنتاج

Skill与智能体开发
★ 1
dahaliztupe-sketch
dahaliztupe-sketch/Kalmeron-Two

writing-skills

Use when creating new skills, editing existing skills, or verifying skills work before deployment

内容创作者测试与质量写作与文案
★ 1
dahaliztupe-sketch
dahaliztupe-sketch/Kalmeron-Two

writing-plans

Use when you have a spec or requirements for a multi-step task, before touching code

内容创作者写作与文案
★ 1
dahaliztupe-sketch
dahaliztupe-sketch/Kalmeron-Two

web-design-guidelines

Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

设计师视觉设计
★ 1
dahaliztupe-sketch
dahaliztupe-sketch/Kalmeron-Two

vitest

Set up Vitest testing in any project — detects project type (Cloudflare Workers, React, Node), generates vitest.config.ts, test setup, utilities, and sample tests. Also covers mocking patterns, coverage config, workspace setup, and Jest migration. Trigger with 'set up vitest', 'add tests', 'configure vitest', 'migrate from jest', 'vitest config', 'add unit tests', or 'testing setup'.

测试与质量前端开发
★ 1
dahaliztupe-sketch
dahaliztupe-sketch/Kalmeron-Two

verification-before-completion

Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always

★ 1