Senior Staff Engineer skill for AI coding agents. Enforces simplicity, reuse-first, minimal-diff changes, testability, and Clean Code discipline. Use this sk...
文档
graph
试用Execute coding work as a cached dependency graph with local quality gates, parallel agents, localized retries, resume support, token telemetry, and an interactive report. Use for /graph requests.
它能做什么
Execute coding work as a cached dependency graph with local quality gates, parallel agents, localized retries, resume support, token telemetry, and an interactive report. Use for /graph requests.
技能文档
Graph execution
If .graph/graph.py is missing from the workspace, bootstrap the shared runtime first with npx graph-skill install --target openclaw.
Sizing: estimate F = files to change, D = open design decisions, R = cross-cutting risk (auth, shared utilities, public APIs, migrations). S (F ≤ 1, D = 0, no R): one implementation node + quality, no extra agents. M (F 2–4 or D = 1, no R): 2–3 nodes, plan inline, at most one reviewer agent. L (F ≥ 5, D ≥ 2, or R): full protocol with planner, 2–6 workers (one per independent file-scope cluster), and reviewer. Never spawn more workers than independent clusters. State the tier and F/D/R in one line before building the graph. The full protocol below is for M and L.
- Initialize with
python3 .graph/graph.py init "" --host openclaw. For/graph --resume, runpython3 .graph/graph.py resumeand continue the returned run. - Record planner, plan-review, implementation, validation, and synthesis nodes using
.graph/graph.py node. Each update prints a live ASCII graph and refreshes the local HTML graph — both rendered locally, no model tokens. Use.graph/graph.py treeto reprint it on demand. - Before a model call, check
.graph/graph.py cache-get --files. A cache hit replaces that model call. - Split only independent work into bounded, non-overlapping agents.
- Run
.graph/graph.py qualitybefore reviewer agents. Prefer tests, lint, type checking, and other deterministic checks over extra model calls. - If a node fails, use
.graph/graph.py retry-plan --include-dependentsand rerun only listed nodes. Maximum two retries per node. - Store successful reusable node output with
.graph/graph.py cache-put. - Record token usage only when OpenClaw exposes it. Do not estimate unless clearly marked.
- Finish with
.graph/graph.py finish --status complete. It prints the final run summary (node graph, checks, files, retries, cache hits, duration, report path); include it verbatim in your reply along with the implementation result. - Only when explicitly requested, commit through
.graph/graph.py commit --yes.
Never push, deploy, or create a PR without explicit instruction.
相关技能
Delegate coding, repository analysis, file edits, test runs, or code review to the local Codex CLI without embedding an OpenAI API key. This skill was created to work with ChatGPT/Codex enterprise accounts that may not have the same level of API access. Invokes codex exec with existing ChatGPT/Codex CLI authentication and returns Codex's final output.
Use when an AI coding agent needs bounded development loops, persistent project-local Docs/ state, context budgeting, environment escalation rules, safe stop...
Improves the quality of project code whilst boosting development efficiency; suitable for agents such as ChatGPT, Claude and OpenCode
Route and sequence coding tasks by selecting and orchestrating code exploration, planning, writing, debugging, refactoring, security, safe commands, and Git...
Check coding-model API quality, capability fit, and drift with LT-lite and B3IT-lite. Use when Codex needs to verify whether an OpenAI/OpenAI-compatible/Anth...