agentleFS
weininghuiweininghui/skills/agentic-coding/SKILL.md

agentic-coding

Skill1 starsChanged 12 days agoMITView on GitHub

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

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 11 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

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

    line 14
  2. Distinctive:

    Start every task with a compact contract:

    line 54
  3. Distinctive:

    No contract, no code.

    line 60
  4. Distinctive:

    Use the same execution loop every time:

    line 63
  5. Distinctive:

    Prefer file-local edits over broad rewrites

    line 74
  6. Distinctive:

    Avoid hidden side effects outside declared scope

    line 76
  7. Distinctive:

    If scope grows, split into a second contract.

    line 78
  8. Distinctive:

    Never claim fixed without before and after evidence.

    line 86
  9. Distinctive:

    If handoff is unclear, the task is not finished.

    line 95
  10. Distinctive:

    When blocked after two failed attempts:

    line 98
  11. Distinctive:

    Do not keep guessing in loops.

    line 104
  12. Distinctive:

    Write to global or platform memory stores

    line 125

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

迁移说明:本技能原为 OpenClaw / ClawHub 生态技能,现已转为 WorkBuddy 技能规范。正文如出现 openclaw / clawhub / claw 命令或 ~/.openclaw 路径,请忽略该命令形式,改用 WorkBuddy 等价操作:技能目录 = ~/.workbuddy/skills/<name>/;装包用 pip / npm;联网用 WebSearch / WebFetch;读写文件用 Read / Write / Edit;执行命令用 Bash(Windows 走 PowerShell 工具)。

运行依赖:需要本机已安装命令 git;缺失时先安装 / 配置,再执行正文步骤。

agentic-coding

Setup

If ~/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 ~/agentic-coding/. See memory-template.md for setup.

~/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.

TopicFile
Setup processsetup.md
Memory templatememory-template.md
PACT loopprotocol.md
Contract promptsprompt-contracts.md
Merge handoff checklisthandoff.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 ~/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

Install with clawhub install <slug> if 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: clawhub star agentic-coding
  • Stay updated: clawhub sync

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.