agent-ops-validation
БесплатноБез исполняемых скриптовНе проверенPre-commit and pre-merge validation checks. Use before committing changes or declaring work complete to ensure all quality gates pass.
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
Validation Workflow
Works with or without aoc CLI installed. Issue tracking can be done via direct file editing.
Purpose
Ensure all quality gates pass before committing changes or declaring work complete. This skill consolidates all validation checks into a single, consistent procedure.
Validation Commands (from constitution)
# Example commands — read actual commands from .agent/constitution.md
build: npm run build # or: uv run python -m build
lint: npm run lint # or: uv run ruff check .
test: npm run test # or: uv run pytest
format: npm run format # or: uv run ruff format .
Issue Operations After Validation (File-Based — Default)
| Operation | How to Do It |
|---|---|
| Create regression issue | Append to .agent/issues/high.md with BUG type |
| Update issue status | Edit status: field directly in priority file |
| List blocking issues | Search priority files for status: blocked |
Example: Post-Validation Issue Creation (File-Based)
- Read
.agent/issues/.counter, increment, write back - Generate new ID:
BUG-{counter}@{hash} - Append issue to
.agent/issues/high.md:## BUG-NNNN@HHHHHH — New test failure: UserService.login id: BUG-NNNN@HHHHHH type: BUG status: todo priority: high description: Regression detected during validation ### Log - YYYY-MM-DD: Created from validation failure
CLI Integration (when aoc is available)
When aoc CLI is detected in .agent/tools.json, these commands provide convenience shortcuts:
| Operation | CLI Command |
|---|---|
| Create regression issue | aoc issues create --type BUG --priority high --title "..." |
| Update issue status | aoc issues update <ID> --status done |
| List blocking issues | aoc issues list --status blocked |
API Detection
Before running validation, check if project contains APIs:
api_indicators:
- OpenAPI/Swagger spec (openapi.yaml, swagger.json, openapi.json)
- API framework patterns (FastAPI, Flask, Express, ASP.NET controllers)
- Route decorators (@app.route, @router.get, [HttpGet], etc.)
If API detected during Tier 3 validation:
- Note: "API endpoints detected"
- After standard validation, invoke
agent-ops-api-reviewfor contract alignment check - Include API review findings in validation report
When to Use
- Before any git commit
- Before declaring a task complete
- Before critical review
- After recovery actions
- On explicit user request
Preconditions
.agent/constitution.mdexists with confirmed commands.agent/baseline.mdexists for comparison
Validation Tiers
Tier 1: Fast Checks (always run)
Run duration: < 30 seconds
- Syntax validation: Files parse without errors
- Lint (fast mode): Style and obvious issues
- Type check (if applicable): Static type errors
- Format check: Code formatting consistent
Tier 2: Standard Checks (before commit)
Run duration: < 5 minutes
- All Tier 1 checks
- Unit tests: Fast, isolated tests
- Build: Project compiles/builds successfully
- Lint (full): Complete lint analysis
Tier 3: Comprehensive Checks (before merge/complete)
Run duration: varies (can be slow)
- All Tier 2 checks
- Integration tests: Component interaction tests
- Coverage check: Ensure coverage thresholds met
- Security scan (if configured): Vulnerability detection
- Documentation: Verify docs are updated
Procedure
Quick Validation (Tier 1)
1. Run lint command (fast mode if available)
2. Run type check command (if applicable)
3. Check for syntax errors in changed files
4. Report: PASS / FAIL with details
Standard Validation (Tier 2)
1. Run Tier 1 checks
2. Run build command from constitution
3. Run unit test command from constitution
4. Compare results to baseline
5. Report: PASS / FAIL / REGRESSION
Comprehensive Validation (Tier 3)
1. Run Tier 2 checks
2. Run full test suite
3. Run coverage analysis
4. Run security checks (if configured)
5. Verify documentation updated
6. Compare all results to baseline
7. Report: PASS / FAIL / REGRESSION with full details
Validation Report Format
## Validation Report - [timestamp]
### Summary
- Tier: [1|2|3]
- Result: [PASS|FAIL|REGRESSION]
- Duration: [time]
### Checks Performed
| Check | Status | Details |
|-------|--------|---------|
| Lint | ✅ PASS | 0 errors, 2 warnings (baseline: 2) |
| Build | ✅ PASS | Exit code 0 |
| Tests | ⚠️ REGRESSION | 1 new failure (see below) |
### Failures (if any)
#### Test Failure: test_feature_x
- File: tests/test_feature.py:42
- Error: AssertionError: expected X, got Y
- Baseline: PASS (new regression)
### Warnings (if any)
Установить agent-ops-validation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agent-ops-validation?
Pre-commit and pre-merge validation checks. Use before committing changes or declaring work complete to ensure all quality gates pass.
Как установить скилл agent-ops-validation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-ops-validation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic