<p align="center">
  <a href="https://cek.neolab.finance/" target="blank"><img src="docs/assets/Context-Engineering-Kit6.png" width="512" alt="Context Engineering Kit - advanced context engineering techniques" /></a>
</p>

<div align="center">

[![License](https://img.shields.io/badge/license-GPL%203.0-blue.svg)](LICENSE)
[![agentskills.io](https://img.shields.io/badge/format-agentskills.io-purple.svg)](https://agentskills.io)
[![Mentioned in Awesome Claude Code](https://awesome.re/mentioned-badge.svg)](https://github.com/hesreallyhim/awesome-claude-code)

Advanced context engineering techniques and patterns for Claude Code, OpenCode, Cursor, Antigravity and more.

[Quick Start](#quick-start) · [Plugins](#plugins-list) · [Github Action](https://cek.neolab.finance/guides/ci-integration) · [Reference](https://cek.neolab.finance/reference) · [Docs](https://cek.neolab.finance/)

</div>

# [Context Engineering Kit](https://cek.neolab.finance)

Hand-crafted collection of advanced context engineering techniques and patterns with minimal token footprint, focused on improving agent result quality and predictability.

The marketplace is based on prompts used daily by our company developers for a long time, supplemented by plugins from benchmarked papers and high-quality projects.

## Key Features

- **Simple to Use** - Easy to install and use without any dependencies. Contains automatically used skills and self-explanatory commands.
- **Token-Efficient** - Carefully crafted prompts and architecture, preferring command-oriented skills with sub-agents over general information skills when possible, to minimize populating context with unnecessary information.
- **Quality-Focused** - Each plugin is focused on meaningfully improving agent results in a specific area.
- **Granular** - Install only the plugins you need. Each plugin loads only its specific agents, commands, and skills. Each without overlap or redundant skills.
- **Scientifically proven** - Plugins are based on proven techniques and patterns that were tested by well-trusted benchmarks and studies.
- **Open-Standards** - Skills are based on [agentskills.io](https://agentskills.io) specification. The [SDD](https://cek.neolab.finance/plugins/sdd) plugin is based on the **Arc42** specification standard for software development documentation.

## News

Updates from key releases:

- **v3.0.0:** Added support for AMP and Hermes agents. [Tech Stack plugin](https://cek.neolab.finance/plugins/tech-stack) now automatically injects typescript best practices when agent reads or writes TypeScript files.
- **v2.2.0:** [Subagent-Driven Development plugin](https://cek.neolab.finance/plugins/sadd) now works as a distilled version of [SDD plugin](https://cek.neolab.finance/plugins/sdd) using meta-judge and judge sub-agents for specification generation on the fly and in parallel to implementation. [DDD plugin](https://cek.neolab.finance/plugins/ddd) now includes Clean Architecture, DDD, SOLID, Functional Programming, and other pattern examples as rules that are automatically added to the context during code writing.
- **v2.1.0:** [Spec-Driven Development plugin](https://cek.neolab.finance/plugins/sdd) agents include high-level code quality guidelines from [DDD plugin](https://cek.neolab.finance/plugins/ddd).
- **v2.0.0:** [Spec-Driven Development plugin](https://cek.neolab.finance/plugins/sdd) was rewritten from scratch. It is now able to produce working code in 99% of cases on real-life production projects!

## Quick Start

### Step 1: Install Marketplace and Plugins

#### Claude Code

Open Claude Code and add the Context Engineering Kit marketplace

```bash
/plugin marketplace add NeoLabHQ/context-engineering-kit
```

This makes all plugins available for installation, but does not load any agents or skills into your context.

Install any plugin, for example reflexion:

```bash
/plugin install reflexion@NeoLabHQ/context-engineering-kit
```

Each installed plugin loads only its specific agents, commands, and skills into Claude's context.

#### Cursor, Antigravity, Codex, OpenCode and others

Run the [vercel-labs/skills](https://github.com/vercel-labs/skills) command in your terminal:

```bash
npx skills add NeoLabHQ/context-engineering-kit
```
You can pick which skills and agents to install.

<details>
<summary>Alternative installation methods</summary>

You can use [OpenSkills](https://github.com/numman-ali/openskills) to install skills by running the following commands:

```bash
npx openskills install NeoLabHQ/context-engineering-kit
npx openskills sync
```

</details>

### Step 2: Use Plugin

```bash
> claude "implement user authentication"
# Claude implements user authentication, then you can ask it to reflect on implementation

> /reflexion:reflect
# It analyses results and suggests improvements
# If issues are obvious, it will fix them immediately
# If they are minor, it will suggest improvements that you can respond to
> fix the issues

# If you would like to prevent issues found during reflection from appearing again,
# ask Claude to extract resolution strategies and save the insights to project memory
> /reflexion:memorize
```

Alternatively, you can use the `reflect` word in the initial prompt:

```bash
> claude "implement user authentication, then reflect"
# Claude implements user authentication,
# then hook automatically runs /reflexion:reflect
```

In order to use this hook, you need to have `bun` installed. However, it is not required for the overall command.

## Documentation

You can find the complete Context Engineering Kit documentation [here](https://cek.neolab.finance).

However, the main plugins we recommend starting from are [Subagent-Driven Development](https://cek.neolab.finance/plugins/sadd) and [Spec-Driven Development](https://cek.neolab.finance/plugins/sdd).

### Agent Reliability Engineering

The three plugins in this marketplace are designed to improve how accurately and consistently the agent follows provided instructions and reduce the number of hallucinations and bias toward incorrect solutions. They are not competitors but rather complementary to each other, because they allow you to balance reliability vs token cost. Here is a high-level comparison of different agent usage approaches vs probability to receive results that are fully accurate and include zero hallucinations based on task complexity:

<table>
<thead>
<tr>
<th rowspan="2">Approach</th>
<th colspan="4">Probability to receive fully accurate results for the following number of changed files (p)</th>
<th rowspan="2">Tokens Overhead</th>
<th rowspan="2">What does this mean in practice</th>
</tr>
<tr>
<th>1-3</th>
<th>4-10</th>
<th>10-20</th>
<th>20+</th>
</tr>
</thead>
<tbody>
<tr>
<td>One-shot prompt</td>
<td>60%-80%</td>
<td>30%-50%</td>
<td>5%-30%</td>
<td>1%-20%</td>
<td>0</td>
<td>Accuracy depends on model, but with context growth LLM quality degrades exponentially</td>
</tr>
<tr>
<td><a href="https://cek.neolab.finance/plugins/reflexion/reflect">/reflect</a></td>
<td>68%-91%</td>
<td>49%-71%</td>
<td>13%-41%</td>
<td>1%-30%</td>
<td>1k-3k</td>
<td>Agent finds and fixes missed requirements on its own</td>
</tr>
<tr>
<td><a href="https://cek.neolab.finance/plugins/reflexion/reflect">/reflect</a> + <a href="https://cek.neolab.finance/plugins/reflexion/memorize">/memorize</a></td>
<td>79%-87%</td>
<td>60%-79%</td>
<td>34%-42%</td>
<td>5%-30%</td>
<td>2k-5k</td>
<td>Agent extracts repeatable mistakes and avoids them during new tasks</td>
</tr>
<tr>
<td><a href="https://cek.neolab.finance/plugins/sadd/do-and-judge">/do-and-judge</a></td>
<td>90%</td>
<td>83%</td>
<td>60%</td>
<td>30%</td>
<td>1.5x-3x</td>
<td>Mitigates context rot, bias, hallucinations and missed requirements using Judge sub-agent</td>
</tr>
<tr>
<td><a href="https://cek.neolab.finance/plugins/sadd/do-in-steps">/do-in-steps</a></td>
<td>92%</td>
<td>90%</td>
<td>71%</td>
<td>50%</td>
<td>3x-5x</td>
<td>Resolves all issues similarly to /do-and-judge, but separately per file group</td>
</tr>
<tr>
<td><a href="https://cek.neolab.finance/plugins/sdd">/plan-task + /implement-task</a></td>
<td>94%</td>
<td>93%</td>
<td>85%</td>
<td>70%</td>
<td>5x-20x</td>
<td>Performs the /do-in-steps flow, but the specification mitigates issues caused by inconsistent architecture and codebase size</td>
</tr>
<tr>
<td><a href="https://cek.neolab.finance/plugins/sdd/brainstorm">/brainstorm</a> + <a href="https://cek.neolab.finance/plugins/sdd/plan-task">/plan-task</a> + <a href="https://cek.neolab.finance/plugins/sdd/implement-task">/implement-task</a></td>
<td>95%</td>
<td>95%</td>
<td>90%</td>
<td>80%</td>
<td>5x-20x</td>
<td>Brainstorming decreases the number of incorrect decisions and missed requirements</td>
</tr>
<tr>
<td><a href="https://cek.neolab.finance/plugins/sdd/plan-task">/plan-task</a> + human review + <a href="https://cek.neolab.finance/plugins/sdd/implement-task">/implement-task</a></td>
<td>99%</td>
<td>99%</td>
<td>99%</td>
<td>95%</td>
<td>5x-35x</td>
<td>Human review mitigates misunderstanding of requirements by LLM</td>
</tr>
</tbody>
</table>

> Reliability metrics are based on real development usage on production projects for more than 6 months.

## Plugins List

To view all available plugins:

```bash
/plugin
```

- [Reflexion](https://cek.neolab.finance/plugins/reflexion) - Introduces feedback and refinement loops to improve output quality.
- [Spec-Driven Development](https://cek.neolab.finance/plugins/sdd) - Introduces commands for specification-driven development, based on Continuous Learning + LLM-as-Judge + Agent Swarm. Achieves **development as compilation** through reliable code generation.
- [Review](https://cek.neolab.finance/plugins/review) - Introduces code and PR review commands and skills using multiple specialized agents with impact/confidence filtering.
- [Git](https://cek.neolab.finance/plugins/git) - Introduces commands for commit and PR creation.
- [Test-Driven Development](https://cek.neolab.finance/plugins/tdd) - Introduces commands for test-driven development, common anti-patterns and skills for testing using subagents.
- [Subagent-Driven Development](https://cek.neolab.finance/plugins/sadd) - Introduces skills for subagent-driven development, which dispatches a fresh subagent for each task with code review between tasks, enabling fast iteration with quality gates.
- [Domain-Driven Development](https://cek.neolab.finance/plugins/ddd) - Introduces commands to update CLAUDE.md with best practices for domain-driven development, focused on code quality, and includes Clean Architecture, SOLID principles, and other design patterns.
- [FPF - First Principles Framework](https://cek.neolab.finance/plugins/fpf) - Introduces structured reasoning using ADI cycle (Abduction-Deduction-Induction) with knowledge layer progression. Uses workflow command pattern with fpf-agent for hypothesis generation, verification, and auditable decision-making.
- [Kaizen](https://cek.neolab.finance/plugins/kaizen) - Inspired by Japanese continuous improvement philosophy, Agile and Lean development practices. Introduces commands for analysis of root causes of issues and problems, including 5 Whys, Cause and Effect Analysis, and other techniques.
- [Customaize Agent](https://cek.neolab.finance/plugins/customaize-agent) - Commands and skills for writing and refining commands, hooks, and skills for Claude Code. Includes Anthropic Best Practices and [Agent Persuasion Principles](https://arxiv.org/abs/2508.00614) that can be useful for sub-agent workflows.
- [Docs](https://cek.neolab.finance/plugins/docs) - Commands for analyzing projects, writing and refining documentation.
- [Tech Stack](https://cek.neolab.finance/plugins/tech-stack) - Rules for language-specific best practices, automatically applied when working on matching file types.
- [MCP](https://cek.neolab.finance/plugins/mcp) - Commands for setting up well-known MCP server integration if needed and updating CLAUDE.md file with requirements to use this MCP server for the current project.

## Stay ahead

Star Context Engineering Kit on GitHub to support its development and get notified about new features and updates.

<img src="docs/assets/context-engineering-kit-like.gif" alt="Star Context Engineering Kit on GitHub" />

### [Reflexion](https://cek.neolab.finance/plugins/reflexion)

Collection of commands that force the LLM to reflect on the previous response and output. Includes **automatic reflection hooks** that trigger when you include "reflect" in your prompt.

**How to install**

```bash
/plugin install reflexion@NeoLabHQ/context-engineering-kit
```

**Commands**

- [/reflexion:reflect](https://cek.neolab.finance/plugins/reflexion/reflect) - Reflect on previous response and output, based on Self-refinement framework for iterative improvement with complexity triage and verification
- [/reflexion:memorize](https://cek.neolab.finance/plugins/reflexion/memorize) - Memorize insights from reflections and update the CLAUDE.md file with this knowledge. Curates insights from reflections and critiques into CLAUDE.md using Agentic Context Engineering
- [/reflexion:critique](https://cek.neolab.finance/plugins/reflexion/critique) - Comprehensive multi-perspective review using specialized judges with debate and consensus building

**Hooks**

- **Automatic Reflection Hook** - Triggers `/reflexion:reflect` automatically when "reflect" appears in your prompt

**Theoretical Foundation**

The plugin is based on papers like [Self-Refine](https://arxiv.org/abs/2303.17651) and [Reflexion](https://arxiv.org/abs/2303.11366). These techniques improve the output of large language models by introducing feedback and refinement loops.

They are proven to **increase output quality by 8–21%** based on both automatic metrics and human preferences across seven diverse tasks, including dialogue generation, coding, and mathematical reasoning, when compared to standard one-step model outputs.

On top of that, the plugin is based on the [Agentic Context Engineering](https://arxiv.org/abs/2510.04618) paper that uses memory updates after reflection, and **consistently outperforms strong baselines by 10.6%** on agents.

### [Review](https://cek.neolab.finance/plugins/review)

Comprehensive code and PR review commands using multiple specialized agents for thorough code quality evaluation with impact/confidence filtering.

**How to install**

```bash
/plugin install review@NeoLabHQ/context-engineering-kit
```

**Commands**

- [/review-local-changes](https://cek.neolab.finance/plugins/review/review-local-changes) - Comprehensive review of local uncommitted changes using specialized agents with code improvement suggestions
- [/review-pr](https://cek.neolab.finance/plugins/review/review-pr) - Comprehensive pull request review using specialized agents

**Agents**

This plugin uses multiple specialized agents for comprehensive code quality analysis:

- **bug-hunter** - Identifies potential bugs, edge cases, and error-prone patterns
- **code-quality-reviewer** - Evaluates code structure, readability, and maintainability
- **contracts-reviewer** - Reviews interfaces, API contracts, and data models
- **historical-context-reviewer** - Analyzes changes in relation to codebase history and patterns
- **security-auditor** - Identifies security vulnerabilities and potential attack vectors
- **test-coverage-reviewer** - Evaluates test coverage and suggests missing test cases

You can use this plugin to review code in GitHub Actions; to do so, follow [this guide](https://cek.neolab.finance/guides/ci-integration).

### [Git](https://cek.neolab.finance/plugins/git)

Commands and skills for streamlined Git operations including commits, pull request creation, and advanced workflow patterns.

**How to install**

```bash
/plugin install git@NeoLabHQ/context-engineering-kit
```

**Commands**

- [/commit](https://cek.neolab.finance/plugins/git/commit) - Create well-formatted commits with conventional commit messages and emoji
- [/create-pr](https://cek.neolab.finance/plugins/git/create-pr) - Create pull requests using GitHub CLI with proper templates and formatting
- [/analyze-issue](https://cek.neolab.finance/plugins/git/analyze-issue) - Analyze a GitHub issue and create a detailed technical specification
- [/load-issues](https://cek.neolab.finance/plugins/git/load-issues) - Load all open issues from GitHub and save them as markdown files
- [/worktree](https://cek.neolab.finance/plugins/git/git-worktrees) - Create, compare, and merge git worktrees for parallel development with automatic dependency installation

**Skills**

- [notes](https://cek.neolab.finance/plugins/git/git-notes) - Skill about using git notes to add metadata to commits without changing history.

### [Test-Driven Development](https://cek.neolab.finance/plugins/tdd)

Commands and skills for test-driven development with anti-pattern detection.

**How to install**

```bash
/plugin install tdd@NeoLabHQ/context-engineering-kit
```

**Commands**

- [/write-tests](https://cek.neolab.finance/plugins/tdd/write-tests) - Systematically add test coverage for local code changes using specialized review and development agents
- [/fix-tests](https://cek.neolab.finance/plugins/tdd/fix-tests) - Fix failing tests after business logic changes or refactoring using orchestrated agents

**Skills**

- **test-driven-development** - Introduces TDD methodology, best practices, and skills for testing using subagents

### [Subagent-Driven Development](https://cek.neolab.finance/plugins/sadd)

Execution framework for competitive generation, multi-agent evaluation, and subagent-driven development with quality gates.

**How to install**

```bash
/plugin install sadd@NeoLabHQ/context-engineering-kit
```

**Commands**

- [/launch-sub-agent](https://cek.neolab.finance/plugins/sadd/launch-sub-agent) - Launch focused sub-agents with intelligent model selection, Zero-shot CoT reasoning, and self-critique verification
- [/do-and-judge](https://cek.neolab.finance/plugins/sadd/do-and-judge) - Execute a single task with implementation sub-agent, independent judge verification, and automatic retry loop until passing
- [/do-in-parallel](https://cek.neolab.finance/plugins/sadd/do-in-parallel) - Execute the same task across multiple independent targets in parallel with context isolation
- [/do-in-steps](https://cek.neolab.finance/plugins/sadd/do-in-steps) - Execute complex tasks through sequential sub-agent orchestration with automatic decomposition and context passing
- [/do-competitively](https://cek.neolab.finance/plugins/sadd/do-competitively) - Execute tasks through competitive generation, multi-judge evaluation, and evidence-based synthesis to produce superior results
- [/tree-of-thoughts](https://cek.neolab.finance/plugins/sadd/tree-of-thoughts) - Execute complex reasoning through systematic exploration of solution space, pruning unpromising branches, and synthesizing the best solution
- [/judge-with-debate](https://cek.neolab.finance/plugins/sadd/judge-with-debate) - Evaluate solutions through iterative multi-judge debate with consensus building or disagreement reporting
- [/judge](https://cek.neolab.finance/plugins/sadd/judge) - Evaluate completed work using LLM-as-Judge with structured rubrics and evidence-based scoring

**Skills**

- [subagent-driven-development](https://cek.neolab.finance/plugins/sadd/subagent-driven-development) - Dispatches a fresh subagent for each task with code review between tasks, enabling fast iteration with quality gates
- [multi-agent-patterns](https://cek.neolab.finance/plugins/sadd/multi-agent-patterns) - Design multi-agent architectures (supervisor, peer-to-peer, hierarchical) for complex tasks exceeding single-agent context limits

### [Spec-Driven Development](https://cek.neolab.finance/plugins/sdd)

Comprehensive specification-driven development workflow plugin that transforms prompts into production-ready implementations through structured planning, architecture design, and quality-gated execution.

This plugin is designed to consistently produce working code. It was tested on real-life production projects by our team, and in 100% of cases, it generated working code aligned with the initial prompt. If you find a use case it cannot handle, please report it as an issue.

#### Key Features

- **Development as compilation** — The plugin works like a "compilation" or "nightly build" for your development process: `task specs → run /implement-task → working code`. After writing your prompt, you can launch the plugin and expect a working result when you come back. The time it takes depends on task complexity — simple tasks may finish in 30 minutes, while complex ones can take a few days.
- **Benchmark-level quality in real life** — Model benchmarks improve with each release, yet real-world results usually stay the same. That's because benchmarks reflect the best possible output a model can achieve, whereas in practice LLMs tend to drift toward sub-optimal solutions that can be wrong or non-functional. This plugin uses a variety of patterns to keep the model working at its peak performance.
- **Customizable** — Balance result quality and process speed by adjusting command parameters. Learn more in the [Customization](./customization.md) section.
- **Developer time-efficient** — The overall process is designed to minimize developer time and reduce the number of interactions, while still producing results better than what a model can generate from scratch. However, overall quality is highly proportional to the time you invest in iterating and refining the specification.
- **Industry-standard** — The plugin's specification template is based on the arc42 standard, adjusted for LLM capabilities. Arc42 is a widely adopted, high-quality standard for software development documentation used by many companies and organizations.
- **Works best in complex or large codebases** — While most other frameworks work best for new projects and greenfield development, this plugin is designed to perform better the more existing code and well-structured architecture you have. At each planning phase it includes a **codebase impact analysis** step that evaluates which files may be affected and which patterns to follow to achieve the desired result.
- **Simple** — This plugin avoids unnecessary complexity and mainly uses just 3 commands, offloading process complexity to the model via multi-agent orchestration. `/implement-task` is a single command that produces working code from a task specification. To create that specification, you run `/sdd:add-task` and `/plan-task`, which analyze your prompt and iteratively refine the specification until it meets the required quality.

#### Quick Start

```bash
/plugin install sdd@NeoLabHQ/context-engineering-kit
```

Then run the following commands:

```bash
# create .specs/tasks/draft/design-auth-middleware.feature.md file with initial prompt
/add-task "Design and implement authentication middleware with JWT support"

# write detailed specification for the task
/plan-task
# will move task to .specs/tasks/todo/ folder
```

Restart the Claude Code session to clear context and start fresh. Then run the following command:

```bash
# implement the task
/implement-task @.specs/tasks/todo/design-auth-middleware.feature.md
# produces working implementation and moves the task to .specs/tasks/done/ folder
```

- [Detailed guide](https://cek.neolab.finance/guides/spec-driven-development)
- [Usage Examples](https://cek.neolab.finance/plugins/sdd/usage-examples)

**Commands**

- [/add-task](https://cek.neolab.finance/plugins/sdd/add-task) - Create task template file with initial prompt
- [/plan-task](https://cek.neolab.finance/plugins/sdd/plan) - Analyze prompt, generate required skills and refine task specification
- [/implement-task](https://cek.neolab.finance/plugins/sdd/implement) - Produce a working implementation of the task and verify it

Additional commands useful before creating a task:

- [/create-ideas](https://cek.neolab.finance/plugins/sdd/create-ideas) - Generate diverse ideas on a given topic using creative sampling techniques
- [/brainstorm](https://cek.neolab.finance/plugins/sdd/brainstorm) - Refine vague ideas into fully-formed designs through collaborative dialogue

**Agents**

| Agent | Description | Used By |
|-------|-------------|---------|
| `researcher` | Technology research, dependency analysis, best practices | `/plan-task` (Phase 2a) |
| `code-explorer` | Codebase analysis, pattern identification, architecture mapping | `/plan-task` (Phase 2b) |
| `business-analyst` | Requirements discovery, stakeholder analysis, specification writing | `/plan-task` (Phase 2c) |
| `software-architect` | Architecture design, component design, implementation planning | `/plan-task` (Phase 3) |
| `tech-lead` | Task decomposition, dependency mapping, risk analysis | `/plan-task` (Phase 4) |
| `team-lead` | Step parallelization, agent assignment, execution planning | `/plan-task` (Phase 5) |
| `qa-engineer` | Verification rubrics, quality gates, LLM-as-Judge definitions | `/plan-task` (Phase 6) |
| `developer` | Code implementation, TDD execution, quality review, verification | `/implement-task` |
| `tech-writer` | Technical documentation writing, API guides, architecture updates, lessons learned | `/implement-task` |


#### Patterns

Key patterns implemented in this plugin:

- **Structured reasoning templates** — includes Zero-shot and Few-shot Chain of Thought, Tree of Thoughts, Problem Decomposition, and Self-Critique. Each is tailored to a specific agent and task, enabling sufficiently detailed decomposition so that isolated sub-agents can implement each step independently.
- **Multi-agent orchestration for context management** — Context isolation of independent agents prevents the context rot problem, essentially keeping LLMs at optimal performance at each step of the process. The main agent acts as an orchestrator that launches sub-agents and controls their work.
- **Quality gates based on LLM-as-Judge** — Evaluate the quality of each planning and implementation step using evidence-based scoring and predefined verification rubrics. This fully eliminates cases where an agent produces non-working or incorrect solutions.
- **Continuous learning** — Builds skills that the agent needs to implement a specific task, which it would otherwise not be able to perform from scratch.
- **Spec-driven development pattern** — Based on the arc42 specification standard, adjusted for LLM capabilities, to eliminate parts of the specification that add no value to implementation quality or that could degrade it.
- **MAKER** — An agent reliability pattern introduced in [Solving a Million-Step LLM Task with Zero Errors](https://arxiv.org/abs/2511.09030). It removes agent mistakes caused by accumulated context and hallucinations by utilizing clean-state agent launches, filesystem-based memory storage, and multi-agent voting during critical decision-making.

#### Vibe Coding vs. Specification-Driven Development

This plugin is not a "vibe coding" solution, but out of the box it works like one. By default it is designed to work from a single prompt through to the end of the task, making reasonable assumptions and evidence-based decisions instead of constantly asking for clarification. This is because developer time is more valuable than model time. As a result, the plugin is designed to allow the developer to decide how much time the task is worth. The plugin will always produce working results, but quality will be sub-optimal if no human feedback is provided.

To improve quality, after generating a specification you can correct it or leave comments using `//`, then run the `/plan` command again with the `--refine` flag. You can also verify each planning and implementation phase by adding the `--human-in-the-loop` flag. According to most known research, human feedback is the most effective way to improve results.

Our tests showed that even when the initially generated specification was incorrect due to lack of information or task complexity, the agent was still able to self-correct until it reached a working solution. However, it usually takes much longer, and results in the agent spending time on wrong paths and stopping more frequently. To avoid this, we strongly advise decomposing tasks into smaller separate tasks with dependencies and reviewing the specification for each one independently. You can add dependencies between tasks as arguments to the `/add-task` command, and the agent will link them together by adding a `depends_on` section to the task file frontmatter.

Even if you don't want to spend much time on this process, you can still use the plugin for complex tasks without decomposition or human verification — but you will likely need tools like ralph-loop to keep the agent running for longer.

Learn more about available customization options in [Customization](https://cek.neolab.finance/plugins/sdd/customization).


### [Domain-Driven Development](https://cek.neolab.finance/plugins/ddd)

Code quality framework with rules for Clean Architecture, SOLID principles, and Domain-Driven Design patterns.

**How to install**

```bash
/plugin install ddd@NeoLabHQ/context-engineering-kit
```

**Rules**

- 15 composable rules covering Clean Architecture, SOLID principles, Command-Query Separation, Functional Core/Imperative Shell, Explicit Control Flow, Domain-Specific Naming, and more. See [rules reference](https://cek.neolab.finance/plugins/ddd/rules)

### [FPF - First Principles Framework](https://cek.neolab.finance/plugins/fpf)

A structured reasoning plugin that implements the **[First Principles Framework (FPF)](https://github.com/ailev/FPF)** by Anatoly Levenchuk — a methodology for rigorous, auditable reasoning. The killer feature is turning the black box of AI reasoning into a transparent, evidence-backed audit trail. The plugin makes AI decision-making transparent and auditable. Instead of jumping to solutions, FPF enforces generating competing hypotheses, checking them logically, testing against evidence, then letting developers choose.

Key principles:

- **Transparent reasoning** - Full audit trail from hypothesis to decision
- **Hypothesis-driven** - Generate 3-5 competing alternatives before evaluating
- **Evidence-based** - Computed trust scores, not estimates
- **Human-in-the-loop** - AI generates options; humans decide (Transformer Mandate)

The core cycle follows three modes of inference:

1. **Abduction** — Generate competing hypotheses (don't anchor on the first idea).
2. **Deduction** — Verify logic and constraints (does the idea make sense?).
3. **Induction** — Gather evidence through tests or research (does the idea work in reality?).

Then, audit for bias, decide, and document the rationale in a durable record.

> **Warning:** This plugin loads the core FPF specification into context, which is large (~600k tokens). As a result, it is loaded into a subagent with the Sonnet[1m] model. However, such an agent can consume your token limit quickly.

**How to install**

```bash
/plugin install fpf@NeoLabHQ/context-engineering-kit
```

#### Usage workflow

```bash
# Execute complete FPF cycle from hypothesis to decision
/propose-hypotheses What caching strategy should we use?

# The workflow will:
# 1. Initialize context and .fpf/ directory
# 2. Generate competing hypotheses
# 3. Allow you to add your own alternatives
# 4. Verify each against project constraints (parallel)
# 5. Validate with evidence (parallel)
# 6. Compute trust scores (parallel)
# 7. Present comparison for your decision
```

**Commands**

- [/propose-hypotheses](https://cek.neolab.finance/plugins/fpf/propose-hypotheses) - Execute complete FPF cycle from hypothesis to decision (main workflow)
- [/status](https://cek.neolab.finance/plugins/fpf/status) - Show current FPF phase and hypothesis counts
- [/query](https://cek.neolab.finance/plugins/fpf/query) - Search knowledge base with assurance info
- [/decay](https://cek.neolab.finance/plugins/fpf/decay) - Manage evidence freshness (refresh/deprecate/waive)
- [/actualize](https://cek.neolab.finance/plugins/fpf/actualize) - Reconcile knowledge with codebase changes
- [/reset](https://cek.neolab.finance/plugins/fpf/reset) - Archive session and return to IDLE

**Agent**

- [fpf-agent](https://cek.neolab.finance/plugins/fpf/fpf-agent) - FPF reasoning specialist for hypothesis generation, verification, validation, and trust calculus using ADI cycle and knowledge layer progression

### [Kaizen](https://cek.neolab.finance/plugins/kaizen)

Continuous improvement methodology inspired by Japanese philosophy and Agile practices.

**How to install**

```bash
/plugin install kaizen@NeoLabHQ/context-engineering-kit
```

**Commands**

- [/analyse](https://cek.neolab.finance/plugins/kaizen/analyse) - Auto-selects best Kaizen method (Gemba Walk, Value Stream, or Muda) for target analysis
- [/analyse-problem](https://cek.neolab.finance/plugins/kaizen/analyse-problem) - Comprehensive A3 one-page problem analysis with root cause and action plan
- [/why](https://cek.neolab.finance/plugins/kaizen/why) - Iterative Five Whys root cause analysis drilling from symptoms to fundamentals
- [/root-cause-tracing](https://cek.neolab.finance/plugins/kaizen/root-cause-tracing) - Systematically traces bugs backward through call stack to identify source of invalid data or incorrect behavior
- [/cause-and-effect](https://cek.neolab.finance/plugins/kaizen/cause-and-effect) - Systematic Fishbone analysis exploring problem causes across six categories
- [/plan-do-check-act](https://cek.neolab.finance/plugins/kaizen/plan-do-check-act) - Iterative PDCA cycle for systematic experimentation and continuous improvement

**Skills**

- [kaizen](https://cek.neolab.finance/plugins/kaizen/kaizen) - Continuous improvement methodology with multiple analysis techniques

### [Customaize Agent](https://cek.neolab.finance/plugins/customaize-agent)

Commands and skills for creating and refining Claude Code extensions.

**How to install**

```bash
/plugin install customaize-agent@NeoLabHQ/context-engineering-kit
```

**Commands**

- [/customaize-agent:create-agent](https://cek.neolab.finance/plugins/customaize-agent/create-agent) - Comprehensive guide for creating Claude Code agents with proper structure, triggering conditions, system prompts, and validation
- [/customaize-agent:create-command](https://cek.neolab.finance/plugins/customaize-agent/create-command) - Interactive assistant for creating new Claude commands with proper structure and patterns
- [/customaize-agent:create-workflow-command](https://cek.neolab.finance/plugins/customaize-agent/create-workflow-command) - Create workflow commands that orchestrate multi-step execution through sub-agents with file-based task prompts
- [/customaize-agent:create-skill](https://cek.neolab.finance/plugins/customaize-agent/create-skill) - Guide for creating effective skills with test-driven approach
- [/customaize-agent:create-hook](https://cek.neolab.finance/plugins/customaize-agent/create-hook) - Create and configure git hooks with intelligent project analysis and automated testing
- [/customaize-agent:test-skill](https://cek.neolab.finance/plugins/customaize-agent/test-skill) - Verify skills work under pressure and resist rationalization using RED-GREEN-REFACTOR cycle
- [/customaize-agent:test-prompt](https://cek.neolab.finance/plugins/customaize-agent/test-prompt) - Test any prompt (commands, hooks, skills, subagent instructions) using RED-GREEN-REFACTOR cycle with subagents
- [/customaize-agent:apply-anthropic-skill-best-practices](https://cek.neolab.finance/plugins/customaize-agent/apply-anthropic-skill-best-practices) - Comprehensive guide for skill development based on Anthropic's official best practices

**Skills**

- [prompt-engineering](https://cek.neolab.finance/plugins/customaize-agent/prompt-engineering) - Well-known prompt engineering techniques and patterns, includes Anthropic Best Practices and Agent Persuasion Principles
- [context-engineering](https://cek.neolab.finance/plugins/customaize-agent/context-engineering) - Deep understanding of context mechanics: attention budget, progressive disclosure, lost-in-middle effect, and practical optimization patterns
- [agent-evaluation](https://cek.neolab.finance/plugins/customaize-agent/agent-evaluation) - Evaluation frameworks for agent systems: LLM-as-Judge, multi-dimensional rubrics, bias mitigation, and the 95% performance finding

### [Docs](https://cek.neolab.finance/plugins/docs)

Commands for project analysis and documentation management based on proven writing principles.

**How to install**

```bash
/plugin install docs@NeoLabHQ/context-engineering-kit
```

**Commands**

- [/update-docs](https://cek.neolab.finance/plugins/docs/update-docs) - Update implementation documentation after completing development phases
- [/write-concisely](https://cek.neolab.finance/plugins/docs/write-concisely) - Apply *The Elements of Style* principles to make documentation clearer and more professional

### [Tech Stack](https://cek.neolab.finance/plugins/tech-stack)

Rules for language and framework-specific best practices, automatically applied when the agent works on matching file types.

**How to install**

```bash
/plugin install tech-stack@NeoLabHQ/context-engineering-kit
```

**Rules**

- TypeScript Best Practices - Type system guidelines, code style, async patterns, and code quality standards, automatically loaded when agent reading or writing `.ts` files


### [MCP](https://cek.neolab.finance/plugins/mcp)

Commands for integrating Model Context Protocol servers with your project. Each setup command supports configuration at multiple levels:

- **Project level (shared)** - Configuration tracked in git, shared with team via `./CLAUDE.md`
- **Project level (personal)** - Local configuration in `./CLAUDE.local.md`, not tracked in git
- **User level (global)** - Configuration in `~/.claude/CLAUDE.md`, applies to all projects

**How to install**

```bash
/plugin install mcp@NeoLabHQ/context-engineering-kit
```

**Commands**

- [/mcp:setup-context7-mcp](https://cek.neolab.finance/plugins/mcp/setup-context7-mcp) - Guide for setting up Context7 MCP server to load documentation for specific technologies
- [/mcp:setup-serena-mcp](https://cek.neolab.finance/plugins/mcp/setup-serena-mcp) - Guide for setting up Serena MCP server for semantic code retrieval and editing capabilities
- [/mcp:setup-codemap-cli](https://cek.neolab.finance/plugins/mcp/setup-codemap-cli) - Guide for setting up Codemap CLI for intelligent codebase visualization and navigation
- [/mcp:setup-arxiv-mcp](https://cek.neolab.finance/plugins/mcp/setup-arxiv-mcp) - Guide for setting up arXiv/Paper Search MCP server via Docker MCP for academic paper search and retrieval from multiple sources
- [/mcp:build-mcp](https://cek.neolab.finance/plugins/mcp/build-mcp) - Guide for creating high-quality MCP servers that enable LLMs to interact with external services

## Theoretical Foundation

This project is based on research and papers from the following sources:

- [Self-Refine](https://arxiv.org/abs/2303.17651) - Core refinement loop
- [Reflexion](https://arxiv.org/abs/2303.11366) - Memory integration
- [Constitutional AI](https://arxiv.org/abs/2212.08073) - Principle-based critique
- [LLM-as-a-Judge](https://arxiv.org/abs/2306.05685) - Evaluation patterns
- [Multi-Agent Debate](https://arxiv.org/abs/2305.14325) - Multiple perspectives
- [Agentic Context Engineering](https://arxiv.org/abs/2510.04618) - Memory curation
- [Chain-of-Verification](https://arxiv.org/abs/2309.11495) - Hallucination reduction
- [Tree of Thoughts](https://arxiv.org/abs/2305.10601) - Structured exploration
- [Process Reward Models](https://arxiv.org/abs/2305.20050) - Step-by-step evaluation
- [Verbalized Sampling](https://arxiv.org/abs/2510.01171) - Diverse idea generation with 2-3x improvement
- [Process Reward Models](https://arxiv.org/abs/2305.20050) - Step verification
- [Chain of Thought Prompting](https://arxiv.org/abs/2201.11903) - Step-by-step reasoning
- [Inference-Time Scaling of Verification](https://arxiv.org/abs/2601.15808) - Rubric-guided verification

More details about the theoretical foundation can be found on the [resources](https://cek.neolab.finance/resources) page.
