← Back to Skills Marketplace
beyound87

Coding Lead

by beyound87 · GitHub ↗ · v3.0.6 · MIT-0
cross-platform ✓ Security Clean
1760
Downloads
0
Stars
14
Active Installs
31
Versions
Install in OpenClaw
/install coding-lead
Description
Coding execution skill for any implementation-focused agent. Current production path is claude-only with simple tasks direct, medium tasks preferring ACP run...
README (SKILL.md)

\r \r

Coding Lead\r

\r

This is a coding execution skill for any agent that owns implementation work.\r It defines how coding work runs, not who should own the task.\r In multi-agent teams, routing may be handled elsewhere; in single-agent use, this skill still works directly.\r \r Route by complexity. Current production path is claude-only. Do not depend on ACP session persistence in IM threads; use direct execution, direct acpx, and existing implementation session continuity instead.\r \r

Task Classification\r

\r | Level | Criteria | Action |\r |-------|----------|--------|\r | Simple | Single file, \x3C60 lines, clear local scope | Direct: read/write/edit/exec |\r | Medium | 2-5 files, clear scope, likely follow-up questions | Prefer Claude ACP mode:"run" or direct acpx → fallback direct |\r | Complex | Multi-module, architecture, needs continuity | Use existing implementation session continuity + context files + direct acpx/direct execution |\r \r When in doubt, go one level up.\r \r

Practical default rule\r

  • Simple: stay in the current session; do not open ACP unless clearly beneficial\r
  • Medium: prefer Claude ACP one-shot (run) when available; otherwise direct acpx\r
  • Complex: preserve continuity through the existing implementation session, on-disk context files, and serial follow-ups; do not make IM-bound ACP session the default path\r
  • ACP unavailable: medium/complex fall back to direct acpx or direct execution; simple tasks were already direct by default\r
  • Never block on ACP availability: ACP is an accelerator, not a hard dependency\r \r

Multi-agent dispatch rule (when dispatching to other agents)\r

  • Dispatch to ACP-configured agents (agents with runtime.type: "acp" in openclaw.json): use sessions_spawn(runtime="acp"), may include streamTo="parent"\r
  • Dispatch to standard agents (all others): use sessions_spawn(runtime="subagent"), never include streamTo\r
  • Results from subagent spawns arrive via auto-announce, not polling\r
  • How to tell which is which: check the target agent's config in openclaw.json — if it has runtime.type: "acp", use ACP; otherwise use subagent\r \r

Tech Stack (New Projects)\r

\r | Layer | Preferred | Fallback |\r |-------|-----------|----------|\r | Backend | PHP (Laravel/ThinkPHP) | Python |\r | Frontend | Vue.js | React |\r | Mobile | Flutter | UniApp-X |\r | CSS | Tailwind | - |\r | DB | MySQL | PostgreSQL |\r \r Existing projects: follow current stack. New: propose first, wait for confirmation.\r \r

Tool Detection & Fallback\r

\r All tools are optional. Detect once per session:\r \r | Tool | Check | Fallback |\r |------|-------|----------|\r | smart-agent-memory | node ~/.openclaw/skills/smart-agent-memory/scripts/memory-cli.js stats ok? | memory_search + manual .md writes |\r | qmd | qmd --version ok? | grep (Linux/macOS) / Select-String (Windows) / find |\r | ACP | See ACP detection below | Direct read/write/edit/exec |\r \r Notation: [memory] [qmd] [acp] = use if available, fallback if not.\r \r

ACP Detection & Routing\r

\r Run once per session, stop at first success:\r \r

Step 1: Try sessions_spawn (timeout: 30s)\r

