Skip to content

VoDaiLocz/KILO-KIT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

23 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Kilo-Kit social preview

GitHub stars Last commit Contributors Publish workflow npm version npm downloads License

134 skills MCP ready Codex ready Trusted publishing Node >=20 TypeScript 5.9

πŸš€ Kilo-Kit: Professional AI Agent Development Framework

Version: 1.0.0
Author: Kilo-Kit Team
License: Apache 2.0

🎯 What is Kilo-Kit?

Kilo-Kit is a comprehensive, modular framework for building and managing AI agent systems at scale (kilo-code = thousands of lines, hundreds of files). It introduces a revolutionary Cognitive Flow Architecture (CFA) that treats AI interactions as continuous flows rather than discrete events.

Core Philosophy

🧠 "Anticipate needs before they arise"
πŸ”„ "Learn from every interaction"
πŸ“ "Modularity enables scalability"
🎯 "Quality over quantity in every token"
πŸ’° "Cost-aware intelligence"

✨ Key Innovations

Innovation Description
Predictive Context Engine (PCE) Pre-loads context before you need it
Composable Behavior Units (CBU) Build workflows from micro-behaviors
Token Economy Manager (TEM) Smart budgeting for cost/quality balance
Decision Audit Trail (DAT) Full explainability for all decisions
Skill Effectiveness Tracker (SET) Self-improving skill system
Adaptive Routing Learns optimal skill selection over time

✨ Key Features

Feature Description
Skill System Modular, loadable skills for specialized tasks
Adaptive Dispatch Intelligent skill routing that learns from usage
Progressive Disclosure Three-level context loading for efficiency
Context Engineering Token optimization and attention management
Quality Gates Mandatory checkpoints: typecheck β†’ lint β†’ test β†’ build
TDD Workflow Test-first development with RED β†’ GREEN β†’ REFACTOR
Security First Input validation, parameterized queries, no hardcoded secrets
Multi-Stack Support TypeScript, Python, .NET, Go ready

πŸ’‘ Skill Library

skills/ is the canonical workflow surface for Kilo-Kit. It supports the same Progressive Disclosure model as the core framework: scan the index first, load one skill body when routed, then open references/scripts only when needed.

Layer Purpose
skills/kilo-kit/ Core Kilo-Kit framework skills and Hard-Gate workflows
skills/<category>/<skill>/ Expanded skill library organized by execution domain
skills/README.md Human-facing catalog with category summaries and install commands
skills/SKILLS_INDEX.md Lightweight agent index for Predictive Context Engine prefetching

Install the Full Skill Library

This installs every valid SKILL.md under skills/, including Kilo-Kit core skills and the expanded category library.

npx skills@latest add VoDaiLocz/KILO-KIT

Use this when you want the entire Kilo-Kit workflow surface available in your agents.

Install a Category

Use a category path when you only want one execution domain:

npx skills@latest add VoDaiLocz/KILO-KIT/skills/engineering

Install a Single Skill

npx skills@latest add VoDaiLocz/KILO-KIT/skills/engineering/tdd

πŸ“ Project Structure

