Commit Graph

144 Commits

Author SHA1 Message Date
c60453ef41 Fix tea_issue_create: use Bun.$ and include description 2026-05-14 22:53:53 +02:00
9de03b1253 Add tea_issue_create tool for creating GitHub issues 2026-05-14 22:52:08 +02:00
ce06cca219 Add tea_issues tool for listing GitHub issues 2026-05-14 22:18:07 +02:00
7f4319821f fixed tea pr list 2026-05-13 20:31:44 +02:00
3a34883ec7 fix pr list 2026-05-13 17:31:57 +02:00
15c834e24c updated gitignore 2026-05-12 13:46:58 +02:00
6dd236944a Add git-worktree tool for managing worktrees 2026-05-12 13:15:47 +02:00
e8fa47a57d feat: add dedicated issue close/reopen and PR review tools 2026-05-12 13:11:12 +02:00
bb2fd20992 fxied tea issue deps syntax problems 2026-05-11 23:43:33 +02:00
7b58135529 Add opencode.json config template with changeme API keys 2026-05-11 23:09:09 +02:00
feb01f851d fixed the return values to strings instead of JSON.parse 2026-05-03 18:30:54 +02:00
d1e649005b feat: add tea-context.ts tool for context helpers (whoami) 2026-05-03 16:35:46 +02:00
9c4494e75f feat: add tea-notification.ts tool for notifications (notificationList) 2026-05-03 16:35:39 +02:00
9c3e396910 feat: add tea-label.ts tool for label management (labelList) 2026-05-03 16:35:31 +02:00
4804c8d251 feat: add tea-milestone.ts tool for milestone management (milestoneList, milestoneCreate) 2026-05-03 16:35:24 +02:00
0066d66833 feat: add tea-issue-deps.ts tool for issue dependencies (issueDepsList, issueDepsAdd, issueDepsRemove) 2026-05-03 16:35:10 +02:00
ad6f5923d8 feat: add tea-issue.ts tool for issue management (issueList, issueCreate, issueEdit, issueDetails) 2026-05-03 16:34:47 +02:00
f9a72c3543 feat: add tea-pr.ts tool for PR management (prList, prCreate, prCheckout, prMerge, prDetails) 2026-05-03 16:34:18 +02:00
cdfacbac18 Migrate from Claude Code to OpenCode structure
- Move legacy content to legacy/ folder (old, old2, docs, learnings, scripts)
- Create new .opencode/ structure with skills/, tools/, agents/ folders
- Update Makefile to symlink to ~/.config/opencode/ instead of ~/.claude/
- Update Makefile to manage skills, tools, and agents (remove settings.json)
- Simplify install/uninstall (no backup logic)
- Add README.md documenting the new structure
- Keep settings.json as historical reference
2026-05-02 13:41:59 +02:00
4cb29fa07a refactor: make LLM service management configurable
- Add LLM_SERVICES variable for easy service management
- Add restart-llm-% pattern rule for individual service control
- Refactor restart-llm to loop through services
2026-05-02 11:11:04 +02:00
869e5296ee chore: move documentation files to old2 folder
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 17:29:53 +01:00
ee6edabc80 chore: move agents and skills to old2 folder
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 17:28:06 +01:00
3d0068bc9f chore(settings): add padding config to statusLine
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 17:25:55 +01:00
3e185a0a2f feat(dashboard): add dashboard skill for milestone/issue overview
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 23:45:55 +01:00
5423e1455d chore: update model names and gitea allowed-tools
- Use full model names (claude-haiku-4-5, etc.) in create-capability
- Add allowed-tools to gitea skill for tea/jq commands
- Set default model to opus in settings

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 23:45:51 +01:00
956ad2d0a0 fix(worktrees): fix tea issues title parsing for branch names
- tea issues output has title on line 2, not line 1
- Update sed command to extract from correct line
- Fixes branches being named "issue-N-" or "issue-N-untitled"

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 23:45:37 +01:00
7aff8e64e9 feat(code-reviewer): auto-merge approved PRs with rebase
- Add step 5 to merge approved PRs using tea pulls merge --style rebase
- Clean up branch after merge with tea pulls clean
- Update role description and outputs to reflect merge responsibility

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 23:45:32 +01:00
7708379e08 fix(code-reviewer): enforce concise review comments, no thanking/fluff
Updated review comment format to be direct and actionable:

**Approved format:**
```
## Code Review: Approved ✓

Implementation looks solid. No blocking issues found.
```

