Common Workflows
Practical workflows for using ctxloom effectively in your daily development.
Getting Started Workflow
1. Initialize ctxloom
# In your project directoryctxloom init
# Or initialize globallyctxloom init --home2. Discover and Add Bundles
# Find relevant bundlesctxloom remote discover golang
# Add a remotectxloom remote add community alice/ctxloom-golang
# Browse what's availablectxloom remote browse community
# Pull bundles you wantctxloom fragment install community/go-developmentctxloom fragment install community/testing-patterns3. Create a Profile
# Create a development profilectxloom profile create go-dev \ -b go-development \ -b testing-patterns \ -d "Go development environment"4. Start Coding
# Run with your profilectxloom run -p go-dev "help with code"Daily Development Workflow
Morning Setup
# Sync any remote updatesctxloom remote sync
# Check your current profilectxloom profile show defaultDuring Development
Your context is automatically available. For specific tasks:
# Add security context for a security reviewctxloom run -f security#fragments/owasp "review this authentication code"
# Use a specific profile for frontend workctxloom run -p frontend-dev "help with React component"
# Preview what context will be usedctxloom run --dry-run --printEnd of Day
# If you created new fragments, commit themgit add .ctxloom/git commit -m "Update ctxloom configuration"Team Onboarding Workflow
For Team Leads
- Create team bundles repository:
mkdir team-ctxloom && cd team-ctxloommkdir -p ctxloom/v1/bundles ctxloom/v1/profiles- Add team standards:
version: "1.0"description: Team coding standardsfragments: code-style: content: | # Team Code Style - Use gofmt for all Go code - 100 character line limit - Descriptive variable names- Create team profile:
description: Standard team development environmentbundles: - team-standards - security-basics- Publish:
git init && git add . && git commit -m "Initial team ctxloom"git remote add origin https://github.com/myorg/ctxloom-team.gitgit push -u origin mainFor New Team Members
# Add team remotectxloom remote add team myorg/ctxloom-team
# Sync team bundlesctxloom remote sync
# Create profile that inherits from teamctxloom profile create my-dev --parent team/team-developer
# Use the profilectxloom run -p my-dev "help with code"Project-Specific Workflow
Setting Up a New Project
cd my-projectctxloom init
# Create project-specific profilectxloom profile create project \ --parent go-dev \ -b project-specific \ -d "This project's development context"
# Use the profilectxloom run -p project "help with code"Project Bundle
Create a bundle specific to your project:
version: "1.0"description: Project-specific context
fragments: architecture: content: | # Project Architecture
This project uses: - Clean architecture with domain/usecase/infrastructure layers - PostgreSQL for persistence - Redis for caching - gRPC for internal services
conventions: content: | # Project Conventions
- All handlers in internal/handlers/ - Domain models in internal/domain/ - Use structured logging with zapMulti-Language Workflow
Switching Contexts
# Create language-specific profilesctxloom profile create go-work -b go-development -b go-testingctxloom profile create python-work -b python-development -b python-testingctxloom profile create frontend-work -b typescript -b react
# Use based on current taskctxloom run -p go-work "help with Go code"ctxloom run -p python-work "help with Python code"Per-Directory Configuration
Use different .ctxloom/ configurations in different project directories:
~/projects/├── go-api/│ └── .ctxloom/│ └── profiles/default.yaml # Go-focused├── python-ml/│ └── .ctxloom/│ └── profiles/default.yaml # Python/ML-focused└── react-app/ └── .ctxloom/ └── profiles/default.yaml # Frontend-focusedSecurity Review Workflow
Setup
# Add security bundlesctxloom fragment install ctxloom-default/securityctxloom fragment install ctxloom-default/owaspConducting Reviews
# General security reviewctxloom run -t security "review this code for security issues"
# OWASP-focused reviewctxloom run -f security#fragments/owasp-top-10 "check for OWASP top 10 vulnerabilities"
# Authentication-specificctxloom run -f security#fragments/auth-patterns "review authentication implementation"Code Review Workflow
Preparing Context
# Create a code review profilectxloom profile create reviewer \ -b code-quality \ -b testing-patterns \ -b security-basics \ -d "Code review context"During Review
# Use review profilectxloom run -p reviewer "review this PR for code quality"
# Add specific concernsctxloom run -p reviewer -f performance#fragments/optimization \ "review for performance issues"CI/CD Integration Workflow
In CI Pipeline
jobs: lint: steps: - uses: actions/checkout@v4 - name: Setup ctxloom run: | go install github.com/ctxloom/ctxloom@latest ctxloom remote sync
- name: AI Code Review run: | ctxloom run -p code-reviewer "review changes in this PR" \ --output review.mdLockfile for Reproducibility
# Generate lockfilectxloom remote lock
# Commit lockfilegit add .ctxloom/lock.yamlgit commit -m "Lock ctxloom dependencies"In CI:
# Install exact versionsctxloom remote installTroubleshooting Workflow
When Context Isn’t Working
# Check current configurationctxloom profile show default
# Preview assembled contextctxloom run --dry-run --print
# Check hooks are appliedcat .claude/settings.json | jq '.hooks'
# Reapply hooksctxloom initWhen Bundles Are Missing
# Check what's installedctxloom fragment list
# Check what's available remotelyctxloom remote browse ctxloom-default
# Sync missing dependenciesctxloom remote syncTips and Best Practices
Keep Context Focused
# Instead of one huge profilectxloom profile create everything -b bundle1 -b bundle2 -b bundle3...
# Create task-specific profilesctxloom profile create api-dev -b go-development -b api-patternsctxloom profile create testing -b testing-patterns -b mockingctxloom profile create security -b security -b owaspUse Tags Effectively
# In your bundlesfragments: quick-reference: tags: [quick, cheatsheet] content: ...
detailed-guide: tags: [detailed, learning] content: ...# Quick reference onlyctxloom run -t quick "remind me of the syntax"
# Detailed learningctxloom run -t detailed "explain this concept"Version Control Your Configuration
# Always commit ctxloom configurationgit add .ctxloom/git commit -m "Update ctxloom configuration"Regular Maintenance
# Weekly: sync remote updatesctxloom remote sync
# Monthly: review and clean up profilesctxloom profile listctxloom fragment list
# As needed: update lockfilectxloom remote lock