kilo-kit/
β”œβ”€β”€ README.md                    # This file
β”œβ”€β”€ QUICKSTART.md               # 15-minute getting started guide
β”œβ”€β”€ CONTRIBUTING.md             # Contribution guidelines
β”œβ”€β”€ CHANGELOG.md                # Version history
β”‚
β”œβ”€β”€ .claude-plugin/             # Claude Code entry point
β”‚   └── instructions.md
β”œβ”€β”€ .cursor-plugin/             # Cursor IDE entry point
β”‚   └── instructions.md
β”œβ”€β”€ .codex/                     # OpenAI Codex entry point
β”‚   └── instructions.md
β”œβ”€β”€ .opencode/                  # OpenCode entry point
β”‚   └── instructions.md
β”‚
β”œβ”€β”€ skills/                     # Installable skill packs
β”‚   β”œβ”€β”€ README.md               # Human-facing skill catalog
β”‚   β”œβ”€β”€ SKILLS_INDEX.md         # Lightweight agent skill index
β”‚   β”œβ”€β”€ kilo-kit/               # Core Kilo-Kit skills
β”‚   β”‚   β”œβ”€β”€ _template/          # Skill template
β”‚   β”‚   β”œβ”€β”€ debugging/          # Debugging skills
β”‚   β”‚   β”œβ”€β”€ development/        # Development skills
β”‚   β”‚   └── quality/            # Quality assurance skills
β”‚   β”œβ”€β”€ engineering/            # Engineering and framework skills
β”‚   β”œβ”€β”€ productivity/           # Agent workflow skills
β”‚   β”œβ”€β”€ problem-solving/        # Debugging/reasoning skills
β”‚   β”œβ”€β”€ design/                 # UI/design skills
β”‚   └── ...                     # Games, ops, docs, AI media, security
β”‚
β”œβ”€β”€ commands/                   # Workflow commands
β”‚   β”œβ”€β”€ quality-gate.md         # Quality gate workflow
β”‚   β”œβ”€β”€ init-skill.md           # Skill initialization
β”‚   └── validate-skill.md       # Skill validation
β”‚
β”œβ”€β”€ src/                        # Core system source
β”‚   β”œβ”€β”€ core/                   # Core system components
β”‚   β”‚   β”œβ”€β”€ KILO_MASTER.md     # Master skill file (entry point)
β”‚   β”‚   β”œβ”€β”€ predictive-engine/  # Predictive Context Engine
β”‚   β”‚   β”œβ”€β”€ routing-engine/     # Adaptive Routing Engine
β”‚   β”‚   β”œβ”€β”€ execution-engine/   # Execution & Quality Gates
β”‚   β”‚   └── knowledge-layer/    # Persistent Knowledge
β”‚   β”‚
β”‚   β”œβ”€β”€ behaviors/              # Composable Behavior Units
β”‚   β”‚   β”œβ”€β”€ atomic/             # Smallest behavior units
β”‚   β”‚   β”œβ”€β”€ compound/           # Combined behaviors
β”‚   β”‚   └── meta/               # Meta-behaviors
β”‚   β”‚
β”‚   └── tools/                  # CLI and utility tools
β”‚       β”œβ”€β”€ init-skill.py       # Skill initializer
β”‚       β”œβ”€β”€ validate-skill.py   # Skill validator (Python)
β”‚       └── validate-skill.js   # Skill validator (Node.js)
β”‚
β”œβ”€β”€ docs/                       # Documentation
β”‚   β”œβ”€β”€ architecture/           # Architecture decisions
β”‚   β”œβ”€β”€ COMPLETION_ASSESSMENT.md
β”‚   β”œβ”€β”€ DEEP_ANALYSIS.md
β”‚   └── PROJECT_STRUCTURE.md
β”‚
└── examples/                   # Real-world examples
    β”œβ”€β”€ basic/                  # Basic usage patterns
    β”œβ”€β”€ intermediate/           # Intermediate patterns
    └── advanced/               # Advanced patterns

πŸš€ Quick Start

1. Install

# Clone the repository
git clone https://github.com/VoDaiLocz/KILO-KIT.git
cd kilo-kit

# No dependencies required - works out of the box!

2. Configure Your Agent

Copy the master skill file to your agent's configuration:

# For most AI agents
cp src/core/KILO_MASTER.md ~/.your-agent/KILO_MASTER.md

# Update your agent's system prompt to reference it

3. Use Skills

Skills are automatically loaded when your task matches their keywords. See the Skill Dispatch Table below.

πŸ”Œ MCP Integration

Kilo-Kit v1.1.1 includes a read-only MCP server that exposes the skill library as an adaptive routing service for MCP-capable agents.

MCP Surface Purpose
kilo_route_intent Route the current chat request to the best Kilo-Kit skills
kilo_search_skills Search the skill catalog by task or keyword
kilo_get_skill Load one exact SKILL.md with context-safe truncation
kilo_validate_skills Run the skill validation quality gate
kilo://skills/index Resource view of the lightweight skill index
kilo://skills/{category}/{skill} Resource view for one skill

Install from npm in any MCP-capable client:

{
  "mcpServers": {
    "kilo-kit": {
      "command": "npx",
      "args": ["-y", "@vodailoc/kilo-kit-mcp"]
    }
  }
}

Recommended Codex CLI config on Windows:

[mcp_servers.kilo-kit]
command = "npm"
args = ["exec", "--prefix", "C:\\Users\\Admin", "--yes", "--package=@vodailoc/kilo-kit-mcp", "--", "kilo-kit-mcp"]
startup_timeout_sec = 60
enabled = true

The --prefix keeps npm from resolving the local source checkout when Codex is opened inside the Kilo-Kit repository.

For local development, build and verify:

cd mcp
npm install
npm run build
npm test
npm run smoke

Local client config template:

{
  "mcpServers": {
    "kilo-kit": {
      "command": "node",
      "args": ["<absolute-path-to-KILO-KIT>/mcp/dist/server.js"],
      "env": {
        "KILO_KIT_REPO_ROOT": "<absolute-path-to-KILO-KIT>"
      }
    }
  }
}

See mcp/README.md and .mcp/kilo-kit.example.json.