**Needs-work format:**
```
## Code Review: Changes Requested

**Issues:**
1. `auth.ts:42` - Missing null check for user.email
2. `auth.ts:58` - Login error not handled
3. Missing tests for authentication flow

**Suggestions:**
- Consider adding rate limiting
```

Changes:
- Removed all thanking/praising language ("Great work!", "Thanks for the PR!")
- Removed pleasantries ("Please address", "I'll re-review")
- Enforced file:line format for all issues
- Approved: 1-2 lines max (down from verbose multi-section format)
- Needs-work: Direct issue list with locations
- Added bad/good examples showing verbosity difference
- Updated Guidelines: removed "Acknowledge good work", added "Keep comments concise"
- Updated description, Your Role, and You produce sections
- Emphasized in Tips section

Before: Verbose, friendly reviews with sections
After: Concise, actionable reviews with file:line locations

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-01-13 01:38:35 +01:00
2b3e3fb383 fix(pr-fixer): enforce concise PR comments (3-4 bullets max)
Added explicit instructions to keep PR comments extremely brief:
- Maximum 3-4 bullet points
- One line per bullet
- Just state what was fixed
- No verbose explanations
- No code snippets
- No apologizing or thanking

Before: Long, verbose comments explaining every change in detail
After: "Fixed review feedback ✓
- Fixed error handling
- Added null checks
- Updated tests"

Updated:
- Added step 6: Post Concise Comment
- Added format examples (good vs bad)
- Added "Keep comments concise" to Guidelines
- Updated description and Your Role section
- Emphasized in Tips section

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-01-13 01:37:07 +01:00
84850d65f0 feat(spawn-pr-fixers): add parallel PR fixing skill using tea/gitea
Creates new user-invocable skill for fixing PRs based on review feedback:
- Takes multiple PR numbers as arguments
- Creates isolated fix worktrees for each PR
- Spawns pr-fixer agents in parallel
- Event-driven result handling
- Addresses review comments autonomously
- Commits and pushes fixes to Gitea using tea
- Shows detailed summary of all fixes

Uses tea and gitea skill (not gh). Pattern matches spawn-issues and
spawn-pr-reviews: Haiku orchestrator with allowed-tools.

Completes the spawn trilogy:
- spawn-issues: full workflow (implement → review → fix)
- spawn-pr-reviews: review only (read-only)
- spawn-pr-fixers: fix only (based on feedback)

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-01-13 00:49:46 +01:00
131665aa22 feat(spawn-pr-reviews): add parallel PR review skill using tea/gitea
Creates new user-invocable skill for reviewing PRs:
- Takes multiple PR numbers as arguments
- Creates isolated review worktrees for each PR
- Spawns code-reviewer agents in parallel
- Event-driven result handling
- Posts review comments to Gitea using tea
- Read-only operation (no auto-fixes)

Uses tea and gitea skill (not gh), avoiding conflicts with base
system instructions.

Pattern matches spawn-issues: Haiku orchestrator with allowed-tools
for bash execution.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-01-13 00:40:42 +01:00
cac3e6b49d docs(CLAUDE.md): update Available Skills to reflect current state
Removed outdated skills that haven't been migrated from old/ directory:
- /manifesto, /vision, /work-issue, /dashboard, /review-pr
- /create-issue, /retro, /plan-issues, /groom

Added current user-invocable skills:
- /vision-to-backlog
- /create-milestones
- /spawn-issues
- /create-capability
- /capability-writing

This prevents confusion when users try non-existent skills, which could
cause the system to fall back to base instructions (using gh instead of tea).

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-01-13 00:38:23 +01:00
cfb157bf34 fix(spawn-issues): add missing allowed-tools field
The spawn-issues skill was missing the allowed-tools field that was present
in the old version. Without this field, the skill cannot execute bash commands,
causing permission errors when trying to create worktrees or call scripts.

Added: allowed-tools: Bash, Task, Read, TaskOutput

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-01-13 00:18:43 +01:00
c53b2c6e9f fix(worktrees): use full paths for bundled scripts
Users were confused by ./scripts/ references, thinking they needed to copy
scripts into their project. Scripts are in ~/.claude/skills/worktrees/scripts/
and should be referenced with full paths.

Changes:
- Updated spawn-issues to use full script paths
- Updated worktrees skill with full paths in all examples
- Fixed gitea model name to claude-haiku-4-5
- Added tools list to issue-worker agent

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-01-13 00:06:28 +01:00
22c41ec7ae fix(create-milestones): clarify loop structure for assigning issues
Restructure steps 7-8 to be clearer and more efficient:
- Merged "Assign Issues" and "Apply Labels" into single step
- Explicit nested loop structure: milestone → issues in that milestone
- Process one milestone at a time
- Combine milestone assignment + labels in single tea command
- Added clear examples
- Prevents confusion about looping and when to move on

