Skip to content

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.

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
Terminal window
# Create a new custom standard
aichaku standards --create-custom "Team Guidelines"
# Add it to your project
aichaku standards --add custom:team-guidelines
# Apply to CLAUDE.md
aichaku integrate

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
AspectBuilt-in StandardsCustom Standards
Location~/.claude/aichaku/methodologies/docs/standards/~/.claude/aichaku/user/docs/standards/
PrefixNone (e.g., tdd)custom: (e.g., custom:team-guidelines)
Icon📚🛠️
UpdatesAichaku updates themYou maintain them
ScopeUniversal best practicesOrganization/project specific

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

The easiest way to create a custom standard:

Terminal window
aichaku standards --create-custom "Security Hardening"

This command:

  1. Prompts for the standard name if not provided
  2. Converts to UPPER-KEBAB-CASE filename
  3. Creates a pre-formatted template
  4. Opens in your default editor (if available)

You can also create standards manually:

  1. Navigate to the custom standards directory:

    Terminal window
    cd ~/.claude/aichaku/user/docs/standards/
  2. Create a new file using UPPER-KEBAB-CASE:

    Terminal window
    touch SECURITY-HARDENING.md
  3. Add required frontmatter:

    ---
    title: "Security Hardening Guidelines"
    description: "Additional security measures for production"
    tags: ["security", "production", "custom"]
    ---

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.

View all standards including custom ones:

Terminal window
# Show all standards with categories
aichaku standards --list
# Filter to show only custom standards
aichaku standards --list | grep "🛠️"
# Show detailed view with descriptions
aichaku standards --list --detailed

Output 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 measures

Edit your existing custom standards:

Terminal window
# Open in default editor
aichaku standards --edit-custom security-hardening
# Or edit directly
vim ~/.claude/aichaku/user/docs/standards/SECURITY-HARDENING.md
# On macOS, open in default app
open ~/.claude/aichaku/user/docs/standards/SECURITY-HARDENING.md

Create variants of your existing standards:

Terminal window
# Copy to create a specialized version
aichaku standards --copy-custom security-hardening security-production
# This creates a new file with the same content
# Edit the new file to specialize it
aichaku standards --edit-custom security-production

Remove your custom standards when you no longer need them:

Terminal window
# Remove the standard file
aichaku standards --delete-custom old-guidelines
# Also remove from any projects using it
aichaku standards --remove custom:old-guidelines
# Confirm deletion when prompted
# Use --force to skip confirmation
aichaku standards --delete-custom old-guidelines --force

Add your custom standards to your project:

Terminal window
# Add a single custom standard
aichaku standards --add custom:team-guidelines
# Add multiple standards including custom
aichaku standards --add tdd,custom:security-hardening,clean-arch
# Add all standards from a category
aichaku standards --add-category security

Check which standards are active:

Terminal window
# Show current project standards
aichaku standards --show
# Show with full descriptions
aichaku standards --show --detailed

Output example:

Current Project Standards:
- 📚 tdd (Built-in)
- 🛠️ custom:team-guidelines (Custom)
- 📚 solid (Built-in)
- 🛠️ custom:security-hardening (Custom)

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.

  • Use descriptive names: api-design-patterns not api
  • Include scope: mobile-security vs generic security
  • Avoid conflicts: Don’t use names similar to built-in standards
  • Be consistent: Establish team naming patterns

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 concerns

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 rules

Use consistent tags for easy filtering:

  • team - Team-wide conventions
  • frontend - UI/UX guidelines
  • backend - Server-side patterns
  • security - Security enhancements
  • testing - Test strategies

Track standards in your team repository:

Terminal window
# Create standards directory in your repo
mkdir -p .team/standards
cp ~/.claude/aichaku/user/docs/standards/*.md .team/docs/standards/
# Add to git
git add .team/standards
git commit -m "Add team development standards"
  1. Git Repository

    Terminal window
    # Clone team standards
    git clone https://github.com/team/standards.git
    cp standards/*.md ~/.claude/aichaku/user/docs/standards/
  2. Shared Drive

    • Store in team shared folder
    • Document installation process
    • Version with dates
  3. Installation Script

    install-standards.sh
    #!/bin/bash
    STANDARDS_DIR="$HOME/.claude/aichaku/user/standards"
    mkdir -p "$STANDARDS_DIR"
    curl -o "$STANDARDS_DIR/API-DESIGN.md" \
    https://standards.company.com/API-DESIGN.md

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

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

Problem: Your standard has wrong name or format

Solutions:

Terminal window
# Rename to correct format
mv wrong-name.md CORRECT-NAME.md
# Remove spaces and special characters
mv "My Standard.md" MY-STANDARD.md

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.

Troubleshoot issues with these commands:

Terminal window
# Check if standard is discovered
aichaku standards --list --debug
# Verify file location and permissions
ls -la ~/.claude/aichaku/user/docs/standards/
# Check specific standard loading
AICHAKU_DEBUG=1 aichaku standards --show
# Validate standard format
aichaku standards --validate custom:my-standard
# Show full paths
aichaku standards --list --show-paths

Remember: 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.