sessions_spawn(runtime: "acp", agentId: "claude", task: "say hello", mode: "run", runTimeoutSeconds: 30)\r
```\r
Preferred in OpenClaw because it cleanly supports both:\r
- `mode: "run"` for one-shot coding tasks\r
- `mode: "session"` for persistent long-context coding threads\r
- Got a reply → `ACP_MODE = "spawn"`. Done.\r
- Error or no reply within 30s → kill session, go to Step 2.\r
\r
### Step 2: Try acpx CLI (timeout: 30s)\r
```bash\r
# Detect acpx path (OS-dependent)\r
# Windows: %APPDATA%\
pm\
ode_modules\openclaw\extensions\acpx\
ode_modules\.bin\acpx.cmd\r
# macOS/Linux: $(npm root -g)/openclaw/extensions/acpx/node_modules/.bin/acpx\r
\r
# Use exec with timeout\r
acpx claude exec "say hello"   # timeout 30s\r
```\r
- Got a reply → `ACP_MODE = "acpx"`. Done.\r
- Error, empty output, or stuck beyond 30s → kill process, go to Step 3.\r
\r
### Step 3: No ACP available\r
`ACP_MODE = "direct"`. Agent executes all coding tasks directly with read/write/edit/exec. Load team standards (see Coding Standards below).\r
\r
### Cache the result\r
Set a session variable (mental note): `ACP_MODE = "spawn" | "acpx" | "direct"`\r
- **Cache lifetime = current session**. Each new session re-detects once. Keep the detection note minimal and refresh it whenever the underlying mode stops working.\r
- If a cached mode fails mid-session (e.g. acpx suddenly errors), re-run detection from Step 1.\r
\r
### ACP Agent Policy\r
\r
Current supported ACP coding agent: **claude only**.\r
\r
- Do not route coding work to codex or other future agents in the production path yet.\r
- If a request merely mentions ACP or coding-agent execution without naming a different approved agent, default detection and execution guidance to Claude.\r
- If documentation mentions other coding agents, treat them as future possibilities only, not current operating policy.\r
- Code review can still be done by the coordinating OpenClaw agent, but ACP execution guidance in this skill is **claude-only**.\r
\r
## Rule Priority\r
\r
Apply rules in this order:\r
1. **Matched skill instructions** (this skill wins for coding execution when loaded)\r
2. **Agent role fallback** only when the coding skill is not loaded or does not cover the case\r
3. **Team templates / README / generated docs** provide boundaries and ownership, not competing execution logic\r
\r
If the same topic appears in multiple places, follow the highest-priority source above and simplify the lower-priority wording instead of combining conflicting chains.\r
\r
## Context File Lifecycle\r
\r
Context files exist to preserve continuity across the current code chain, but they must stay tidy.\r
\r
- Store active context files under `\x3Cproject>/.openclaw/`\r
- Use a stable name per task chain: `context-\x3Ctask-slug>.md`\r
- Reuse the same file for the same chain; do not create a new file every turn\r
- **Active context file cap per project: 60**\r
- **Context-file lifecycle window per project: 100 total files** (active + archive). When approaching the limit, prune stale archived files first, then merge or remove low-value active chains only if truly superseded.\r
- When a task is completed, either delete the temporary context file or move it under `.openclaw/archive/` if it has durable follow-up value\r
- If a file is stale, ownerless, or superseded by a newer chain, treat it as cleanup/archive candidate\r
- Before creating a new active context file, check whether an existing file for that chain can be reused\r
\r
## Context Naming\r
\r
Recommended pattern:\r
- `\x3Cproject>/.openclaw/context-\x3Ctask-slug>.md`\r
- task slug should be short, stable, and human-readable\r
- avoid timestamp-only names for active files unless the task truly has no durable identifier\r
\r
## Coding Standards — Two Layers, No Overlap\r
\r
### Layer 1: Project-level (Claude Code owns)\r
Projects may have their own `CLAUDE.md`, `.cursorrules`, `docs/` — these are **Claude Code's responsibility**. It reads them automatically. **Do NOT paste project-level rules into ACP prompts.**\r
\r
### Layer 2: Team-level (OpenClaw owns)\r
`shared/knowledge/tech-standards.md` — cross-project standards (security, change control, tech stack preferences). Only relevant for **direct execution** (simple tasks without ACP).\r
\r
### When spawning ACP\r
- **Don't** embed coding standards in the prompt — Claude Code has its own CLAUDE.md\r
- **Do** include: task description, acceptance criteria, relevant context (file paths, decisions)\r
- **Do** include task-specific constraints if any (e.g., "don't change the API contract")\r
\r
### When executing directly (no ACP)\r
Load standards once per session, first match wins:\r
1. `shared/knowledge/tech-standards.md` (team-level, if exists)\r
2. Built-in defaults (below, if nothing exists)\r
\r
### Built-in Defaults (fallback for direct execution)\r
- KISS + SOLID + DRY, research before modifying\r
- Methods \x3C200 lines, follow existing architecture\r
- No hardcoded secrets, minimal change scope, clear commits\r
- DB changes via SQL scripts, new tech requires confirmation\r
\r
## Simple Tasks\r
\r
1. Read target file(s) (standards already loaded per above)\r
2. [memory] Recall related decisions\r
3. Execute with read/write/edit/exec\r
4. [memory] Record what changed and why\r
\r
## Medium/Complex Tasks\r
\r
### Step 1: Build Context File\r
\r
Write to `\x3Cproject>/.openclaw/context-\x3Ctask-id>.md` (ACP reads from disk, not from prompt):\r
\r
```bash\r
# [qmd] or grep: find relevant code\r
# [memory] recall + lessons: find past decisions\r
# Standards already loaded (see "Coding Standards Loading" above)\r
# Write context file with 3-5 key rules from loaded standards — do NOT paste full file\r
```\r
\r
Minimal context file structure:\r
```markdown\r
# Task Context: \x3Cid>\r
## Project — path, stack, architecture style\r
## Relevant Code — file paths + brief descriptions from qmd/grep\r
## History — past decisions/lessons from memory (if any)\r
## Long-term Knowledge Boundary — durable facts or decisions worth preserving outside this file; if none, say "none"\r
## Constraints — task-specific rules only (NOT general coding standards — Claude Code has CLAUDE.md)\r
```\r
\r
Full template with examples → see [references/prompt-templates.md](references/prompt-templates.md)\r
\r
### Step 2: Lean Prompt\r
\r
Use the smallest prompt that still preserves correctness. Start with the task and acceptance criteria. Add only the minimum extra header needed for the run to be unambiguous.\r
\r
```\r
Project: \x3Cpath> | Stack: \x3Ce.g. Laravel 10 + React 18 + TS>\r
Context file: .openclaw/context-\x3Ctask-id>.md (read it first if it exists)\r
\r
## Task\r
\x3Cdescription>\r
\r
## Acceptance Criteria\r
- [ ] \x3Ccriteria>\r
- [ ] Tests pass, no unrelated changes, clean code\r
\r
Before finishing: run linter + tests, include results.\r
When done: openclaw system event --text "Done: \x3Csummary>" --mode now\r
```\r
\r
### Step 3: Spawn (use detected ACP_MODE)\r
\r
```\r
# ACP_MODE = "spawn", medium task:\r
sessions_spawn(runtime: "acp", agentId: "claude", task: \x3Cprompt>, cwd: \x3Cproject-dir>, mode: "run")\r
\r
# Complex task primary path:\r
Use the existing implementation session + context file + serial follow-ups.\r
If ACP is helpful, prefer bounded Claude `run` invocations or direct acpx commands inside the project directory.\r
\r
# ACP_MODE = "acpx":\r
exec: cd \x3Cproject-dir> && acpx claude exec "\x3Cprompt>"\r
\r
# ACP_MODE = "direct":\r
Skip spawn, execute directly with read/write/edit/exec\r
```\r
\r
### run vs sustained execution\r
- **run**: one-shot, bounded Claude ACP coding task\r
- **sustained execution**: for repeated follow-up on the same code chain, keep working in the existing implementation conversation/session and persist context on disk; do not rely on IM-bound ACP thread/session support\r
- **direct fallback**: when ACP is unavailable or unstable, execute directly with read/write/edit/exec instead of stalling\r
\r
### Step 4: Fallback Detection\r
\r
| Condition | Action |\r
|-----------|--------|\r
| Spawn failed / timeout | → Direct execution |\r
| Empty output / no file changes | → Direct execution |\r
| Partial completion | → Agent fixes remaining |\r
\r
Fallback: [memory] log failure → agent executes directly → report to user.\r
\r
**Never silently fail.** Always complete or report why not.\r
\r
### Step 5: Verify & Record\r
\r
1. Check acceptance criteria + run tests\r
2. Verify the final result against the task, acceptance criteria, and any explicit no-go constraints before declaring done\r
3. [memory] Record: what changed, decisions, lessons; only promote durable facts to long-term memory\r
4. Clean up context file\r
\r
## Complex Tasks\r
\r
Read [references/complex-tasks.md](references/complex-tasks.md) **only for Complex-level tasks** — roles, QA isolation, parallel strategies, RESEARCH→PLAN→EXECUTE→REVIEW flow.\r
\r
## Context Reuse (Token Savings)\r
\r
- **Context file on disk** instead of prompt embedding → major token savings per spawn\r
- **Simple tasks stay direct**: don't pay ACP/session overhead for tiny edits\r
- **Medium tasks use `run`**: cheaper than opening a persistent session\r
- **Complex tasks use sustained session continuity**: preserve continuity through the existing implementation session plus context files\r
- **Serial follow-ups**: continue in the same implementation conversation and refresh the on-disk context file as the task evolves\r
- **[qmd]**: precision search → only relevant snippets in context file\r
- **No standards in ACP prompts**: Claude Code reads its own CLAUDE.md/.cursorrules — don't duplicate\r
- **ACP prompt stays lean**: task + acceptance criteria + context file path. No generic rules\r
- **Direct execution**: load team standards once per session, not per task\r
\r
## Memory Integration\r
\r
**[memory] Before:** recall related work + lessons for context file.\r
**[memory] After:** record what changed, decisions made, lessons learned.\r
**Cross-session:** agent remembers across sessions; Claude Code doesn't. This is the core advantage.\r
\r
## Parallel Execution Boundaries\r
\r
Parallelism is allowed in the current production path, but only with explicit boundaries.\r
\r
- **Hard cap: 5 concurrent work units total**\r
- Active context files per project must stay **\x3C= 60**\r
- Total context files per project should stay **\x3C= 100** across active + archive\r
- Define boundaries first: by project, by module, by task stage, or by owner\r
- Never let two work units modify the same code chain, same file cluster, or same acceptance scope\r
- Parallel work must have a merge owner and an acceptance owner before execution starts\r
- If boundaries are fuzzy, collapse back to sequential execution\r
\r
Recommended shape:\r
- 1 coordinating implementation session\r
- up to 4 additional bounded work units (Claude ACP `run`, direct acpx, or direct execution)\r
\r
Good parallel cases:\r
- independent products\r
- different modules with separate files and acceptance criteria\r
- one bounded Claude ACP `run` while direct tasks proceed elsewhere\r
\r
Bad parallel cases:\r
- same bug chain\r
- same module with shared intermediate state\r
- duplicate research on the same problem\r
- implementation and delivery work both editing the same area\r
\r
See [references/prompt-templates.md](references/prompt-templates.md) for multi-project examples.\r
\r
## Smart Retry (max 3)\r
\r
1. Analyze failure → 2. Adjust prompt → 3. Retry improved → 4. Max 3 then fallback/report.\r
Each retry must be meaningfully different.\r
\r
## Progress Updates\r
\r
Start → 1 short message. Error → immediate report. Completion → summary. Fallback → explain.\r
\r
## Safety\r
\r
- **Never spawn in ~/.openclaw/** — coding agents may damage config\r
- **Always inspect and confirm the intended working directory before spawning or writing**; then set `cwd` explicitly to the project directory\r
- **Review before commit** — especially complex tasks\r
- **Kill runaway sessions** — timeout or nonsensical output\r
\r
## See Also\r
- [references/complex-tasks.md](references/complex-tasks.md) — roles, QA, parallel (Complex only)\r
- [references/prompt-templates.md](references/prompt-templates.md) — context file template, prompt examples\r
Usage Guidance
This skill is coherent for a coding-execution role: it will read and write project files (creates .openclaw/context-*.md, updates active-tasks.json), may spawn ACP sessions (prefers Claude) or run local commands and tests as a fallback, and will call optional local CLIs if present (qmd, acpx, smart-agent-memory). Before installing, confirm you trust agents that will be given this skill (they can modify your repo and run commands), ensure sensitive files are excluded or protected (e.g., don’t store secrets in project files), and verify the presence and integrity of any optional local CLIs the skill might invoke. If you want stricter controls, restrict the agent's repository/command permissions or avoid granting this skill to agents allowed to operate autonomously.
Capability Analysis
Type: OpenClaw Skill Name: coding-lead Version: 3.0.6 The coding-lead skill bundle provides a structured and safety-conscious framework for an AI agent to manage software development tasks. It includes explicit safety guidelines, such as prohibiting execution within configuration directories (~/.openclaw/) and requiring verification against acceptance criteria before completion. The logic for tool detection (ACP, acpx) and context file management (stored in .openclaw/ within project directories) is consistent with the stated purpose of coordinating complex coding workflows without evidence of malicious intent or data exfiltration.
Capability Assessment
Purpose & Capability
Name/description (coding execution) match the instructions: the SKILL.md describes how to classify tasks, detect ACP/acpx/qmd/smart-agent-memory, spawn ACP sessions or fall back to direct file edits/exec. The required capabilities (file I/O, spawning ACP or local acpx, running linters/tests) are appropriate for a coding-execution skill.
Instruction Scope
Instructions explicitly allow reading/writing project files (.openclaw/context-*.md, active-tasks.json), launching ACP sessions or acpx, and running local commands (linters, tests, php artisan, node memory CLI) — all expected for code-execution. This grants the agent broad local file and command execution scope (intended), so users should expect the skill to modify project files and run commands if invoked.
Install Mechanism
Instruction-only skill with no install spec and no code files. No downloads or archive extraction are requested, so there is minimal install-surface risk.
Credentials
The skill declares no required env vars or credentials. It references optional local tools and paths (e.g., ~/.openclaw/skills/smart-agent-memory/scripts/memory-cli.js, acpx CLI, qmd). Those references are proportional to its role and marked as optional/fallback.
Persistence & Privilege
always:false (not forced into every agent run) and normal autonomous invocation settings. The skill writes and reads project-scoped context files under .openclaw and may record to an optional smart-agent-memory CLI; it does not request elevated or cross-skill config modifications.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install coding-lead
  3. After installation, invoke the skill by name or use /coding-lead
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v3.0.6
No code or skill changes in this version. - No file or documentation changes detected. - Behavior and configuration remain unchanged from previous release.
v3.0.5
coding-lead 3.0.5 - Broadened applicability: skill now applies to any implementation-focused agent, not just fullstack-dev. - Clarified multi-agent dispatch: added new multi-agent routing rules based on target agent's configuration (`acp` vs. `subagent`). - Updated language to replace "fullstack-dev" with "implementation" for generality. - Improved instructions on how to determine dispatch method by checking `runtime.type` in openclaw.json. - All other core workflows, tool detection, and fallback logic remain unchanged.
v3.0.2
- Documentation (README.md) updated for clarity and guidance. - No changes to logic or code; SKILL.md unchanged. - No new features or bug fixes in this version.
v3.0.1
**Broader skill scope and language for multi-agent teams.** - Skill instructions are now agent-agnostic: works for any implementation agent, not only fullstack-dev. - README and skill description remove team ownership specifics; clarify that coding-lead defines "how to code" rather than "who codes". - Wording updates to support both multi-agent and single-agent setups. - No functional/process changes to coding flow, routing logic, detection steps, or stack choices.
v3.0.0
coding-lead v3.0.0 - Increased context file cap: active context files per project raised from 10 to 60, total (active + archive) window to 100. - Clarified cache handling for ACP detection: notes are now more minimal and refreshed only as needed. - ACP agent policy section updated: now always defaults to Claude unless another approved agent is explicitly named. - Added README.md for better documentation and onboarding. - Minor adjustments and clarifications throughout references and task handling for improved accuracy and maintainability.
v2.0.2
Summary: This version updates routing and coding execution policy to clarify that only "claude" is used for ACP coding, prioritizing direct execution and context files over ACP session mode. - Changed production path to claude-only for ACP coding, removing codex/other agents from the execution policy. - Medium/complex tasks now explicitly rely on direct acpx use or session continuity/context files, not persistent ACP "session" mode. - Clarified context file naming, re-use, and cleanup procedures. - Added rule priority section to resolve overlaps between skill, agent, and team docs. - Simplified and updated ACP agent routing logic and project continuity handling.
v2.0.1
coding-lead 2.0.1 — Switches from team-wide to fullstack-dev coding execution focus. - Now clarifies this skill is for `fullstack-dev` agent execution, not multi-agent routing. - Refined task complexity handling: Medium tasks use ACP "run", Complex uses ACP "session"; simple stays direct. - Explicitly discourages opening ACP for simple/local-scope tasks in dual-dev workflows. - Adds "run vs session" explanation for ACP mode routing; emphasizes session use for continuity. - Rewords and reorganizes documentation for more precise, agent-specific guidance.
v1.1.2
Smart coding router: Simple→direct, Medium/Complex→ACP(Claude Code/Codex) with 30s timeout auto-fallback. ACP detection: sessions_spawn→acpx CLI→direct exec. Context-file-on-disk for token savings. Integrates qmd, smart-agent-memory. Two-layer standards: project-level(Claude Code owns) + team-level(OpenClaw owns).
v1.1.0
Smart coding router: Simple→direct, Medium/Complex→ACP(Claude Code/Codex) with 30s timeout auto-fallback. ACP detection: sessions_spawn→acpx CLI→direct exec. Context-file-on-disk for token savings. Integrates qmd, smart-agent-memory. Two-layer standards: project-level(Claude Code owns) + team-level(OpenClaw owns).
v1.0.30
Initial release: smart coding skill that routes tasks by complexity — simple tasks execute directly, medium/complex tasks spawn Claude Code via ACP with full project context and memory integration
v1.0.22
Initial release: smart coding skill that routes tasks by complexity — simple tasks execute directly, medium/complex tasks spawn Claude Code via ACP with full project context and memory integration
v1.0.21
Initial release: smart coding skill that routes tasks by complexity — simple tasks execute directly, medium/complex tasks spawn Claude Code via ACP with full project context and memory integration
v1.0.19
Initial release: smart coding skill that routes tasks by complexity — simple tasks execute directly, medium/complex tasks spawn Claude Code via ACP with full project context and memory integration
v1.0.17
Initial release: smart coding skill that routes tasks by complexity — simple tasks execute directly, medium/complex tasks spawn Claude Code via ACP with full project context and memory integration
v1.0.16
Initial release: smart coding skill that routes tasks by complexity — simple tasks execute directly, medium/complex tasks spawn Claude Code via ACP with full project context and memory integration
v1.0.15
Initial release: smart coding skill that routes tasks by complexity — simple tasks execute directly, medium/complex tasks spawn Claude Code via ACP with full project context and memory integration
v1.0.14
Initial release: smart coding skill that routes tasks by complexity — simple tasks execute directly, medium/complex tasks spawn Claude Code via ACP with full project context and memory integration
v1.0.13
Initial release: smart coding skill that routes tasks by complexity — simple tasks execute directly, medium/complex tasks spawn Claude Code via ACP with full project context and memory integration
v1.0.12
Initial release: smart coding skill that routes tasks by complexity — simple tasks execute directly, medium/complex tasks spawn Claude Code via ACP with full project context and memory integration
v1.0.11
Initial release: smart coding skill that routes tasks by complexity — simple tasks execute directly, medium/complex tasks spawn Claude Code via ACP with full project context and memory integration
Metadata
Slug coding-lead
Version 3.0.6
License MIT-0
All-time Installs 14
Active Installs 14
Total Versions 31
Frequently Asked Questions

What is Coding Lead?

Coding execution skill for any implementation-focused agent. Current production path is claude-only with simple tasks direct, medium tasks preferring ACP run... It is an AI Agent Skill for Claude Code / OpenClaw, with 1760 downloads so far.

How do I install Coding Lead?

Run "/install coding-lead" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Coding Lead free?

Yes, Coding Lead is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Coding Lead support?

Coding Lead is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Coding Lead?

It is built and maintained by beyound87 (@beyound87); the current version is v3.0.6.

💬 Comments