Agent skill

install-rules

Install plugin rules into project .claude/rules/ for persistent use without plugin loaded

Stars 139
Forks 18

Install this agent skill to your Project

npx add-skill https://github.com/sd0xdev/sd0x-dev-flow/tree/main/skills/install-rules

SKILL.md

Install Rules

Trigger

  • Keywords: install rules, setup rules, copy rules, install-rules

When NOT to Use

  • Installing hooks (use /install-hooks)
  • Installing scripts (use /install-scripts)
  • Full project setup (use /project-setup)

Workflow

Phase 1: Locate plugin rules dir
Phase 2: Enumerate *.md
Phase 3: Determine install set (--all, specific names, or interactive)
Phase 3.5: Read manifest + classify (new/unchanged/modified/conflict)
Phase 4: Install (smart merge with manifest tracking)
Phase 4.5: Backfill CLAUDE.md references
Phase 5: Output report

Arguments

$ARGUMENTS
Argument Description
--all Install all available rules
--list List available rules without installing
--dry-run Show what would be installed, no changes
--force Overwrite modified rules
--legacy-strategy <strategy> Handle pre-manifest installs (ask/overwrite/skip)
--customize <rule> Customize a project-override rule
rule-names... Specific rules to install

Manifest Tracking

Uses .sd0x/install-state.json to track installed file hashes. Smart merge logic:

Status Action
New (not installed) Copy
Unchanged (hash match) Auto-upgrade
Modified by user Skip (preserve edits)
Conflict (both changed) AskUserQuestion

Customize Mode (--customize)

Manages *-project.md companion files for user overrides:

Sub-flag Action
(none) Show section status
--add-section Add a new section
--update-section <name> Update specific section
--reset Regenerate from template

Output

markdown
## Install Rules Report

| Rule | Status | Action |
|------|--------|--------|
| auto-loop.md | unchanged | auto-upgraded |
| testing.md | user-modified | skipped |

Installed: N | Skipped: M | Conflicts: K

Expand your agent's capabilities with these related and highly-rated skills.

sd0xdev/sd0x-dev-flow

runbook

Generate and update feature release runbooks from existing docs and codebase. Use when: creating operational runbook, release handbook, deployment checklist, pre-release preparation. Not for: incident response (v2), code review (use codex-code-review), architecture design (use architecture).

139 18
Explore
sd0xdev/sd0x-dev-flow

ask

Context-aware Q&A with auto context gathering. Use when: user has a quick question about codebase, git history, rules, docs, or skills during development. Not for: code changes (use feature-dev), code review (use codex-review-fast), deep research (use deep-research), full code trace (use code-explore). Output: structured answer with source attribution.

139 18
Explore
sd0xdev/sd0x-dev-flow

project-brief

Convert a technical spec into a PM/CTO-readable executive summary. Simplify technical details, focus on business value.

139 18
Explore
sd0xdev/sd0x-dev-flow

codex-test-gen

Generate unit tests for specified functions using Codex MCP

139 18
Explore
sd0xdev/sd0x-dev-flow

bug-fix

Bug fix workflow. Use when: fixing bugs, resolving issues, regression fixes. Not for: new features (use feature-dev), understanding code (use code-explore). Output: fix + regression test + review gate.

139 18
Explore
sd0xdev/sd0x-dev-flow

skill-health-check

Validate skill quality against routing, progressive loading, and verification criteria. Use when: auditing skills, checking skill health, reviewing skill design. Not for: code review (use codex-code-review) or doc review (use doc-review). Output: health report with per-skill ratings + Gate.

139 18
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results