Before: Separate loops for milestone assignment and label application
After: Single pass through milestones, process all issues per milestone

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-01-12 19:27:08 +01:00
977acc1128 fix(vision-to-backlog): organize artifacts in .product-strategy/ directory
Create .product-strategy/ directory to organize all strategy artifacts
instead of cluttering root directory.

Changes:
- Step 2: Create .product-strategy/ directory early in workflow
- Each agent spawn: Specify output path (e.g., .product-strategy/problem-map.md)
- Agents reference prior artifacts by path
- Final report lists all artifact locations

Artifacts saved:
- .product-strategy/problem-map.md
- .product-strategy/context-map.md
- .product-strategy/domain-*.md (one per context)
- .product-strategy/capabilities.md
- .product-strategy/backlog.md

Keeps root directory clean and strategy artifacts organized.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-01-12 18:53:47 +01:00
4ba2e5f6c9 fix(vision-to-backlog): automatically create issues after approval
Clarify that after user approves issues at decision gate, workflow should
automatically proceed to create all issues in Gitea without waiting for
another prompt.

Changes:
- Step 13: Clear yes/no question "Ready to create these issues in Gitea?"
- Step 14: Marked as "automatic after approval"
- Guidelines: Added "Automatic execution after approval" section with example

Prevents workflow from stopping and requiring user to explicitly request
issue creation after already approving the backlog.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-01-12 18:51:09 +01:00
29765caab4 feat: add value-based milestone planning capability
Add capability for organizing backlog into shippable business capabilities
using value-based milestones (not time-based phases).

Components:
- milestone-planning skill: Value-based framework, vertical slice test, one active milestone
- create-milestones skill: Orchestrator (Haiku) for analyzing and grouping issues
- milestone-planner agent: Groups issues into capabilities autonomously (Haiku)

Core Principles:
- Milestone = shippable business capability (not phase)
- One active milestone at a time (preserves focus)
- 5-25 issues per milestone (right-sized)
- Value labels: value/high, value/medium, value/low
- Risk labels: risk/high (optional)
- Vertical slice test (can be demoed independently)
- No dates (capability-based, not time-based)

Workflow: /create-milestones reads existing Gitea issues → analyzes capability
boundaries → groups into milestones → creates in Gitea → assigns issues →
applies labels → user manually activates ONE milestone

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-01-12 17:11:59 +01:00
de9dcd3501 fix: correct model names to claude-haiku-4-5 and claude-sonnet-4-5
Update model field in all skills and agents to use full model names:
- haiku → claude-haiku-4-5
- sonnet → claude-sonnet-4-5

Updated files:
- vision-to-backlog skill
- spawn-issues skill
- problem-space-analyst agent
- context-mapper agent
- domain-modeler agent
- capability-extractor agent
- backlog-builder agent
- issue-worker agent
- code-reviewer agent
- pr-fixer agent

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-01-12 16:47:39 +01:00
3542acaa94 feat: add composable product strategy capability (vision-to-backlog)
Replace monolithic ddd-analyst with composable agent architecture following
opinionated product strategy chain from manifesto to executable backlog.

New Components:
- product-strategy skill: 7-step framework with decision gates
- vision-to-backlog skill: Orchestrator with user decision gates (Haiku)
- problem-space-analyst agent: Vision → Event timeline (Haiku)
- context-mapper agent: Events → Bounded contexts (Haiku)
- domain-modeler agent: Contexts → Domain models (Haiku)
- capability-extractor agent: Domain → Capabilities (Haiku)
- backlog-builder agent: Capabilities → Features → Issues (Haiku)

The Chain:
Manifesto → Vision → Problem Space → Contexts → Domain → Capabilities → Features → Issues

Each step has decision gate preventing waste. Agents work autonomously, orchestrator
manages gates and user decisions.

Benefits:
- Composable: Each agent reusable independently
- DDD embedded throughout (not isolated)
- Prevents cargo-cult DDD (problem space before modeling)
- Works for greenfield + brownfield
- All Haiku models (cost-optimized)

Removed:
- ddd-breakdown skill (replaced by vision-to-backlog)
- ddd-analyst agent (replaced by 5 specialized agents)

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-01-12 16:38:20 +01:00
eb3d362d93 feat: add parallel issue implementation capability with worktrees
Add complete capability set for orchestrating parallel issue implementation
with automated review cycles using git worktrees.

