| name | add-feature-to-framework |
| description | Comprehensive checklist ensuring all new features are integrated into the framework correctly |
| type | meta |
| role | senior-engineer |
| category | integration-checklist |
| version | 1 |
| maturity | draft |
| applies_to | every new feature, SKILL, agent, decorator, validation gate |
| effort_estimate | 2-4h additional for full framework integration (on top of implementation) |
ADD-FEATURE-TO-FRAMEWORK
Metadata
name: add-feature-to-framework
type: meta
role: senior-engineer
category: integration-checklist
version: 1.0
maturity: draft
applies_to: every new feature, SKILL, agent, decorator, validation gate
effort_estimate: 2-4h additional for full framework integration (on top of implementation)
Purpose
Provide a comprehensive checklist ensuring every new feature/SKILL/agent:
- Aligns with SPEC.md requirements and intent
- Includes complete test coverage (unit + integration)
- Has complete documentation (code, README, AGENTS.md, inline comments)
- Is fully integrated into framework (hooks, decorators, validators)
- Passes framework compliance checks
- No partial implementations that work in isolation but break integration
When to Use This Skill
Use this checklist EVERY TIME you add:
- New SKILL or agent
- New validation gate, decorator, or framework mechanism
- New API endpoint or core function
- New command-line interface feature
- Changes to SPEC.md or core framework behavior
- New security hardening measure
The Checklist (Expandable Template)
Phase 1: Design & Planning (Before Implementation)
Phase 2: Implementation
Phase 3: Documentation
Phase 4: Framework Integration
Phase 5: Testing & Verification
Phase 6: Review & Merge
Integration Verification Checklist
Before claiming "done", verify these framework connections:
If Feature Uses Decorators
@enforce_delegate_requirement
def route_task(task: Dict) -> Result:
pass
def route_task(task: Dict) -> Result:
pass
Test:
pytest tests/test_decorator_enforcement.py -v -k "enforce_delegate"
If Feature Uses Validation
def validate_feature_input(path: Path) -> bool:
assert isinstance(path, Path), f"Expected Path, got {type(path)}"
assert path.exists(), f"Path does not exist: {path}"
return True
def use_feature(path):
pass
Test:
pytest tests/test_feature_validation.py -v
If Feature Affects SPEC.md
constraints:
- All queue paths must be validated with validate_queue_path()
- All DELEGATEs must use decorator @enforce_delegate_requirement
Test:
make validate-spec
If Feature Adds New Role/Responsibility
# ✅ Correct: AGENTS.md updated with new role
## Quality Engineer (New Role)
- Responsibility: Run enhanced test environment simulation
- Tools: Docker, pytest, container environment
- Authority: Can trigger pre-push gate validations
# ❌ Wrong: Feature implemented but AGENTS.md not updated
# (Team doesn't know about new role = bottleneck)
Test: Grep for role in AGENTS.md
grep "Quality Engineer" src/AGENTS.md
Common Integration Gaps (Red Flags)
🚩 Red Flag 1: "Tests pass locally but fail in CI"
- Root cause: Feature not tested in container environment
- Fix: Add container simulation to pre-push hook
- Prevention: This checklist, Phase 5 (CI pipeline passes)
🚩 Red Flag 2: "Feature works but breaks existing tests"
- Root cause: Integration test coverage incomplete
- Fix: Add integration tests with existing features
- Prevention: This checklist, Phase 2 (Integration tests)
🚩 Red Flag 3: "Feature implemented but SPEC.md not updated"
- Root cause: Framework requirements unclear
- Fix: Update SPEC.md + re-run compliance checks
- Prevention: This checklist, Phase 3 (SPEC.md updated)
🚩 Red Flag 4: "Feature has no tests"
- Root cause: TDD not followed
- Fix: Implement tests retroactively (if possible)
- Prevention: This checklist, Phase 2 (Unit tests written FIRST)
🚩 Red Flag 5: "Feature uses wrong decorator or validator"
- Root cause: Framework integration not understood
- Fix: Review framework docs, apply correct decorators
- Prevention: This checklist, Phase 4 (Hooks/Decorators integrated)
Quick Integration Checklist (Abbreviated)
For quick reference, these are the must-haves:
Related Skills
code-hygiene-git-workflow: Pre-commit/pre-push workflow
spec-validator: SPEC.md compliance verification
protocol-validator: DELEGATE/HANDBACK protocol validation
spec-management: Managing SPEC.md changes
Examples
Example 1: Adding a New Validation Gate
Follows: add-feature-to-framework + code-hygiene-git-workflow
- Design phase: What should this validation check? When should it run?
- Implement: Add validation function with type hints + docstrings
- Tests: Unit tests for validation logic, integration tests with hooks
- Docs: Update SPEC.md with new constraint, AGENTS.md with responsible role
- Integration: Add to pre-commit hook, run in CI pipeline
- Verification: Run compliance checks, container tests
- Review: PR, merge, watch CI, rebase branches
Example 2: Adding a New SKILL
Follows: add-feature-to-framework + skill-creator + code-hygiene-git-workflow
- Design: Use
skill-creator to scaffold SKILL structure
- Implement: Fill in workflow logic, add tests
- Docs: Complete SKILL.md, link from README and AGENTS.md
- Integration: Add to
src/AGENTS.md, update related decorators
- Tests: Unit + integration tests, verify with existing workflows
- Verification: Compliance checks pass, no drift
- Review: PR, merge, watch CI
Implementation Notes
This checklist is aspirational and comprehensive. In practice:
- Start with Quick Integration Checklist (the must-haves)
- For security/core features, go full checklist
- For docs/examples, abbreviated checklist is fine
- Use as PR review guide (check off items as you review)
- Update checklist based on team feedback
The goal is consistency + completeness, not perfection.