Skip to content

Commit 8844d32

Browse files
authored
Merge pull request #21 from NeoLabHQ/feature/vg/add-new-context-engineering-commands
feat: Add FPF plugin and LLM-as-Judge based commands for SADD
2 parents b2d86b5 + 534bb4d commit 8844d32

File tree

90 files changed

+41411
-538
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+41411
-538
lines changed

.beads/issues/cek-31ce.md

Lines changed: 722 additions & 0 deletions
Large diffs are not rendered by default.

.claude-plugin/marketplace.json

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://anthropic.com/claude-code/marketplace.schema.json",
33
"name": "context-engineering-kit",
4-
"version": "1.5.0",
4+
"version": "1.6.0",
55
"description": "Hand-crafted collection of advanced context engineering techniques and patterns with minimal token footprint focused on improving agent result quality.",
66
"owner": {
77
"name": "NeoLabHQ",
@@ -11,7 +11,7 @@
1111
{
1212
"name": "reflexion",
1313
"description": "Collection of commands that force LLM to reflect on previous response and output. Based on papers like Self-Refine and Reflexion. These techniques improve the output of large language models by introducing feedback and refinement loops.",
14-
"version": "1.1.0",
14+
"version": "1.1.2",
1515
"author": {
1616
"name": "Vlad Goncharov",
1717
"email": "[email protected]"
@@ -33,7 +33,7 @@
3333
{
3434
"name": "git",
3535
"description": "Introduces commands for commit and PRs creation.",
36-
"version": "1.0.1",
36+
"version": "1.0.2",
3737
"author": {
3838
"name": "Vlad Goncharov",
3939
"email": "[email protected]"
@@ -55,7 +55,7 @@
5555
{
5656
"name": "sadd",
5757
"description": "Introduces skills for subagent-driven development, dispatches fresh subagent for each task with code review between tasks, enabling fast iteration with quality gates.",
58-
"version": "1.0.0",
58+
"version": "1.1.0",
5959
"author": {
6060
"name": "Vlad Goncharov",
6161
"email": "[email protected]"
@@ -99,7 +99,7 @@
9999
{
100100
"name": "customaize-agent",
101101
"description": "Commands and skills for writing and refining commands, hooks, skills for Claude Code, includes Anthropic Best Practices and Agent Persuasion Principles that can be useful for sub-agent workflows.",
102-
"version": "1.1.0",
102+
"version": "1.2.0",
103103
"author": {
104104
"name": "Vlad Goncharov",
105105
"email": "[email protected]"
@@ -139,6 +139,17 @@
139139
},
140140
"source": "./plugins/mcp",
141141
"category": "development"
142+
},
143+
{
144+
"name": "fpf",
145+
"description": "First Principles Framework (FPF) for structured reasoning. Implements ADI (Abduction-Deduction-Induction) cycle for hypothesis generation, logical verification, empirical validation, and auditable decision-making.",
146+
"version": "1.0.0",
147+
"author": {
148+
"name": "Vlad Goncharov",
149+
"email": "[email protected]"
150+
},
151+
"source": "./plugins/fpf",
152+
"category": "development"
142153
}
143154
]
144155
}

.claude/commands/add-task.md

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
---
2+
description: "Create a minibeads task with proper structure and context. User prompt: 'create /add-task command in @.claude/commands/ based on mb'"
3+
argument-hint: Task title or description (e.g., "Add validation to form inputs")
4+
allowed-tools: Bash(mb create:*), Bash(mb show:*), Bash(mb list:*), Bash(mb dep:*), Bash(mb ready:*), Skill(refine-task)
5+
---
6+
7+
# Add Task Command
8+
9+
<task>
10+
You are a task creation specialist. Create well-structured minibeads tasks that are clear, actionable, and properly categorized.
11+
</task>
12+
13+
<context>
14+
This command helps create tasks using minibeads (mb) with:
15+
16+
1. Clear, action-oriented titles
17+
2. Appropriate type classification
18+
3. Useful description when needed
19+
4. Automatic refinement
20+
</context>
21+
22+
<workflow>
23+
24+
## Phase 1: Analyze Input
25+
26+
1. **Parse the user's request**:
27+
- Extract the core task objective
28+
- Identify implied type (bug, feature, task)
29+
30+
2. **Clarify if ambiguous**:
31+
- Is this a bug fix or new feature?
32+
- Any related tasks or dependencies?
33+
34+
## Phase 2: Structure the Task
35+
36+
1. **Create action-oriented title**:
37+
- Start with verb: Add, Fix, Update, Implement, Remove, Refactor
38+
- Be specific but concise
39+
- Examples:
40+
- "Add validation to login form"
41+
- "Fix null pointer in user service"
42+
- "Implement caching for API responses"
43+
44+
2. **Determine type**:
45+
| Type | Use When |
46+
|------|----------|
47+
| `task` | General work items, refactoring, maintenance |
48+
| `bug` | Something is broken or not working correctly |
49+
| `feature` | New functionality or capability |
50+
51+
## Phase 3: Create Task
52+
53+
```bash
54+
mb create "TITLE" -t TYPE -d "initial user prompt: [EXACT USER PROMPT]
55+
56+
[Short description of what the task involves]"
57+
```
58+
59+
The description (-d) MUST include:
60+
1. **Line 1**: `initial user prompt: ` followed by the EXACT user input as provided
61+
2. **Line 2+**: Short description of the task scope and context
62+
63+
## Phase 4: Refine Task
64+
65+
After creating the task, **ALWAYS** invoke the refine-task skill to add implementation details:
66+
67+
```
68+
Skill tool invocation:
69+
- skill: "refine-task"
70+
- args: "<task-id>"
71+
```
72+
73+
This ensures every created task has:
74+
- Detailed specification
75+
- Affected files identified
76+
- Implementation resources gathered
77+
78+
**IMPORTANT**: Do not skip this step. The refinement is mandatory for all created tasks.
79+
80+
</workflow>
81+
82+
<examples>
83+
84+
**Simple task:**
85+
```bash
86+
mb create "Add unit tests for auth module" -t task -d "initial user prompt: add tests for auth
87+
88+
Cover login, logout, and session management functions."
89+
```
90+
91+
**Bug with context:**
92+
```bash
93+
mb create "Fix login timeout on slow connections" -t bug -d "initial user prompt: users getting 504 errors on slow wifi
94+
95+
Increase timeout threshold and add retry logic for network failures."
96+
```
97+
98+
**Feature request:**
99+
```bash
100+
mb create "Implement dark mode toggle" -t feature -d "initial user prompt: add dark mode to settings page
101+
102+
Add theme switching in settings with localStorage persistence."
103+
```
104+
105+
</examples>
106+
107+
<multiple_tasks>
108+
When creating multiple related tasks:
109+
110+
1. Create tasks in parallel when possible
111+
2. Add dependencies after creation:
112+
```bash
113+
mb dep add <dependent-task> <dependency-task>
114+
```
115+
116+
Example flow:
117+
```bash
118+
mb create "Implement user API" -t feature -d "initial user prompt: need user management endpoints
119+
120+
REST endpoints for user CRUD operations."
121+
122+
mb create "Add user API tests" -t task -d "initial user prompt: need user management endpoints
123+
124+
Unit and integration tests for user API."
125+
126+
mb dep add cek-tests cek-api # Tests depend on API
127+
```
128+
</multiple_tasks>
129+
130+
<output>
131+
After creating and refining the task:
132+
133+
1. **Show created task**: `mb show <task-id>`
134+
2. **Confirm refinement completed**
135+
3. **Suggest next steps**:
136+
- Add dependencies if related tasks exist
137+
- Start work with `mb update <task-id> --status=in_progress`
138+
</output>

0 commit comments

Comments
 (0)