‹ 首页

agentic-coding

@clawic · 收录于 昨天 · 上游提交 2 天前

Ship production code with AI agents through acceptance contracts, micro diffs, red green loops, and deterministic handoff checkpoints.

适合你,如果希望用AI代理确保代码质量并加速交付。

/ 通过 npx 安装 校验哈希
npx oh-my-skill add clawic/skills/agentic-coding
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- clawic/skills/agentic-coding
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify clawic/skills/agentic-coding
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
14GitHub stars
~1.1K最小装载
~2.6K含声明引用
~2.6K文本包总量
索引托管

怎么用

商店整理自技能原文 · 版本 f825206 · 表述以原文为准
它做什么

Claude会先要求你定义任务的目标和验收标准,然后通过“问题定义-验收设计-变更集-测试证据”循环,生成最小修改并附上测试结果和交接说明,确保代码可直接用于审查。

什么时候触发

当你要求Claude编写可合并的生产代码,包括添加功能、修复可重现的bug、风险重构,或处理Xcode项目(如Swift功能、iOS/macOS回归、热修复)时触发。

装好后可以这样说
Claude会要求你提供目标、验收条件等。
Claude会捕获失败条件然后应用最小修复。
Claude会按契约驱动流程操作。
技能原文 SKILL.md作者撰写 · MIT · f825206
Setup

If ~/Clawic/data/agentic-coding/ does not exist or is empty, read setup.md, ask a concise kickoff question, and keep any persistence explicitly opt-in.

Positioning

This skill is intentionally different from agentic-engineering and vibe-coding:

  • agentic-engineering focuses on multi-agent operating patterns and team throughput.
  • vibe-coding focuses on prompt-led exploration and fast idea shipping.
  • agentic-coding focuses on contract-first implementation, proof of fix, and reviewer-ready handoff.
When to Use

User needs merge-ready code from an AI agent with explicit quality gates. Use for production features, risky refactors, bug fixes with reproducible failures, and Xcode-centered work such as Swift feature delivery, iOS/macOS regressions, and release-branch hotfixes.

Architecture

Memory lives in ~/Clawic/data/agentic-coding/. See memory-template.md for setup.

~/Clawic/data/agentic-coding/
|- memory.md       # Persistent preferences and operating mode
|- contracts.md    # Accepted task contracts and non-goals
|- evidence.md     # Test evidence and verification snapshots
`- handoffs.md     # Delivery notes and rollback hints
Quick Reference

Load these files on demand to keep context focused and execution fast.

| Topic | File | |-------|------| | Setup process | setup.md | | Memory template | memory-template.md | | PACT loop | protocol.md | | Contract prompts | prompt-contracts.md | | Merge handoff checklist | handoff.md |

Core Rules
1. Lock a Contract Before Writing Code

Start every task with a compact contract:

  • Objective: exact outcome in one sentence
  • Acceptance: checks that prove success
  • Non-goals: what must stay untouched
  • Constraints: stack, style, limits, deadlines

No contract, no code.

2. Run the PACT Loop

Use the same execution loop every time:

  1. Problem framing: restate objective and assumptions
  2. Acceptance design: define checks before edits
  3. Change set: produce the smallest useful diff
  4. Trace and test: show evidence and residual risk

This skill is execution discipline, not brainstorming. For Xcode workflows, tie acceptance to a concrete target, simulator/device, and test command before editing.

3. Keep Diffs Surgical

One user objective maps to one focused change set:

  • Prefer file-local edits over broad rewrites
  • Separate behavior change from style cleanup
  • Avoid hidden side effects outside declared scope

If scope grows, split into a second contract.

4. Prove Failure Then Prove Fix

For bugs and regressions:

  • Capture the failing condition first (test, log, or reproduction)
  • Apply minimal fix
  • Re-run the same check to prove resolution

Never claim fixed without before and after evidence.

5. Deliver Handoff-Grade Output

End each cycle with a delivery packet:

  • What changed and why
  • Files touched and blast radius
  • Validation run and results
  • Known risks and rollback path

If handoff is unclear, the task is not finished.

6. Escalate With a Structured Fallback

When blocked after two failed attempts:

  • Stop editing
  • State what was tried
  • Propose two grounded alternatives
  • Request a decision with tradeoffs

Do not keep guessing in loops.

Common Traps
  • Starting implementation without acceptance checks -> endless iteration and unclear done state.
  • Asking the agent for full rewrites -> noisy diffs and avoidable regressions.
  • Mixing feature work with architecture overhaul -> weak reviewability and hard rollback.
  • Reporting success without reproducible evidence -> false confidence in production.
  • Treating AI output as final draft -> quality debt moved to code review.
Security & Privacy

Data that leaves your machine:

  • None from this skill itself

Data that stays local:

  • Contracts, evidence notes, and handoff summaries in ~/Clawic/data/agentic-coding/

This skill does NOT:

  • Trigger undeclared network requests
  • Access files outside its own memory path
  • Write to global or platform memory stores
  • Auto-approve risky code without explicit evidence
Scope

This skill ONLY:

  • Improves execution quality of AI-assisted coding
  • Enforces contract driven implementation and verification
  • Produces clear handoff packets for reviewers

This skill NEVER:

  • Replaces security review for high risk domains
  • Encourages blind trust in generated code
  • Overrides project specific contribution rules
Related Skills

More Clawic skills, get them at https://clawic.com/skills/<slug> (install if the user confirms):

  • agentic-engineering - Multi-agent collaboration and operating patterns.
  • coding - General coding support across stacks and tasks.
  • code - Broad code authoring and editing assistance.
  • copilot - Companion style IDE assistance patterns.
  • delegate - Structured task delegation to autonomous agents.
Feedback
  • If useful, star it: https://clawic.com/skills/agentic-coding
  • Latest version: https://clawic.com/skills/agentic-coding
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。