Claude-skill-registry agent-ops-baseline
Create .agent/baseline.md and later compare against it. Use when capturing baseline build/lint/test results or investigating newly introduced findings.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/agent-ops-baseline" ~/.claude/skills/majiayu000-claude-skill-registry-agent-ops-baseline && rm -rf "$T"
manifest:
skills/data/agent-ops-baseline/SKILL.mdsource content
Baseline Workflow
Preconditions
exists and commands are CONFIRMED..agent/constitution.md
CLI Commands
Works with or without
CLI installed. Baseline operations use direct file editing by default.aoc
Build/Lint/Test Commands
Get commands from
.agent/constitution.md — these vary by project:
# Example constitution commands (project-specific) build: npm run build lint: npm run lint test: npm run test format: npm run format
Issue Discovery After Baseline (File-Based — Default)
When baseline findings need to be tracked as issues:
- Increment
.agent/issues/.counter - Append issues to appropriate
file.agent/issues/{priority}.md - Use type
for failures,BUG
for warningsCHORE
CLI Integration (when aoc is available)
When
aoc CLI is detected in .agent/tools.json, these commands provide convenience shortcuts:
| Operation | CLI Command |
|---|---|
| Create issue from finding | |
| List existing issues | |
| Show issue | |
Baseline Capture (mandatory before code changes)
- Run build/lint commands from constitution
- Write to
:.agent/baseline.md- commands executed
- exit codes
- warnings/errors grouped by file
- Run unit tests command from constitution
- Write to
:.agent/baseline.md- command
- summary (pass/fail/skip counts)
- failure details (stack traces / logs)
Issue Discovery After Baseline
After capturing baseline, invoke
discovery procedure:agent-ops-tasks
-
Collect all findings from baseline:
- Build errors →
(critical/high)BUG - Test failures →
(high)BUG - Lint errors →
(medium)BUG - Lint warnings →
(low/medium)CHORE - Missing test coverage →
(medium)TEST - Security warnings →
(high)SEC
- Build errors →
-
Present to user:
📋 Baseline captured. Found {N} existing issues: High: - [BUG] 2 failing tests in UserService - [SEC] 1 security warning (npm audit) Medium: - [BUG] 15 lint errors - [TEST] Coverage below threshold (72%) Low: - [CHORE] 23 lint warnings Create issues for these? [A]ll / [S]elect / [N]one / [D]efer -
If user creates issues:
- Offer to start fixing highest priority issue
- After fixes, re-run baseline to capture cleaner state
-
If user defers:
- Note in focus.md: "Baseline captured with {N} pre-existing issues"
- Continue to next workflow step
Baseline Comparison
Use this procedure when comparing current state to baseline (called by this skill or by critical-review):
Input
- Current build/lint/test output
contents.agent/baseline.md
Comparison Procedure
-
Run checks using constitution commands:
build → lint → tests -
Categorize each finding:
Finding In Baseline? Category Action Error No NEW_REGRESSION BLOCK — must fix Error Yes PRE_EXISTING Note, continue Warning No NEW_WARNING Investigate Warning Yes PRE_EXISTING Ignore Test fail No NEW_FAILURE BLOCK — must fix Test fail Yes PRE_EXISTING Note, continue Fewer issues — IMPROVEMENT Note improvement -
Output comparison report:
## Comparison vs Baseline ### New Issues (must address) - [list new errors/failures] ### New Warnings (investigate) - [list new warnings] ### Pre-existing (noted) - [count of baseline issues still present] ### Improvements - [any reductions from baseline] ### Verdict: PASS | FAIL | INVESTIGATE -
Decision rules:
- Any NEW_REGRESSION → FAIL (block until fixed)
- Only NEW_WARNING → INVESTIGATE (document or fix)
- No new issues → PASS
Template
Start from baseline template.