enforce-guidelines
Mandatory skill that ensures all work follows RAE guidelines. Activates automatically before any code task.
What this skill does
## The Iron Law **IF A GUIDELINE APPLIES TO YOUR TASK, YOU DO NOT HAVE A CHOICE. YOU MUST FOLLOW IT.** This is not a suggestion. Guidelines are requirements. Violations require correction before work is considered complete. ## When This Skill Activates This skill activates automatically when: - Writing Python code → `python-standards.md`, `coding-standards.md` - Creating a new repository → `repo-structure.md` - Making commits → `git-workflow.md` - Reviewing or refactoring code → `anti-patterns.md` - Any code changes → `coding-standards.md` **You MUST check for applicable guidelines before starting any task.** Even a 1% chance a guideline applies means you consult it. ## Decision Flow Before responding to ANY code-related request: ``` 1. What type of task is this? └─→ Identify: python, git, new-repo, refactor, debug, review 2. Which guidelines apply? └─→ Map task type to required guidelines (see mapping below) 3. Read the applicable guidelines └─→ Actually read them, don't assume you know the content 4. Extract MUST/MUST NOT constraints └─→ These are non-negotiable requirements 5. Proceed with task, citing guidelines when they influence decisions ``` ## Where to Find Guidelines Guidelines are bundled as reference files alongside this skill: - `references/coding-standards.md` - `references/python-standards.md` - `references/repo-structure.md` - `references/git-workflow.md` - `references/anti-patterns.md` - `references/pre-commit-checklist.md` ## Guideline Mapping | Task Type | Required Guidelines | |-----------|-------------------| | Any Python code | `python-standards.md`, `coding-standards.md` | | New repository | `repo-structure.md`, `python-standards.md` | | Git operations | `git-workflow.md` | | Refactoring | `anti-patterns.md`, `coding-standards.md` | | Code review | `anti-patterns.md`, `python-standards.md` | | Bug fixes | `coding-standards.md` (TDD section) | | New features | `coding-standards.md`, `python-standards.md` | ## Red Flags (Rationalization Detection) These thoughts indicate you're trying to skip guidelines: | Thought | Reality | |---------|---------| | "This is just a quick fix" | Quick fixes still follow guidelines | | "I already know the standards" | Read them anyway, they may have changed | | "This is too simple to need guidelines" | Simple code still needs type hints and formatting | | "I'll fix it later" | Fix it now, there is no later | | "The user didn't ask for TDD" | TDD is the default, not optional | | "100 chars is close enough to 120" | Line length is 120, configure ruff correctly | ## Enforcement Mechanism ### Before Starting Work 1. **Identify task type** from the mapping above 2. **Read applicable guidelines** - actually open and read them 3. **Extract key constraints** - list the MUST/MUST NOT rules 4. **Acknowledge constraints** - state which rules apply to this task ### During Work 1. **Cite guidelines** when they influence a decision 2. **Check compliance** before completing each step 3. **Run verification commands** (ruff, pytest) as guidelines require ### Before Completing Work 1. **Run all required checks**: `ruff format . && ruff check . && pytest` 2. **Verify coverage**: pytest runs with `--cov` by default, coverage must be ≥80% 3. **Verify against checklist** from applicable guidelines 4. **Confirm no violations** remain ## Constraints - You MUST read guidelines before starting code tasks - You MUST cite the specific guideline when it influences a decision - You MUST NOT skip guidelines because the task seems simple - You MUST NOT proceed if guideline compliance is unclear - You MUST run `ruff format` and `ruff check` before completing Python work - You MUST run `pytest` if tests exist - You SHOULD flag if you discover a case not covered by guidelines ## Verification Checklist Before marking any code task complete: - [ ] Identified applicable guidelines - [ ] Read the guidelines (not just remembered them) - [ ] Listed MUST constraints that apply - [ ] Followed all MUST constraints - [ ] Avoided all MUST NOT patterns - [ ] Ran `ruff format` on changed files - [ ] Ran `ruff check` with no errors - [ ] Ran `pytest` with coverage ≥80% - [ ] No anti-patterns from `anti-patterns.md` **Cannot check all boxes? Work is not complete.** ## Examples **User:** "Add a helper function to parse dates" **Agent (correct):** > This is Python code, so I need to consult `python-standards.md` and `coding-standards.md`. > > Key constraints: > - MUST use type hints for function signatures > - MUST run ruff format/check > - SHOULD write test first (TDD) > > Let me write a failing test first, then implement... **Agent (incorrect):** > Sure, here's a quick function: > ```python > def parse_date(s): > return datetime.strptime(s, "%Y-%m-%d") > ``` The incorrect response skips guidelines consultation, misses type hints, and doesn't run verification.
Related in Productivity
gitea-workflow
IncludedOrchestrate agile development workflows for Gitea repositories using the tea CLI. Use when working with Gitea-hosted repos and asking to 'run the workflow', 'continue working', 'what's next', 'complete the task cycle', 'start my day', 'end the sprint', 'implement the next task', or wanting guided step-by-step development assistance. Keywords: workflow, orchestrate, agile, task cycle, sprint, daily, implement, review, PR, standup, retrospective, gitea, tea.
microsoft-graph-gateway
IncludedRoute Microsoft Graph work in this workspace. Use when users want to read or write Outlook mail, calendar events, contacts, OneDrive or SharePoint files, Teams, Planner, To Do, users, groups, directory data, or arbitrary Microsoft Graph endpoints from VS Code. Prefer WorkIQ for common read scenarios. Use Microsoft Graph for write actions and gap-read scenarios that need exact Graph properties, filters, permissions, or endpoints.
copilotkit
IncludedUse when building with CopilotKit — setup, development, integrations, debugging, upgrading, or contributing. Routes to the appropriate specialized skill based on the task.
wordly-wisdom
IncludedProvides calibrated decision analysis using Charlie Munger-style multiple mental models, inversion, incentive mapping, circle-of-competence checks, misjudgment audits, second-order effects, and forecast updates. Use when the user asks for an oracle take, a hard call, a decision memo, a premortem, an outside view, a red-team, a sanity-check, what am I missing, think this through, or wants a strategy, hire, investment, plan, product, partnership, or major life choice analysed. Avoid for simple factual lookups or time-sensitive legal, medical, or market questions without fresh evidence.
swain-session
IncludedSession management and project status dashboard. Owns the full session lifecycle (start/work/close/resume), focus lane, bookmarks, worktree detection, and tab naming. Also serves as the project status dashboard — shows active epics, progress, actionable next steps, blocked items, tasks, GitHub issues, and recommendations. Worktree creation is deferred to swain-do task dispatch (SPEC-195). Triggers on: 'session', 'status', 'what's next', 'dashboard', 'overview', 'where are we', 'what should I work on', 'show me priorities', 'bookmark', 'focus on', 'session info'.
gandi
IncludedComprehensive Gandi domain registrar integration for domain and DNS management. Register and manage domains, create/update/delete DNS records (A, AAAA, CNAME, MX, TXT, SRV, and more), configure email forwarding and aliases, check SSL certificate status, create DNS snapshots for safe rollback, bulk update zone files, and monitor domain expiration. Supports multi-domain management, zone file import/export, and automated DNS backups. Includes both read-only and destructive operations with safety controls.