Scientific experimentation patterns for exploring implementation approaches through hypothesis testing, parallel PoC execution, and rigorous verification. Used by laboratory command for systematic research workflows.
How this skill is triggered — by the user, by Claude, or both
Slash command
/chkim-su-serena-refactor:laboratory-patternsThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Scientific experimentation patterns for exploring implementation approaches.
Scientific experimentation patterns for exploring implementation approaches.
This skill provides patterns and templates for the /serena-refactor:laboratory command, which applies scientific methodology to code implementation:
"Apply scientific methodology to code implementation"
| Reference | Purpose |
|---|---|
| creative-approaches.md | Patterns for unconventional solutions |
| query-templates.md | Templates for LLM consultation |
| verification-criteria.md | Standards for experiment verification |
1. Problem Decomposition [User Approval]
↓
2. Existing Approaches Collection
↓
3. Creative Approaches Generation
↓
4. Hypothesis Formation [User Approval]
↓
5. PoC Experiments (Parallel, max 5) [User Approval]
↓
6. Verification
↓
7. Result Report
| Agent | Role | Phases |
|---|---|---|
lab-analyst | Problem analysis, hypothesis design | 1, 4 |
lab-experimenter | PoC implementation, parallel coordination | 5 |
lab-verifier | Testing, verification, reporting | 6, 7 |
source-fetcher | External info collection | 2 |
creative-generator | Novel approach generation | 3 |
llm-consultant | External LLM consultation | 2-3, 6 |
edge-case-hunter | Edge case discovery | 4, 6 |
| Criterion | Required |
|---|---|
| Test Pass | Yes |
| Edge Case Coverage | Yes |
| Reproducibility | Yes |
| Performance | If specified |
| File | Phase | Purpose |
|---|---|---|
.lab-problem-defined | 1 | Problem decomposed |
.lab-approaches-collected | 2-3 | Approaches gathered |
.lab-hypotheses-approved | 4 | Hypotheses confirmed |
.lab-experiments-running | 5 | In progress |
.lab-experiments-done | 5 | Complete |
.lab-verified | 6 | Verified |
.lab-report-generated | 7 | Report created |
docs/lab-reports/YYYY-MM-DD-{topic}.md.serena/memories/lab-{topic}.mdexperiments/hypothesis-{id}/npx claudepluginhub chkim-su/serena-refactorGuides collaborative design exploration before implementation: explores context, asks clarifying questions, proposes approaches, and writes a design doc for user approval.
Creates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
Provides Slack GIF creation utilities with dimension/FPS/color constraints and Python PIL-based frame generation. Use for animated Slack emoji or message GIFs.