mirror of
https://github.com/boshu2/agentops.git
synced 2026-09-14 15:08:13 +08:00
cc6750c4e8
## Docs site — boshu2.github.io/agentops
- Replace Jekyll minima with MkDocs Material (slate dark palette default)
- Landing hero scoped to .landing-hero (no gradient bleed on inner pages)
- Section landings (getting-started, architecture, reference, contracts, levels) with narrative ledes
- Generate skill catalog + per-skill pages from skills/*/SKILL.md at build
- Generate CLI reference from cli/docs/ at build (fails build on missing source)
- Fix every internal link via one-shot migration (scripts/migrations/2026-04-19-fix-docs-links.py)
- Wire mkdocs build --strict into pre-push gate (Check 25a)
- Replace .github/workflows/pages.yml with .github/workflows/docs.yml (actions/deploy-pages)
- README + docs/CONTRIBUTING updated with docs-build toolchain on-ramp
- tests/docs/validate-links.sh patched to understand mkdocs-generated paths
## RPI orchestrator strict-delegation contract
- Strict sub-skill delegation is now the default for /rpi, /discovery, /validation. No --full flag — always on.
- Canonical contract in skills/shared/references/strict-delegation-contract.md (plus Codex mirror)
- Forged learning with detection phrases + corrective actions (ao-inject-ready)
- Rename --no-lifecycle -> --no-scaffold in /discovery (Claude + Codex) with deprecation alias through v2.40.0
- Harden inline-work hotspots with orchestrator-owned markers in /crank STEPS 3a.3, 6.5, 8.7 + Inline Work Policy footer
- Flag consistency: --auto and --interactive scopes documented; --complexity syntax formalized
- CHANGELOG [Unreleased] documents + scaffolds; runtime hook enforcement explicitly deferred
## fix(hooks): go-test-precommit skips when no Go files staged
- Previously ran go vet + go build unconditionally, blocking non-Go commits when Go toolchain was missing or at a different version
- Now checks staged diff and exits cleanly if no *.go or go.{mod,sum,work} files are staged
- Applied to both hooks/ (source) and cli/embedded/hooks/ (synced)
Provenance: full RPI lifecycle with strict delegation at every phase boundary (Phase 1 Skill(discovery) -> Phase 2 Skill(crank) -> Phase 3 Skill(validation) -> Skill(vibe), Skill(post-mortem), Skill(retro)).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Coding Standards
Skills Integration
These standards are also available as a library skill in domain-kit:
plugins/domain-kit/skills/standards/references/
├── python.md
├── go.md
├── typescript.md
├── shell.md
├── yaml.md
├── json.md
├── rust.md
├── markdown.md
└── openai.md (+ related OpenAI references)
Skills like /bug-hunt and /complexity depend on the standards library for consistent language-specific guidance.
Standards Index
| Language/Format | Document | Gate | Pre-commit | AI-Friendly |
|---|---|---|---|---|
| Python | python-style-guide.md | CC ≤ 10 | ruff | ★★★★★ |
| Shell/Bash | shell-script-standards.md | shellcheck | shellcheck | ★★★★★ |
| Go | golang-style-guide.md | golangci-lint, CC ≤ 10 | - | ★★★★★ |
| Rust | — | cargo clippy, CC ≤ 10 | - | ★★★★★ |
| TypeScript | typescript-standards.md | tsc --strict | eslint | ★★★★★ |
| YAML/Helm | yaml-helm-standards.md | yamllint | yamllint | ★★★★★ |
| Markdown | markdown-style-guide.md | markdownlint | - | ★★★★★ |
| JSON/JSONL | json-jsonl-standards.md | jq/prettier | - | ★★★★★ |
| Documentation Tags | tag-vocabulary.md | - | - | ★★★★★ |
What Makes These Standards AI-Agent-Friendly
Every standard in this repository is optimized for AI agent execution:
| Feature | Implementation |
|---|---|
| Tables over prose | Scannable, parallel parsing |
| Decision trees | Executable if/then logic |
| Common Errors tables | Symptom → Cause → Fix |
| Anti-Patterns (named) | Recognizable error states |
| AI Agent Guidelines | ALWAYS/NEVER rules |
| Explicit thresholds | Numbers, not "be careful" |
| Copy-paste examples | Ready to use, not fragments |
Complexity Requirements
All functions MUST meet complexity thresholds:
| Language | Tool | Threshold | Style Guide |
|---|---|---|---|
| Python | radon/xenon | CC ≤ 10 | Yes |
| Go | gocyclo | CC ≤ 10 | Yes |
| Rust | cargo clippy | Clippy warnings = 0 | — |
| Shell | shellcheck | Pass all | Yes |
| TypeScript | tsc --strict | No errors | Yes |
| YAML/Helm | yamllint | Pass all | Yes |
Pre-commit Enforcement
Standards are enforced via pre-commit hooks where available.
Quick Start
# Install hooks (one-time)
pre-commit install
# Run manually
pre-commit run --all-files
# Or skip hooks (not recommended)
git commit --no-verify
Manual Validation Commands
| Language | Command |
|---|---|
| Python | ruff check scripts/ && xenon scripts/ --max-absolute B |
| Go | golangci-lint run ./... && gocyclo -over 10 ./... |
| Rust | cargo clippy --all-targets --all-features -- -D warnings && cargo test |
| Shell | shellcheck scripts/*.sh |
| TypeScript | tsc --noEmit && eslint . --ext .ts,.tsx |
| YAML | yamllint . |
| Markdown | npx markdownlint '**/*.md' |
| JSON | jq empty config.json (validates syntax) |
Standard Document Structure
Each standard follows a consistent format:
# Standard Name
## Quick Reference
[Table of key rules and values]
## [Topic Sections]
[Detailed guidance with examples]
## Common Errors
[Symptom | Cause | Fix table]
## Anti-Patterns
[Named patterns to avoid]
## AI Agent Guidelines
[ALWAYS/NEVER rules table]
## Summary
[Key takeaways list]
Common Configuration Files (Examples)
These are common config files you may choose to add to a project that adopts these standards. AgentOps does not require them, and this repository does not ship every file listed below.
| File | Purpose |
|---|---|
.pre-commit-config.yaml |
Hook definitions |
.yamllint.yml |
YAML linting rules |
.markdownlint.yml |
Markdown linting rules |
.shellcheckrc |
Shell linting rules |
.prettierrc |
JSON/Markdown formatting |
pyproject.toml |
Python tool settings (ruff, pytest) |
.golangci.yml |
Go linting configuration |
rustfmt.toml |
Rust formatting rules |
clippy.toml |
Rust linting configuration |
tsconfig.json |
TypeScript compiler settings |
eslint.config.js |
TypeScript/JS linting |
Contributing
To update a standard:
- Edit the standard directly in
docs/standards/ - Run validation to ensure format compliance
Adding a New Standard
- Follow the document structure template above
- Include: Quick Reference, Common Errors, Anti-Patterns, AI Guidelines
- Add to this README's index table
- Update related links in other standards
Created: 2024-12-30 Last Updated: 2026-02-09 Related: SKILL-TIERS.md