How to Manage Custom Standards
Custom standards allow you to define organization-specific or project-specific guidelines that complement Aichaku’s built-in standards. They integrate seamlessly with the standard selection system and appear in your CLAUDE.md alongside official standards.
Before you begin
Section titled “Before you begin”Ensure you have:
- Aichaku installed and configured
- Access to your
~/.claude/aichaku/user/docs/standards/directory - A text editor for creating standard files
- Basic understanding of Markdown syntax
Quick Start
Section titled “Quick Start”# Create a new custom standardaichaku standards --create-custom "Team Guidelines"
# Add it to your projectaichaku standards --add custom:team-guidelines
# Apply to CLAUDE.mdaichaku integrateUnderstanding Custom Standards
Section titled “Understanding Custom Standards”What Are Custom Standards?
Section titled “What Are Custom Standards?”Custom standards are user-defined development guidelines that:
- Capture your team’s specific practices and conventions
- Extend or specialize existing standards for your domain
- Document organizational requirements not covered by built-in standards
- Integrate seamlessly with Aichaku’s standard management system
How They Differ from Built-in Standards
Section titled “How They Differ from Built-in Standards”| Aspect | Built-in Standards | Custom Standards |
|---|---|---|
| Location | ~/.claude/aichaku/methodologies/docs/standards/ | ~/.claude/aichaku/user/docs/standards/ |
| Prefix | None (e.g., tdd) | custom: (e.g., custom:team-guidelines) |
| Icon | 📚 | 🛠️ |
| Updates | Aichaku updates them | You maintain them |
| Scope | Universal best practices | Organization/project specific |
Storage and Discovery
Section titled “Storage and Discovery”Custom standards are:
- Stored in
~/.claude/aichaku/user/docs/standards/ - Automatically discovered on startup
- Named using UPPER-KEBAB-CASE.md convention
- Loaded alongside built-in standards
Creating Custom Standards
Section titled “Creating Custom Standards”Using the CLI (Recommended)
Section titled “Using the CLI (Recommended)”The easiest way to create a custom standard:
aichaku standards --create-custom "Security Hardening"This command:
- Prompts for the standard name if not provided
- Converts to UPPER-KEBAB-CASE filename
- Creates a pre-formatted template
- Opens in your default editor (if available)
Manual Creation
Section titled “Manual Creation”You can also create standards manually:
-
Navigate to the custom standards directory:
Terminal window cd ~/.claude/aichaku/user/docs/standards/ -
Create a new file using UPPER-KEBAB-CASE:
Terminal window touch SECURITY-HARDENING.md -
Add required frontmatter:
---title: "Security Hardening Guidelines"description: "Additional security measures for production"tags: ["security", "production", "custom"]---
Template Structure
Section titled “Template Structure”When you use --create-custom, Aichaku generates a structured template with:
- YAML frontmatter (title, description, tags)
- Standard sections (Overview, Implementation, Examples)
- Placeholder content to guide your writing
The template is defined in src/commands/standards.ts and includes sections for
overview, implementation, examples, best practices, and common pitfalls.
Managing Custom Standards
Section titled “Managing Custom Standards”List Custom Standards
Section titled “List Custom Standards”View all standards including custom ones:
# Show all standards with categoriesaichaku standards --list
# Filter to show only custom standardsaichaku standards --list | grep "🛠️"
# Show detailed view with descriptionsaichaku standards --list --detailedOutput example:
Available Standards:
Built-in Standards:📚 nist-csf - NIST Cybersecurity Framework📚 tdd - Test-Driven Development📚 solid - SOLID principles
Custom Standards:🛠️ custom:team-guidelines - Our team's coding guidelines🛠️ custom:security-hardening - Additional security measuresEdit Custom Standards
Section titled “Edit Custom Standards”Edit your existing custom standards:
# Open in default editoraichaku standards --edit-custom security-hardening
# Or edit directlyvim ~/.claude/aichaku/user/docs/standards/SECURITY-HARDENING.md
# On macOS, open in default appopen ~/.claude/aichaku/user/docs/standards/SECURITY-HARDENING.mdCopy Custom Standards
Section titled “Copy Custom Standards”Create variants of your existing standards:
# Copy to create a specialized versionaichaku standards --copy-custom security-hardening security-production
# This creates a new file with the same content# Edit the new file to specialize itaichaku standards --edit-custom security-productionDelete Custom Standards
Section titled “Delete Custom Standards”Remove your custom standards when you no longer need them:
# Remove the standard fileaichaku standards --delete-custom old-guidelines
# Also remove from any projects using itaichaku standards --remove custom:old-guidelines
# Confirm deletion when prompted# Use --force to skip confirmationaichaku standards --delete-custom old-guidelines --forceUsing Custom Standards in Projects
Section titled “Using Custom Standards in Projects”Add to Project
Section titled “Add to Project”Add your custom standards to your project:
# Add a single custom standardaichaku standards --add custom:team-guidelines
# Add multiple standards including customaichaku standards --add tdd,custom:security-hardening,clean-arch
# Add all standards from a categoryaichaku standards --add-category securityView Project Standards
Section titled “View Project Standards”Check which standards are active:
# Show current project standardsaichaku standards --show
# Show with full descriptionsaichaku standards --show --detailedOutput example:
Current Project Standards:- 📚 tdd (Built-in)- 🛠️ custom:team-guidelines (Custom)- 📚 solid (Built-in)- 🛠️ custom:security-hardening (Custom)Integration with CLAUDE.md
Section titled “Integration with CLAUDE.md”When you run aichaku integrate, custom standards appear in CLAUDE.md alongside built-in standards with clear
attribution showing their source location.
Custom standards are marked with a source reference (e.g., “Custom standard from ~/.claude/aichaku/user/docs/standards/”) to distinguish them from built-in standards.
Best Practices
Section titled “Best Practices”Use Clear Naming Conventions
Section titled “Use Clear Naming Conventions”- Use descriptive names:
api-design-patternsnotapi - Include scope:
mobile-securityvs genericsecurity - Avoid conflicts: Don’t use names similar to built-in standards
- Be consistent: Establish team naming patterns
Follow Content Guidelines
Section titled “Follow Content Guidelines”Write effective custom standards:
## DO:✅ Provide clear, actionable rules✅ Include both good and bad examples✅ Reference official documentation✅ Keep focused on specific domain✅ Use consistent formatting
## DON'T:❌ Duplicate built-in standards❌ Write vague guidelines❌ Include outdated practices❌ Mix unrelated concernsOrganize Your Standards
Section titled “Organize Your Standards”Structure your custom standards library:
~/.claude/aichaku/user/docs/standards/├── API-DESIGN.md # REST API conventions├── DATABASE-PATTERNS.md # Data layer guidelines├── MOBILE-SECURITY.md # Mobile-specific security├── REACT-COMPONENTS.md # Frontend patterns└── TEAM-CONVENTIONS.md # General team rulesUse consistent tags for easy filtering:
team- Team-wide conventionsfrontend- UI/UX guidelinesbackend- Server-side patternssecurity- Security enhancementstesting- Test strategies
Sharing Custom Standards
Section titled “Sharing Custom Standards”Version Control
Section titled “Version Control”Track standards in your team repository:
# Create standards directory in your repomkdir -p .team/standardscp ~/.claude/aichaku/user/docs/standards/*.md .team/docs/standards/
# Add to gitgit add .team/standardsgit commit -m "Add team development standards"Choose Distribution Methods
Section titled “Choose Distribution Methods”-
Git Repository
Terminal window # Clone team standardsgit clone https://github.com/team/standards.gitcp standards/*.md ~/.claude/aichaku/user/docs/standards/ -
Shared Drive
- Store in team shared folder
- Document installation process
- Version with dates
-
Installation Script
install-standards.sh #!/bin/bashSTANDARDS_DIR="$HOME/.claude/aichaku/user/standards"mkdir -p "$STANDARDS_DIR"curl -o "$STANDARDS_DIR/API-DESIGN.md" \https://standards.company.com/API-DESIGN.md
Troubleshooting
Section titled “Troubleshooting”Common Issues
Section titled “Common Issues”Standard Not Showing Up
Section titled “Standard Not Showing Up”Problem: Your created standard doesn’t appear in --list
Solutions:
- Check filename uses UPPER-KEBAB-CASE.md
- Verify location:
~/.claude/aichaku/user/docs/standards/ - Ensure valid frontmatter (YAML format)
- Look for parsing errors in the file
Integration Not Including Custom Standard
Section titled “Integration Not Including Custom Standard”Problem: aichaku integrate doesn’t add your custom standard
Solutions:
- Confirm standard is added to project:
aichaku standards --show - Check for typos in standard name
- Use full prefix:
custom:standard-name - Run with debug:
AICHAKU_DEBUG=1 aichaku integrate
File Naming Issues
Section titled “File Naming Issues”Problem: Your standard has wrong name or format
Solutions:
# Rename to correct formatmv wrong-name.md CORRECT-NAME.md
# Remove spaces and special charactersmv "My Standard.md" MY-STANDARD.mdDirectory Structure Issues
Section titled “Directory Structure Issues”Problem: Standards not found in expected location
Solution: Ensure standards are in ~/.claude/aichaku/user/docs/standards/ with proper .md extension and
UPPER-KEBAB-CASE naming.
Use Debug Commands
Section titled “Use Debug Commands”Troubleshoot issues with these commands:
# Check if standard is discoveredaichaku standards --list --debug
# Verify file location and permissionsls -la ~/.claude/aichaku/user/docs/standards/
# Check specific standard loadingAICHAKU_DEBUG=1 aichaku standards --show
# Validate standard formataichaku standards --validate custom:my-standard
# Show full pathsaichaku standards --list --show-pathsRemember: Custom standards are a powerful way to codify your team’s specific practices while leveraging Aichaku’s integration capabilities. Keep them focused, well-documented, and actively maintained for maximum benefit.