How to Understand Selection Priority in Aichaku
When you select multiple standards, methodologies, or principles that might conflict, Aichaku uses a selection order priority system to determine which takes precedence.
The Priority Rule
Section titled “The Priority Rule”The order in which items are added determines their priority - first added has highest priority.
How It Works
Section titled “How It Works”1. Adding Items
Section titled “1. Adding Items”When you use the --add flag, items are added in the order you specify:
# REST gets priority over GraphQLaichaku standards --add api/rest api/graphql
# GraphQL gets priority over RESTaichaku standards --add api/graphql api/rest2. Viewing Priority
Section titled “2. Viewing Priority”The --list command shows items in priority order (highest priority first):
aichaku standards --list# Output:# Selected Standards (in priority order):# 1. api/rest - RESTful API design principles# 2. api/graphql - GraphQL API design patterns3. Conflict Resolution
Section titled “3. Conflict Resolution”When standards conflict, the higher priority (earlier in list) standard wins:
# If both REST and GraphQL are selected:# - REST first: Use REST patterns, acknowledge GraphQL where applicable# - GraphQL first: Use GraphQL patterns, acknowledge REST where applicableExamples
Section titled “Examples”API Design Conflicts
Section titled “API Design Conflicts”# Scenario 1: REST-first approachaichaku standards --add api/rest api/graphql# Agents will prioritize RESTful design patterns
# Scenario 2: GraphQL-first approachaichaku standards --add api/graphql api/rest# Agents will prioritize GraphQL design patternsTesting Strategy Conflicts
Section titled “Testing Strategy Conflicts”# Scenario 1: TDD-first approachaichaku standards --add testing/tdd testing/bdd# Test-expert will emphasize TDD for unit tests, BDD for features
# Scenario 2: BDD-first approachaichaku standards --add testing/bdd testing/tdd# Test-expert will emphasize BDD throughout, TDD as supportDocumentation Standards
Section titled “Documentation Standards”# Scenario 1: Diátaxis as primary frameworkaichaku standards --add doc/diataxis doc/microsoft-style# Documentation follows Diátaxis structure with Microsoft tone
# Scenario 2: Microsoft style as primaryaichaku standards --add doc/microsoft-style doc/diataxis# Documentation follows Microsoft patterns with Diátaxis conceptsManaging Priority
Section titled “Managing Priority”Reordering Items
Section titled “Reordering Items”To change priority, remove and re-add in the desired order:
# Current: REST has priorityaichaku standards --list
# Change to GraphQL priorityaichaku standards --remove api/rest api/graphqlaichaku standards --add api/graphql api/restBest Practices
Section titled “Best Practices”- Be Intentional: Add your primary/preferred approach first
- Document Choices: Use comments in your project docs to explain priority decisions
- Team Alignment: Ensure team understands the priority order
- Regular Review: Periodically review selections as project evolves
How Agents Use Priority
Section titled “How Agents Use Priority”Agents receive the full list in priority order and will:
- Primary Guidance: Follow the highest priority standard/methodology
- Acknowledge Others: Mention when lower-priority approaches might differ
- Hybrid Approach: Combine non-conflicting aspects where sensible
- Clear Communication: Explicitly state which standard is being followed
Example agent response:
"I'll implement this using REST principles as your primary standard,while incorporating GraphQL's type safety concepts where they enhancethe REST design."Related Commands
Section titled “Related Commands”aichaku standards --list- View current priority orderaichaku methodologies --list- View methodology priorityaichaku principles --list- View principle priorityaichaku agents --list- View selected agents