Skills Mode
Karajan offers two modes of operation:
| Mode | Best for | Requires |
|---|---|---|
| Skills | Single AI agent, simpler setup | Only Claude Code |
| Orchestrator | Multi-agent pipeline, full control | MCP server + agent CLIs |
Skills mode installs Karajan roles as slash commands in Claude Code. Each command is a self-contained prompt with built-in guardrails — security checks, TDD enforcement, destructive operation detection, and diff verification.
Installation
Section titled “Installation”kj initDuring setup, you’ll be asked whether to install Karajan’s commands. Say yes, and they go into atril’s store under .karajan/commands/, on demand. Since 5.0 they are no longer copied to .claude/commands/.
In a project that uses rulesync, kj init also runs atril sync, which installs the /atril <name or task> bridge in every CLI: /atril kj-run <task> runs the full pipeline. Without rulesync, run rulesync init and then atril sync --root .karajan.
You can also install them by hand:
atril install node_modules/karajan-code/templates/atril/commands/kj-run.md --root .karajanAvailable Skills
Section titled “Available Skills”/kj-run — Full Pipeline
Section titled “/kj-run — Full Pipeline”Executes all steps sequentially: discover → code → review → test → security → sonar → commit.
/kj-run Implement user authentication with JWT tokens/kj-code — Coder with Guardrails
Section titled “/kj-code — Coder with Guardrails”Implements a task following TDD methodology with automatic quality checks:
- Tests first, then implementation
- Security check (no hardcoded secrets, no injection vectors)
- Destructive operation check (no
rm -rf,DROP TABLE, etc.) - Performance check (no sync I/O in handlers, no
document.write) - Diff verification (
git diffconfirms only intended changes)
/kj-code Add pagination to the user list endpoint/kj-review — Code Review
Section titled “/kj-review — Code Review”Reviews the current diff against quality standards. Auto-flags blocking issues:
- Hardcoded credentials or secrets
- Entire files overwritten instead of targeted edits
- Missing tests for changed source files
- SQL injection, XSS, command injection patterns
/kj-review Check changes in the auth module/kj-test — Test Quality Audit
Section titled “/kj-test — Test Quality Audit”Evaluates test coverage and quality for changed files:
- Verifies every changed source file has corresponding tests
- Runs the test suite and reports results
- Checks for empty tests, always-passing tests, skipped tests
/kj-test Audit test coverage for recent changes/kj-security — Security Audit
Section titled “/kj-security — Security Audit”OWASP-focused security scan on the diff:
- Critical: hardcoded secrets, SQL/command injection, path traversal
- High: XSS, missing auth, SSRF, insecure deserialization
- Medium: missing input validation, verbose error messages, missing CSRF
- Low: missing security headers, known dependency vulnerabilities
/kj-security Scan auth changes for vulnerabilities/kj-discover — Gap Detection
Section titled “/kj-discover — Gap Detection”Analyzes a task for missing information before coding begins:
- Missing requirements or acceptance criteria
- Implicit assumptions that need confirmation
- Ambiguities with multiple interpretations
- Contradictions in the specification
/kj-discover Review the requirements for the new billing module/kj-architect — Architecture Design
Section titled “/kj-architect — Architecture Design”Proposes architecture before implementation:
- Architecture type and layer responsibilities
- API contracts and data model changes
- Tradeoffs with alternatives considered
- Clarification questions for stakeholders
/kj-architect Design the event-driven notification system/kj-sonar — Static Analysis
Section titled “/kj-sonar — Static Analysis”Runs SonarQube scan (if available) or manual static analysis:
- Cognitive complexity, duplicated code, unused imports
- Empty catch blocks, nested ternaries
- Quality gate status and issue breakdown
/kj-sonar Run quality analysis on current changesSkills vs Orchestrator
Section titled “Skills vs Orchestrator”| Feature | Skills | Orchestrator |
|---|---|---|
| Setup | kj init → slash commands |
MCP server registration |
| Agents | Host AI only | Multiple (Claude, Codex, Gemini, Aider, OpenCode) |
| Guardrails | In the prompt | In code (deterministic guards) |
| SonarQube | Manual or if Docker running | Integrated quality gate |
| Session management | None | Full (pause, resume, budget) |
| Cost tracking | None | Estimated per-session |
| Best for | Quick tasks, single developer | Complex tasks, CI/CD pipelines |
Both modes can coexist — use skills for quick tasks and the orchestrator for complex multi-agent work.
Karajan Code™ · AGPL-3.0