Evidence-grounded, lightweight guardrails for strong coding agents—Fact, Plan, Execute, Review, and Handoff.
개요
An evidence ground and lightweight rails for strong coding models. Constrain evidence, stages, and decision boundaries—not engineering judgment. Fact → Plan → Execute · stable-artifact Review · safe Handoff Codex · Claude Code · Agent Skills compatible hosts Strong coding models rarely need another tutorial on how to code. They need a reliable ground for what is true, plus lightweight rails around when to proceed, what they may decide, and how stale context is kept out of the next judgment. GroundRail is built for strong foundation models such as Sol, Claude Opus 4.8, and GLM-5.3 that have already internalized much of the coding process. It does not reteach repository reading, task decomposition, testing, or implementation, and it does not replace model judgment with an exhaustive operating manual. is the traceable evidence beneath a decision. is the minimum constraint around stage order, decision ownership, review, and context.
README
GroundRail Skill
An evidence ground and lightweight rails for strong coding models.
Constrain evidence, stages, and decision boundaries—not engineering judgment.
English · 简体中文
Fact → Plan → Execute · stable-artifact Review · safe Handoff
Codex · Claude Code · Agent Skills compatible hosts
🚧 Why GroundRail?
Strong coding models rarely need another tutorial on how to code. They need a reliable ground for what is true, plus lightweight rails around when to proceed, what they may decide, and how stale context is kept out of the next judgment.
GroundRail is built for strong foundation models such as Sol, Claude Opus 4.8, and GLM-5.3 that have already internalized much of the coding process. It does not reteach repository reading, task decomposition, testing, or implementation, and it does not replace model judgment with an exhaustive operating manual.
Ground is the traceable evidence beneath a decision. Rail is the minimum constraint around stage order, decision ownership, review, and context. Everything between those boundaries—repository comprehension, implementation design, reuse, and routine engineering detail—stays with the model.
⭕ Five common derailments
Five failures remain common even when the code itself is strong:
01· Partial evidence. A slice of code becomes the whole story. Rail: establish a traceable, risk-matchedFactbefore proposing.
02· Hardened assumptions. A guess crosses stages until it looks certain. Rail: separate observation, conclusion, and action; keep unknowns unknown.
03· Decision drift. Engineering autonomy becomes product or risk authority. Rail: the model owns implementation; the user owns consequential tradeoffs.
04· Review noise. Style debates hide delivery-critical defects. Rail: review stable artifacts in clean context and bound findings with P0/P1/P2.
05· Context drag. Old exploration steers new judgment. Rail: externalize state through artifacts, bounded delegation, and Handoff.
GroundRail steps in only at these failure boundaries. Repository investigation, planning, implementation, code-review, and handoff requests can route to the Skill automatically; invoke it explicitly with $groundrail in Codex or /groundrail in Claude Code. Ground the agent in facts, then use the fewest rails that let a strong model keep exercising its ability.
🧭 How it works
GroundRail separates what was observed, what was concluded, and what may be changed:
Fact → Review → Plan → Review → user approval → Execute → Review
This is a risk-aware path, not a document factory. A low-risk task may keep Fact and Plan inline; a complex, long-running, multi-agent, or cross-session task may persist them as stable artifacts.
1. Fact — establish what is true
Collect the minimum sufficient evidence for the risk. Important observations stay traceable; negative results name their search boundary; unknowns remain gaps instead of becoming plausible answers.
2. Plan — turn evidence into the smallest coherent change
Separate evidence-backed conclusions from hypotheses, identify existing code to reuse, and define focused verification. Product behavior, scope, cost, safety, and irreversible tradeoffs stay with the user; routine engineering choices stay with the model.
3. Execute — act inside an authorized boundary
Implementation starts from a reviewed and authorized Plan. The model may code, verify, and simplify touched areas autonomously, but it does not expand scope. Material new facts reopen Fact; a major approach change reopens Plan and authorization.
4. Review — challenge stable artifacts, not every save
A clean-context Reviewer checks Contract / Intent, Correctness / Safety, Repository Shape / Code health, and Verification. Findings are bounded by severity: P0 blocks, P1 identifies important defects or omissions, and P2 is limited to three low-impact improvements. The Reviewer supplies evidence; the main agent arbitrates it.
5. Handoff — externalize state without copying the conversation
The main agent retains judgment and synthesis while bounded heavy work can be delegated. Cross-session Handoff references existing plans, diffs, commits, and research instead of duplicating them, preserving the next context for decisions rather than stale implementation history.
⚙️ Installation
GroundRail follows the open Agent Skills structure, so the same groundrail/SKILL.md works in Codex and Claude Code. It uses only the standard name, description, and Markdown instructions. Optional Codex UI metadata lives separately in groundrail/agents/openai.yaml and does not affect Claude Code.
Quick install
npx skills add PeterLeeXX/GroundRail --skill groundrail -a codex -a claude-code -g --copy -y
Recommended: install for Codex and Claude Code
Create both hosts’ user-level Skill directories, then install with the Skills CLI:
mkdir -p "$HOME/.agents/skills" "$HOME/.claude/skills"
npx skills add PeterLeeXX/GroundRail \
--skill groundrail \
--agent codex \
--agent claude-code \
--global \
--copy \
--yes
To install for only one host:
npx skills add PeterLeeXX/GroundRail --skill groundrail --agent codex --global --copy --yes
npx skills add PeterLeeXX/GroundRail --skill groundrail --agent claude-code --global --copy --yes
Verify that both hosts recognize the Skill:
npx skills list --global --agent codex --agent claude-code
If the CLI reports Agents: not linked, or GroundRail is not visible in a host, use the native-directory installation below. This also avoids linking differences between CLI versions.
Native-directory installation
Clone the repository first:
git clone --depth 1 https://github.com/PeterLeeXX/GroundRail.git
Codex uses ~/.agents/skills/ for user-level Skills:
mkdir -p "$HOME/.agents/skills/groundrail"
cp -R GroundRail/groundrail/. "$HOME/.agents/skills/groundrail/"
Claude Code uses ~/.claude/skills/ for user-level Skills:
mkdir -p "$HOME/.claude/skills/groundrail"
cp -R GroundRail/groundrail/. "$HOME/.claude/skills/groundrail/"
For project-level installation, use the same structure under .agents/skills/groundrail/ and .claude/skills/groundrail/ at the repository root.
Codex normally detects Skill changes automatically. If GroundRail does not appear, restart Codex, check /skills, or invoke $groundrail. Claude Code watches existing Skill directories; if this installation created the top-level .claude/skills/ directory, restart Claude Code and invoke /groundrail. Both hosts can also trigger GroundRail from a matching natural-language request, and unrelated conversations are left alone.
💬 Usage
The following requests do not need to name Codex’s $groundrail or Claude Code’s /groundrail explicitly:
Investigate without modifying code:
Investigate this repository issue. Stop after Fact and do not modify code.
Plan from an existing fact artifact:
Review ./facts.md. If it passes, create plan.md. Do not implement.
Execute an existing plan:
Review ./plan.md. Confirm the facts and plan, then request my authorization to implement it.
Review an existing diff:
Review the current diff. Report P0 / P1 / P2 findings. Read-only; do not fix.
Hand off the current task:
Hand this task to the next session, focusing on the failing verification, and create a safe handoff document.
🎯 Where it fits
GroundRail is most useful where capability is already strong but boundaries still drift:
- existing-repository changes spanning several modules, configuration files, or data sources;
- work where versions, runtime state, or external contracts can invalidate assumptions;
- tasks that should stop after an investigation or implementation plan;
- work handed across sessions or agents where context pollution matters;
- tasks where product, scope, and risk decisions must remain with the user.
It does not replace or suppress specialist security, performance, testing, UI, or release Skills. Small, low-risk tasks with clear facts do not need documents created solely for process compliance; high-risk work or stricter repository rules can layer on the relevant specialist constraints.
⚖️ Why GroundRail fits today’s strong models better than Superpowers
Superpowers and GroundRail answer two different questions about reliable agentic development:
Superpowers asks: How do we make an agent follow a dependable development method?
GroundRail asks: Once the model already knows the method, which boundaries still need protection?
🧠 The capability shift
When models needed more procedural support, encode the method. Superpowers provides a complete methodology: brainstorming, worktrees, highly detailed plans, strict red-green-refactor TDD, task-level execution and review, and branch finishing.
With today’s strongest models, protect the judgment. They can already inspect unfamiliar repositories, choose implementations, reuse abstractions, test focused behavior, and revise an approach. Re-encoding those abilities as permanent step-by-step instructions consumes context and turns useful judgment into workflow compliance.
🔀 What changes in practice
- Planning: exhaustive implementation script → smallest coherent statement of intent, evidence, boundaries, and verification.
- Testing: one universal method → verification matched to the actual failure risk.
- Delegation: task-level subagents or batch checkpoints → delegate only bounded work that earns its context cost.
- Review: repeated process checkpoints → clean-context review of stable artifacts where findings can still change the outcome.
- Context: keep the method present → externalize task state so the main context remains available for judgment.
🎯 The better trade for strong models
Remove instructions the model no longer needs. Tighten the boundaries it still cannot safely infer.
Superpowers controls more of how development is performed. GroundRail controls what may become fact, when work may advance, who owns consequential decisions, and what context survives. That means less standing process where capability is already high, and harder gates where failure remains expensive.
Superpowers remains a strong choice for teams that want one mandatory, end-to-end methodology. GroundRail is the better fit when the model is already capable and the goal is to constrain drift without constraining intelligence.
🤝 Contributing
Open an Issue for evidence-coverage gaps, incorrect gates, or review loops that add no value. Useful proposals include a reproducible task or clear before/after behavior. New standing rules should solve an observed failure rather than make the workflow look more complete.
GroundRail follows the Agent Skills standard and is available under the MIT License.
추천 도구
다른 키워드를 입력하거나 필터를 제거해 보세요.
설치
npx skillfish add peterleexx/groundrail