Maintainer Release Flow

Kilo-Kit publishes @vodailoc/kilo-kit-mcp through npm Trusted Publishing. Configure npm once with:

Field Value
Provider GitHub Actions
Repository VoDaiLocz/KILO-KIT
Workflow filename publish.yml

After that, run the GitHub Actions workflow Publish npm package, or push a version tag such as v1.1.1. The workflow uses OIDC, so it does not need an npm token or interactive OTP.

πŸ“‹ Skill Dispatch Table

Task Keywords Skill to Load
bug, error, fix, debug skills/kilo-kit/debugging/systematic/
validate, validation skills/kilo-kit/debugging/systematic/
root cause, why skills/kilo-kit/debugging/root-cause/
verify, confirm skills/kilo-kit/debugging/verification/
review, PR, code review skills/kilo-kit/quality/code-review/
test, TDD, testing skills/kilo-kit/quality/testing/
security, auth, OWASP skills/kilo-kit/development/security/
API, backend, server skills/kilo-kit/development/backend/

πŸŽ“ Core Principles

1. Cognitive Flow Architecture

Traditional:  Task β†’ Process β†’ Response (done)

Kilo-Kit:     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
              β”‚      COGNITIVE FLOW         β”‚
              β”‚                             β”‚
    Input ───►│  Predict β†’ Execute β†’ Learn  │───► Output
              β”‚      ↑              β”‚       β”‚
    Next  ───►│      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜       │───► Better
              β”‚                             β”‚
              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

2. Quality Gates (NEVER SKIP)

# Before EVERY commit
typecheck β†’ lint β†’ test β†’ build

# All must pass. No exceptions.

3. The Three Pillars

ANTICIPATE β†’ EXECUTE β†’ LEARN β†’ OPTIMIZE
     ↑                            β”‚
     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

4. Progressive Disclosure

Level 1: Metadata (always loaded, ~100 tokens)
Level 2: SKILL.md body (when triggered, <5k tokens)  
Level 3: References/Scripts (on-demand, unlimited)

πŸ”§ Creating Custom Skills

Use the skill template:

python src/tools/init-skill.py my-skill --path ./skills/kilo-kit/

This creates:

my-skill/
β”œβ”€β”€ SKILL.md           # Main instructions (required)
β”œβ”€β”€ references/        # Documentation to load as needed
β”œβ”€β”€ scripts/           # Executable utilities
└── assets/            # Templates, images, etc.

SKILL.md Format

---
name: my-skill
description: >-
  Clear description of what this skill does and when to use it.
  Include keywords that should trigger this skill.
version: 1.0.0
behaviors: [behavior1, behavior2]
token_estimate:
  min: 500
  typical: 1500
  max: 5000
---

# My Skill

## When to Use
- Situation 1
- Situation 2

## Process
1. Step 1
2. Step 2

## Guidelines
- Guideline 1
- Guideline 2

## References
- `references/detailed-guide.md` - For detailed instructions
- `scripts/helper.py` - For automated tasks

πŸ“š Documentation

🀝 Contributing

We welcome contributions! Please read CONTRIBUTING.md for:

  • Code of conduct
  • Development setup
  • Pull request process
  • Coding standards

πŸ“Š Stack Preferences

TypeScript/JavaScript (2024-2025)

Category Preferred Avoid
Runtime Bun, Node 20+ Node <18
Backend Hono, Elysia Express
ORM Drizzle, Prisma 5+ Sequelize
Testing Vitest, Playwright Jest
Package pnpm, Bun npm

Python

Category Preferred Avoid
Runtime Python 3.11+ <3.9
Backend FastAPI, Litestar Flask
ORM SQLAlchemy 2.0 <2.0
Validation Pydantic v2 v1
Linting Ruff, mypy flake8

.NET

Category Preferred
Framework .NET 8+
Web ASP.NET Core
ORM EF Core
Testing xUnit, NUnit

πŸ—οΈ Roadmap

  • v1.0.0 - Core Cognitive Flow Architecture
  • v1.1.0 - MCP Integration
  • v1.2.0 - Multi-Agent Orchestration
  • v2.0.0 - Visual Workflow Builder

πŸ“„ License

Apache 2.0 - See LICENSE for details.


Made with ❀️ for developers who value quality, efficiency, and scalability.

Kilo-Kit β€” Where AI meets excellence.

About

Kilo-Kit is a comprehensive, modular framework for building and managing AI agent systems at scale (kilo-code = thousands of lines, hundreds of files). It introduces a revolutionary Cognitive Flow Architecture (CFA) that treats AI interactions as continuous flows rather than discrete events.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors