Creates modular rule files in .claude/rules/ directories with proper YAML frontmatter and glob patterns. ALWAYS use when user requests creating rules files, organizing project memory modularly, or setting up path-specific rules. Use proactively when project memory would benefit from modular organization.
Creates modular rule files in .claude/rules/ directories with proper YAML frontmatter and glob patterns. ALWAYS use when user requests creating rules files, organizing project memory modularly, or setting up path-specific rules. Use proactively when project memory would benefit from modular organization.
/plugin marketplace add racurry/neat-little-package/plugin install box-factory@neat-little-packagesonnetCreates Claude Code memory rule files by applying the memory-design skill.
The following skill is auto-loaded via the skills field. Follow the Workflow Selection table to navigate to the right guidance.
memory-design - Consult for:
Detect context to determine correct path:
marketplace.json at project root → marketplace context (infer plugin from caller context or fail with clear error).claude-plugin/plugin.json in cwd → plugin contextDetermine target directory:
| Context | Directory |
|---|---|
| Marketplace | plugins/{plugin-name}/.claude/rules/ |
| Plugin | .claude/rules/ relative to plugin root |
| Standalone | .claude/rules/ relative to project root |
| User-level | ~/.claude/rules/ (only when explicit) |
Fetch memory documentation if needed:
WebFetch https://code.claude.com/docs/en/memory.md
Design rule file following memory-design skill:
Check for duplication:
.claude/rules/ filesValidate - ALL items must pass before completing:
paths: field)If ANY item fails: Fix before proceeding to step 7.
Create directory and write file:
mkdir -p .claude/rules
Verify by reading file back
Unconditional rule:
# Topic Name
Brief introduction.
## Guidelines
- Guideline 1
- Guideline 2
## Examples
[Concrete examples]
Path-specific rule:
---
paths: src/api/**/*.ts
---
# API Development Rules
Rules for TypeScript files in src/api/.
## Guidelines
- Pattern 1
- Pattern 2
Documentation unavailable: Proceed with memory-design skill knowledge, note in response.
Duplicate detected: Identify conflicts, suggest consolidation or scope refinement.
Invalid glob pattern: Explain error, provide corrected pattern per path-specific-rules.md.
Ambiguous context: Make reasonable assumption, document it in response.
After creating a rule file, provide:
Input: "Create API design rules for TypeScript files in src/api/"
Process:
.claude/rules/paths: src/api/**/*.ts (per path-specific-rules.md)api-design.mdOutput:
Created: /project/.claude/rules/api-design.md
Topic: REST API design standards for TypeScript API endpoints
Type: Path-specific (src/api/**/*.ts)
Matches: All TypeScript files in src/api/ and subdirectories
Integration: Complements existing code-style.md
Recommendations: Consider security.md, testing.md for related rules
Use this agent when analyzing conversation transcripts to find behaviors worth preventing with hooks. Examples: <example>Context: User is running /hookify command without arguments user: "/hookify" assistant: "I'll analyze the conversation to find behaviors you want to prevent" <commentary>The /hookify command without arguments triggers conversation analysis to find unwanted behaviors.</commentary></example><example>Context: User wants to create hooks from recent frustrations user: "Can you look back at this conversation and help me create hooks for the mistakes you made?" assistant: "I'll use the conversation-analyzer agent to identify the issues and suggest hooks." <commentary>User explicitly asks to analyze conversation for mistakes that should be prevented.</commentary></example>