Home Skills Marketplace Changelog Guide Search 🔍 GitHub

Yana AI Guide

Everything you need to install, configure, and run Yana AI.

Installation

Three components, install what you need:

# Claude Code plugin
npm install yana-ai
npx yana-ai-install        # wire hooks into .claude/ (required)

# Rust runtime (scan, hunt, watch, ci, map…)
cargo install yana-rt

# Python CLI (legacy commands)
pip install yana-ai
Important: Always run npx yana-ai-install once after npm install — it wires the PreToolUse / PostToolUse hooks into your .claude/settings.json. From npm v12 (July 2026) install scripts no longer run automatically, so this step is required — the postinstall fallback only fires on npm ≤ 11.

First Scan

Scan your project for agent security risks in 30 seconds:

cd your-project
yana-rt scan .

# JSON output
yana-rt scan . --json

# Only show critical/high findings
yana-rt scan . --fail-on high

# Scan only changed files since main
yana-rt scan . --diff origin/main

Scanner checks: hardcoded secrets, SSRF vectors, path traversal, supply chain, prompt injection, tool poisoning, and 40+ other categories.

Gate System

Yana AI intercepts every Claude tool call through a layered gate pipeline:

GateLayerBlocks
L0Audit chainLog tampering, replay attacks
L1Anti-evasionbase64 decode→exec, pipe-to-shell, eval
L2SanitizeSubshell injection, LD_PRELOAD, env hijack
L2.5Overlay sandboxWrite to core/ without signature
L3Runtime isolationDocker/nsjail sandbox escape
L4Supply chainUnvetted package installs
L5UI qualityArbitrary hex colors, missing dark mode
Note: Gates run automatically when hooks are wired. No config needed beyond npx yana-ai-install.

yana-rt scan

Full security audit of your .claude/ setup and source files.

yana-rt scan .                    # full scan
yana-rt scan . --only secrets     # secrets only
yana-rt scan . --markdown out.md  # write report
yana-rt scan . --sarif out.sarif  # SARIF for GitHub

yana-rt hunt

Active scanner — goes deeper into code vulnerabilities and supply chain.

yana-rt hunt run .         # full hunt
yana-rt hunt secrets .     # secrets only
yana-rt hunt deps .        # dependency audit

yana-rt ci

CI/CD workflow security check — unpinned actions, missing permissions, secret exposure.

yana-rt ci check .github/workflows/
yana-rt ci check .github/workflows/deploy.yml

yana-rt watch

Live file watcher — prints changes to skills, agents, rules as they happen.

yana-rt watch start                              # watch default dirs
yana-rt watch start --dirs core/skills,src       # custom dirs
yana-rt watch start --interval 5                 # poll every 5s

yana-rt init

Auto-setup Yana AI in any project — creates hooks, config, and settings skeleton in one command.

yana-rt init run .          # setup current directory
yana-rt init run ~/my-app   # setup another project
yana-rt init dry .          # preview without writing files

Creates: .claude/settings.json, .claude/hooks/pre-tool-use.sh, .yana-ai/config.toml. Skips files that already exist.

All Commands

CommandDescription
initAuto-setup Yana AI in any project — hooks, config, settings
scanSecurity audit of agent setup + source
huntActive code vulnerability scanner
ciCI/CD workflow health check
mapAgent blast radius — what AI can reach
fixAuto-apply safe fixes for known finding IDs
scoreAudit score with deduction breakdown
doctorEnvironment and dependency health
watchLive file monitor for skills/agents/rules
graphKnowledge graph — build/search/diff
vaultVietnamese-first knowledge vault
busAgent message bus — emit/read/reply
memoryL3 shared memory across sessions
taskTask lifecycle with evidence
costToken usage and spend tracking

Using Skills

Skills are slash commands for Claude Code. With yana-ai installed, 3,457 skills are available.

# In Claude Code chat:
/security-review       # OWASP review of current diff
/tdd-cycle             # Red → Green → Refactor loop
/debug                 # Systematic debugging
/code-review           # Code quality review
/wrap-up               # End-of-session summary

Browse all skills at skills.html or search at search.html.

Agent Teams

95 specialized agents auto-routed by /agent-router. Key agents:

AgentWhen used
plannerBefore any 3+ file feature
code-reviewerAfter writing code
security-reviewerBefore merge on sensitive code
tdd-guideTest-driven development workflow
database-reviewerSchema changes, migrations
build-error-resolverWhen build fails
🎵