Home / hiroro-work / claude-plugins · plugins/dev-workflow-bundle/skills/extract-rules/SKILL.md · GitHub

extract-rules skillA

extract-rules is agent-read markdown (skill) from hiroro-work/claude-plugins: Extract project-specific coding rules and domain knowledge from existing codebase, generating markdown documentation for AI agents. Use when onboarding a new project, after code review discussions about coding style, or when coding conventions need documenting. Also consider running after sessions where coding preferences were discussed or corrected (--from-conversation), or after PRs with significant review feedback (--from-pr)..

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

What the file says

# Extract Rules

Analyzes existing codebase to identify what Claude would get wrong without project-specific guidance, extracting coding rules and domain knowledge as structured markdown documentation for AI agents.

## Usage

```text
/extract-rules                      # Extract rules from codebase (initial)
/extract-rules --update             # Re-scan and add new patterns (preserve existing)
/extract-rules --restructure        # Re-analyze, reorganize structure, merge existing rules
/extract-rules --from-conversation              # Extract from current session (latest)
/extract-rules --from-conversation <session-id> # Extract from a specific session
/extract-rules --from-pr 123                   # PR in current repo
/extract-rules --from-pr owner/repo#123        # PR in another repo (URL form also accepted)
/extract-rules --from-pr 100..110              # PR range (current repo)
/extract-rules --from-pr owner/repo#100..110   # PR range (another repo)
/extract-rules --compact                       # Compact all over-threshold rules files (output_dir/**/*.md)
/extract-rules --compact path/to/file.md ...   # Compact specific files (caller passes explicit paths)
…

Read the whole file at its exact version.

How to install

Latest version
mdr add hiroro-work/claude-plugins/extract-rules@git:20260916.9d90c93
Exact content
mdr add hiroro-work/claude-plugins/extract-rules@sha256:4766af4b78aac778

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_qzfh5e744fdcshrr.svg)](https://markdownregistry.com/a/art_qzfh5e744fdcshrr)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260916.9d90c93 latest2026-09-16 9d90c93 32,158 BA view · diff
git:20260909.6ad521f2026-09-09 6ad521f 30,441 BA view · diff
git:20260909.5df58242026-09-09 5df5824 40,303 BA view · diff
git:20260902.44e45b62026-09-02 44e45b6 60,820 BA view · diff
git:20260901.c9d32982026-09-01 c9d3298 61,184 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (32158 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

hiroro-work/claude-plugins · 48 stars · license none · pushed 2026-09-23 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_qzfh5e744fdcshrr
GET https://markdownregistry.com/api/v1/resolve?ref=hiroro-work/claude-plugins/extract-rules
GET https://markdownregistry.com/api/v1/blob/4766af4b78aac77831b0aa02f72b4ea614e5a171790840b707da85d0abd7f30c

Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

More from hiroro-work/claude-plugins

dev-workflow-triage skill
hiroro-work/claude-plugins · .claude/skills/dev-workflow-triage/SKILL.md · Triage open issues in the retrospective issue repo populated by the dev-workflow producer (v1 and v2 issue formats)…
git:20260923.b852b0b · audit A · 48 stars
extract-skill-section skill
hiroro-work/claude-plugins · .claude/skills/extract-skill-section/SKILL.md · Extract a named SKILL.md section's body verbatim into a references/<name>.md file, replace the body with a skeleton…
git:20260902.b999a01 · audit A · 48 stars
inbox-add skill
hiroro-work/claude-plugins · .claude/skills/inbox-add/SKILL.md · Read .claude/inbox-add.local.md and append one task line to the Obsidian Vault's inbox.md. Use when the user requests…
git:20260521.40669ff · audit A · 48 stars
prompt-tuning skill
hiroro-work/claude-plugins · .claude/skills/prompt-tuning/SKILL.md · Methodology for iteratively improving agent-facing instructions (skills / slash commands / CLAUDE.md / code-gen…
git:20260818.9421b02 · audit A · 48 stars
publicity-review skill
hiroro-work/claude-plugins · .claude/skills/publicity-review/SKILL.md · Review uncommitted diff for content unsuitable for publication to a public repository — secrets/credentials…
git:20260819.bbea1b2 · audit A · 48 stars
review-with-untracked skill
hiroro-work/claude-plugins · .claude/skills/review-with-untracked/SKILL.md · Temporarily visualize untracked new files into the git diff so a chain of diff-deriving review callees can see them…
git:20260819.bbea1b2 · audit A · 48 stars
run-node-tests skill
hiroro-work/claude-plugins · .claude/skills/run-node-tests/SKILL.md · Run the repository's Node test suite under tests/ via `node --test` and report a structured verdict. Project-local…
git:20260902.b999a01 · audit A · 48 stars
run-tests skill
hiroro-work/claude-plugins · .claude/skills/run-tests/SKILL.md · Verify plugins marketplace structure, version consistency, and JSON/frontmatter validity via subagent
git:20260901.4e26eb1 · audit A · 48 stars
skill-review skill
hiroro-work/claude-plugins · .claude/skills/skill-review/SKILL.md · Review uncommitted skill changes against an internal checklist of skill-creator best practices and apply improvements…
git:20260819.e040afe · audit A · 48 stars
triage-review skill
hiroro-work/claude-plugins · .claude/skills/triage-review/SKILL.md · Daily review of the latest origin triage-* branch. Operator-prepared invariant — the operator fetches origin and…
git:20260818.43f88f5 · audit A · 48 stars
verify-bundle-sync skill
hiroro-work/claude-plugins · .claude/skills/verify-bundle-sync/SKILL.md · Verify the dev-workflow-bundle canonical and bundle copy directories are in sync. Workaround for upstream symlink bug…
git:20260923.b852b0b · audit A · 48 stars
verify-diff skill
hiroro-work/claude-plugins · .claude/skills/verify-diff/SKILL.md · Empirically verify that a code diff achieves its stated objective by dispatching a bias-free executor that actually…
git:20260818.498fedb · audit A · 48 stars

Every file in hiroro-work/claude-plugins

Browse by kind, by grade A, or by owner.