Components:
- worktrees skill: Git worktree patterns + bundled scripts for reliable operations
- spawn-issues skill: Event-driven orchestrator (Haiku) for parallel workflow
- issue-worker agent: Implements issues autonomously (Sonnet)
- code-reviewer agent: Reviews PRs with quality checks (Haiku, read-only)
- pr-fixer agent: Addresses review feedback automatically (Haiku)

Workflow: /spawn-issues creates worktrees → spawns workers → reviews PRs →
fixes feedback → iterates until approved → cleans up worktrees

Scripts handle error-prone worktree operations. Orchestrator uses event-driven
approach with task notifications for efficient parallel execution.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-01-12 15:51:10 +01:00
941baa0bd8 feat: add DDD capability for vision-to-issues workflow
Add complete DDD capability set for breaking down product vision into
implementation issues using Domain-Driven Design principles.

Components:
- issue-writing skill: Enhanced with user story format and vertical slices
- ddd skill: Strategic and tactical DDD patterns (bounded contexts, aggregates, commands, events)
- ddd-breakdown skill: User-invocable workflow (/ddd-breakdown)
- ddd-analyst agent: Analyzes manifesto/vision/code, generates DDD-structured user stories

Workflow: Read manifesto + vision → analyze codebase → identify bounded contexts
→ map features to DDD patterns → generate user stories → create Gitea issues

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-01-12 13:02:56 +01:00
c4f6b4ca48 refactor(skills): apply progressive disclosure to gitea skill
Split gitea skill into main file and reference documentation.
Main SKILL.md now focuses on core commands (154 lines, down from 201),
with setup/auth and CI/Actions moved to reference files.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-01-12 12:32:13 +01:00
a5252f8460 try to restructure the agents and skills given the new skills and command merge 2026-01-12 11:47:52 +01:00
45a2f08af2 changed the recommended skill size to 300 lines 2026-01-12 11:25:08 +01:00
0258704ca8 chore: remove global opus model setting from settings.json
Remove top-level model override to allow per-skill/agent model configuration.
Reorder sections for consistency.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-11 18:12:01 +01:00
838b1d48aa feat(skills): modernize capability-writing with Anthropic best practices
Updates capability-writing skill with progressive disclosure structure based on
Anthropic's January 2025 documentation. Implements Haiku-first approach (12x
cheaper, 2-5x faster than Sonnet).

Key changes:
- Add 5 core principles: conciseness, progressive disclosure, script bundling,
  degrees of freedom, and Haiku-first model selection
- Restructure with best-practices.md, templates/, examples/, and reference/
- Create 4 templates: user-invocable skill, background skill, agent, helper script
- Add 3 examples: simple workflow, progressive disclosure, with scripts
- Add 3 reference docs: frontmatter fields, model selection, anti-patterns
- Update create-capability to analyze complexity and recommend structures
- Default all new skills/agents to Haiku unless justified

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-11 18:10:53 +01:00
44e3ac0739 refactor: migrate commands to user-invocable skills
Claude Code has unified commands into skills with the user-invocable
frontmatter field. This migration:

- Converts 20 commands to skills with user-invocable: true
- Consolidates docs into single writing-capabilities.md
- Rewrites capability-writing skill for unified model
- Updates CLAUDE.md, Makefile, and other references
- Removes commands/ directory

Skills now have two types:
- user-invocable: true - workflows users trigger with /name
- user-invocable: false - background knowledge auto-loaded

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 16:39:55 +01:00
3535487952 Fix typo: use REPO_PATH instead of REPO_NAME
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 00:15:10 +01:00
cdf47a5fa7 Spawn agents with cwd set to their worktree
Resolves issue #86 by having the spawn-issues orchestrator create worktrees
upfront and pass the worktree paths to agents, instead of having agents
create their own worktrees in sibling directories outside the sandbox.

Changes:
- spawn-issues orchestrator creates all worktrees before spawning agents
- issue-worker, pr-fixer, code-reviewer accept optional WORKTREE_PATH
- When WORKTREE_PATH is provided, agents work directly in that directory
- Backward compatible: agents still support creating their own worktrees
  if WORKTREE_PATH is not provided
- Orchestrator handles all worktree cleanup after agents complete
- Eliminates permission denied errors from agents trying to access
  sibling worktree directories

This ensures agents operate within their sandbox while still being able to
work with isolated git worktrees for parallel implementation.

Closes #86

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 00:12:14 +01:00