Claude-skill-registry consult-guidelines
Review relevant guidelines before starting a task
git clone https://github.com/majiayu000/claude-skill-registry
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/consult-guidelines" ~/.claude/skills/majiayu000-claude-skill-registry-consult-guidelines && rm -rf "$T"
skills/data/consult-guidelines/SKILL.mdOverview
Read and internalize the coding guidelines relevant to the current task. This ensures consistent application of standards across all work.
Parameters
- task_type (optional): "python", "git", "refactor", "debug", "review", or "all"
Steps
1. Determine Relevant Guidelines
Based on task type, identify which guidelines to review.
Mapping:
→ coding-standards.md, python-standards.mdpython
→ git-workflow.mdgit
→ coding-standards.md, anti-patterns.mdrefactor
→ coding-standards.md (TDD section)debug
→ anti-patterns.md, coding-standards.mdreview
→ all guidelinesall
Constraints:
- You MUST read
for any code changesguidelines/coding-standards.md - You MUST read
for Python workguidelines/python-standards.md - You MUST read
before any commitsguidelines/git-workflow.md - You SHOULD read
before code review or refactoringguidelines/anti-patterns.md
2. Summarize Key Points
Extract the 3-5 most relevant rules for the current task.
Constraints:
- You MUST highlight any MUST/MUST NOT constraints
- You SHOULD note any task-specific gotchas
3. Apply During Work
Keep these guidelines in mind while executing the task. Reference them when making decisions.
Constraints:
- You MUST cite the relevant guideline when it influences a decision
- You SHOULD flag if you discover a case not covered by guidelines
Examples
User: "I'm about to refactor the auth module" Agent: Reads coding-standards.md and anti-patterns.md, summarizes DRY principles and slop patterns to avoid, proceeds with refactor while citing guidelines.
User: "/consult-guidelines python" Agent: Reviews coding-standards.md and python-standards.md, extracts key rules about ruff, type hints, and path management.