Overview
When you run wt init or wt add, workthin automatically generates slash commands for your selected AI tool:
/workthin— Capture the current session's solution as knowledge/workthin-search— Search for existing knowledge before solving a problem
These files are committed to git, so all team members get them automatically.
Supported Tools
| Tool | Format | Location |
|---|---|---|
| Claude Code | SKILL.md | .claude/skills/workthin/ |
| OpenAI Codex CLI | SKILL.md | .agents/skills/workthin/ |
| GitHub Copilot CLI | .prompt.md | .github/prompts/workthin.prompt.md |
| Cursor | Markdown | .cursor/commands/workthin.md |
| Gemini CLI | TOML | .gemini/commands/workthin.toml |
/workthin — Capture Knowledge
Use after solving a problem to record the solution.
/workthinWhat it does:
- Reviews the current conversation
- Identifies the key problem(s) solved
- Checks for duplicate knowledge (
check-knowledge) - Creates a new knowledge entry with AI-structured problem/solution
- Returns
suggested_scope— if it recommends a different scope, asks you to confirm
For multiple problems in one session, it creates separate entries and chains them with prev_knowledge_id.
/workthin-search — Find Existing Knowledge
Use when encountering a technical issue to check if a solution already exists.
/workthin-search redis connection timeoutWhat it does:
- Searches workthin with the problem description
- Shows top matches with titles and solution summaries
- Retrieves full details if needed
- If no results found, reminds you to use
/workthinafter solving
Auto-invocation
Both commands can be invoked automatically by your AI tool when it detects a relevant situation:
/workthin— triggered when a problem has been solved/workthin-search— triggered when encountering a technical issue
This enables the search → solve → capture loop without manual intervention.
Claude Code Extras
When Claude Code is selected, wt init / wt add also adds a SessionStart hook to .claude/settings.json:
workthin connected. SEARCH before solving, capture after. Use /workthin to save solutions.
This reminder is displayed at the start of every session.
File Locations by Tool
Claude Code
.claude/
├── skills/
│ ├── workthin/
│ │ └── SKILL.md
│ └── workthin-search/
│ └── SKILL.md
└── settings.json # SessionStart hookCursor
.cursor/
└── commands/
├── workthin.md
└── workthin-search.mdGitHub Copilot CLI
.github/
└── prompts/
├── workthin.prompt.md
└── workthin-search.prompt.mdGemini CLI
.gemini/
└── commands/
├── workthin.toml
└── workthin-search.tomlOpenAI Codex CLI
.agents/
└── skills/
├── workthin/
│ └── SKILL.md
└── workthin-search/
└── SKILL.md