Canonical source for a cross-editor agent operating system built on the GOTCHA framework.
agents-md is the project-local control plane for high-quality agent behavior:
- canonical rule body (
src/gotcha.md) - pattern and ecosystem database (
docs/) - operational scripts (
scripts/) - reusable templates (
templates/) - roadmap and experiments (
ROADMAP.md,ideas/)
This repo is intentionally editor-agnostic and aligns behavior across Windsurf, Claude, and Codex.
- Goals: explicit work routing and workflow selection
- Orchestration: the agent decision layer
- Tools: deterministic scripts and MCP operations
- Context: static reference material
- Hard prompts: focused task templates
- Args: runtime behavior settings
Core principle: push reliability into deterministic tooling, keep reasoning flexibility in orchestration.
agents-md/
├── src/
│ └── gotcha.md
├── docs/
│ ├── agent-database.md
│ ├── agent-patterns.md
│ ├── agent-upgrade-roadmap.md
│ ├── hook-reference.md
│ └── ...
├── scripts/
│ ├── build-rule-artifacts.sh
│ ├── validate-rules.sh
│ ├── check-links.sh
│ ├── check-local-drift.sh
│ ├── sniper-config-template.yaml
│ ├── pumpfun-bot-checklist.sh
│ └── sniper-journal-summary.sh
├── skills/
│ ├── README.md
│ ├── solana-anchor-program-dev.md
│ ├── solana-client-kit-and-wallets.md
│ ├── solana-security-and-audit.md
│ ├── evm-smart-contract-dev.md
│ ├── defi-protocol-engineering.md
│ ├── token-launch-and-memecoin-ops.md
│ ├── onchain-trading-and-flow-analysis.md
│ ├── memecoin-trading-risk-playbook.md
│ ├── pumpfun-launch-and-trading-automation.md
│ ├── solana-terminal-workflows-axiom-padre-nova.md
│ └── solana-sniper-bot-scripts-and-ops.md
├── templates/
├── ideas/
├── ROADMAP.md
└── CHANGELOG.md
# Validate rules and check compatibility
./scripts/validate-comprehensive.sh
# Run deterministic governance pipeline (strict -> drift -> build -> strict drift)
./scripts/run-governance.sh
# Build local artifacts
./scripts/build-rule-artifacts.sh
# Build specific artifacts
./scripts/build-rule-artifacts.sh windsurf claude
# Check artifact status
./scripts/build-rule-artifacts.sh --list# Strict repo checks (recommended before commit)
make check
# Full deterministic governance pipeline
make governance-run
# Health report with timestamped logs
make health- If artifacts drift, run
make governance-runand re-check withmake drift-check-strict. - If shell scripts fail in CI, run
bash -n scripts/*.shlocally before committing. - If optional tools are missing, run
./scripts/health-check.shto see degraded-safe diagnostics.
- Canonical rule body:
src/gotcha.mdonly. - Local artifacts are generated at
dist/rules/*.md. - Do not edit generated artifacts directly; rebuild via
scripts/build-rule-artifacts.shorscripts/run-governance.sh. - Pre-commit guard rejects artifact-only edits without canonical update.
- This repository does not manage personal editor, AI agent, or global git-hook files under
~.
- Comprehensive validation:
scripts/validate-comprehensive.sh- Rule structure and integrity
- Local artifact compatibility
- Version drift detection
- Artifact accessibility
- Content integrity
- Individual checks:
scripts/validate-rules.sh,scripts/check-links.sh,scripts/check-local-drift.sh - Automated hooks: Pre-commit and CI/CD validation
- Runtime/system health:
scripts/health-check.sh(writes timestamped logs tologs/health/) - Skill drift monitoring:
scripts/check-skill-registry-drift.shagainstskills/registry.tsv
All scripts degrade safely when optional dependencies are missing.
dist/rules/windsurf.mddist/rules/claude.mddist/rules/codex.md
- Run local validation:
./scripts/validate-comprehensive.sh- Create branch and commit logically grouped changes (pre-commit hooks run automatically).
- Open PR using
.github/pull_request_template.md. - CI (
.github/workflows/ci.yml) runs four jobs in sequence:lint—shellcheck,actionlint,markdownlint-cli2validate— rule structure, comprehensive validation, link and drift checksbuild— rebuild local artifacts and verify strict driftsecurity-scan—trufflehogon PR diffs for verified/unknown secrets
- Ensure all CI checks pass.
- Merge and update
CHANGELOG.md.
chmod +x scripts/pumpfun-bot-checklist.sh scripts/sniper-journal-summary.sh
cp scripts/sniper-config-template.yaml sniper-config.yaml
./scripts/pumpfun-bot-checklist.sh ./sniper-config.yaml
# After trading:
./scripts/sniper-journal-summary.sh ./logs/sniper-events.jsonldocs/agent-database.md: curated inventory and source mapdocs/agent-patterns.md: normalized reusable patternsdocs/hook-reference.md: hook behavior and portability notesdocs/hook-routing.md: global/project/repo hook ownership and routingdocs/editor-alignment-strategy.md: artifact packaging strategy by editordocs/hook-portability-spec.md: generic hook contract modeldocs/goals-manifest.md: task-to-asset routing matrixdocs/security-scan-spec.md: config security scanner taxonomy and output schemadocs/orchestration-dag-spec.md: dependency-graph orchestration and quality-gate contractdocs/sniper-runbook.md: sniper bot preflight, runtime monitoring, and incident playbooksskills/README.md: crypto/web3/Solana skill index and trigger map
See CHANGELOG.md for release history and unreleased changes.