Agent skill
localsetup-framework-compliance
Pre-task workflow, certainty assessment, context load, document status, testing, Git checkpoints, document maintenance. Use for framework modifications, PRDs, or any task that must follow checklist and checkpoints.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/localsetup-framework-compliance
Metadata
Additional technical details for this skill
- version
- 1.2
SKILL.md
Framework compliance (pre-task, checkpoints, document maintenance)
0. MANDATORY PRE-TASK WORKFLOW (CRITICAL)
Before executing ANY task:
- IDENTIFY TASK TYPE - file_creation, code_modification, framework_modification, git_operation, etc.
- CHECK CORE RULES (BLOCKS EXECUTION IF VIOLATED): Engine/user data separation; Git checkpoints after framework modifications; Markdown compatibility; Testing after changes; Backup management.
- ASSESS CERTAINTY - HIGH/MEDIUM/LOW/CRITICAL LOW; if <70% lookup docs; if <50% on core rules get user confirmation.
- PRE-EXECUTION CHECKLIST - Use
source lib/rule_enforcer_enhanced.sh && pre_execution_checklist "$task_type" "$task_description"(when available). - EXECUTE TASK with rule compliance monitoring.
- POST-EXECUTION VERIFICATION - Use
post_execution_verification "$task_type" "$task_context"; verify checkpoints and backups.
Documentation lookup: Check _localsetup/docs/, your platform's rules path (e.g. .cursor/rules/ on Cursor), _localsetup/config/rules_index.yaml. Never proceed with CRITICAL LOW certainty on core rules without user confirmation.
1. Context load and repo role
- VERIFY: Context is loaded. If unsure, ask user to run
./_localsetup/tools/verify_context. - Repo role: Framework lives in client repo at _localsetup/. Only modify local context (e.g. your platform's local rules, such as .cursor/rules/local-*.mdc on Cursor) or propose changes via PRD. See REPO_AND_DATA_SEPARATION.md.
6. Document status and testing
- Document status: Before referencing any document, check status (ACTIVE/PROPOSAL/DRAFT/DEPRECATED/ARCHIVED). If PROPOSAL, do not assume implemented. Use
check_document_status()or _localsetup/docs/DOCUMENT_INDEX.yaml. - Testing: Run _localsetup/tests/automated_test.sh after changes; maintain 100% test pass rate.
14. Git checkpoints (CRITICAL)
- MANDATORY: Create Git checkpoints IMMEDIATELY after framework modifications. Use
_localsetup/tools/verify_rulesto verify. - Checkpoint creation: Stage and commit with messages like "Checkpoint: - ". Never commit user/repo-local data that should stay private.
- Rollback:
git reset --hard <commit-hash>(with confirmation). List:git log --oneline.
16. Document maintenance after major task
- Trigger: After major task completion, user validation, and Git commit.
- Workflow: Document scrub first (update _localsetup/docs/ that reference the task), then create workflow docs if needed. Use
lib/document_maintenance.shwhen available. - Major task: Framework modifications, new tools, new features, significant config changes. Not: simple bug fixes, test-only changes.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?