AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Rules Generator

skill-drag88-claude-dev-framework-rules-generator · by drag88

Auto-generates .claude/rules/ documentation for any codebase

No reviews yet
0 installs
36 views
0.0% view→install

Install

$ agentstack add skill-drag88-claude-dev-framework-rules-generator

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-drag88-claude-dev-framework-rules-generator)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Rules Generator? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Rules Generator Skill

Auto-generate .claude/rules/ documentation for any codebase.

When to Activate

  • No .claude/rules/ directory exists in the current project
  • User asks about codebase structure or architecture
  • User asks "what does this project do"
  • Starting work on an unfamiliar codebase
  • User explicitly asks to generate rules

Actions

  1. Load rulebook: Read rules-templates/claudemd-4-7-rulebook.md (vendored into CDF) as the authoritative reference for rule framing (positive imperatives, explicit scope, why-statements, neutral tone). Falls back to the embedded principles in this file only if the rulebook is missing.
  1. Explore codebase using the Explore agent to understand:
  • Directory structure and key files
  • Tech stack (languages, frameworks, libraries)
  • Architectural patterns and conventions
  • Build/test/run commands
  1. Generate .claude/rules/ files with YAML frontmatter on every file:
  • architecture.md — Directory structure, key files, component relationships, data flow. Frontmatter: description: only (loads broadly).
  • tech-stack.md — Languages, frameworks, libraries with purposes. Frontmatter: description: only.
  • patterns.md — Architectural patterns, code conventions, error handling. Frontmatter: description: + paths: scoped to source dirs (e.g. ["src/**", "lib/**"]).
  • commands.md — Setup, build, test, lint, run commands. Frontmatter: description: only.
  • Project-type files (api-conventions.md, component-conventions.md, etc.) — Always include paths: scoped to the relevant directory glob so they only load when matching files are touched.
  1. Frame rules as positive imperatives, with explicit scope and the why where non-obvious. Example: "Apply to every API route, including admin routes. Reason: centralized auth check." Avoid CAPS, MUST, CRITICAL, "ANY", "ALWAYS".
  1. Confirm completion with a summary listing each generated file, its line count, and whether it is path-scoped or always-loaded.

File Format

Every rule file uses YAML frontmatter:

---
description: One-line summary of what this file covers
paths: ["src/api/**/*.py", "src/middleware/**"]   # optional — omit to always-load
---
# API Route Rules

- Every endpoint validates input via the `@validate_input` decorator. Reason: centralized request schema enforcement.
- API errors return the standard `{error, code, details}` shape. Reason: client-side error parser depends on it.

Rules without paths: load every session. Use paths: for any topic that only applies when specific files are touched — this saves context across sessions that do not touch those files.

Related Commands

  • /cdf:rules generate - Manually refresh all rules
  • /cdf:docs plan - Create task documentation structure

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.