.claude/skills/refine-arch/SKILL.md
WF2 Architecture refinement and MVP design. Reads the feasibility report, analyzes the base codebase architecture, designs plug-and-play new modules, defines the MVP, provides A/B/C alternative plans, and outputs Technical_Spec.md. Use when a research idea needs to be translated into a concrete technical architecture design.
npx skillsauth add linzhe001/Harness-Research refine-archInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
First, read PROJECT_STATE.json to get project context and locate the feasibility report. For the output format, see templates/technical-spec.md. For language behavior, see ../../shared/language-policy.md. </context>
<instructions> 1. **Read Prerequisite Materials** - Read Feasibility_Report.md's context_summary and recommendations - Read the codebase's README.md and directory structure - Locate core files: models/, configs/, train.pyCodebase Analysis
<thinking> Analyze the base codebase's architecture patterns and answer the following questions: - Does it use the Registry Pattern? How are new modules registered? - What is the config management approach (Hydra/YAML/argparse)? How can configs be extended? - What is the model definition inheritance structure? Which base class should new modules inherit from? - Where are the existing hook points? Where can new functionality be inserted? - What are the code style and naming conventions? </thinking>Design Plug-and-Play Architecture
Follow these principles:
Define MVP (Minimum Viable Prototype)
The MVP must satisfy:
Design Alternative Plans
<thinking> For each key design decision, consider: - What feasible implementation approaches exist? - What is the technical complexity and risk of each approach? - If one plan fails, how can you quickly switch to an alternative? - Which plan is best suited for rapid MVP validation? </thinking>Provide A/B/C alternatives for each key design decision: | Decision Point | Plan A | Plan B | Plan C | |----------------|--------|--------|--------| | ... | Simple/Conservative | Recommended/Balanced | Aggressive/Theoretically Optimal |
Each plan includes: pros, cons, applicable scenarios, and rollback strategy.
Resource Estimation
| Phase | GPU Type | VRAM Required | Estimated Duration | Notes | |-------|---------|--------------|-------------------|-------| | MVP (10% data) | ... | ... | ... | Validate feasibility | | Full training | ... | ... | ... | Main experiments | | Ablation experiments | ... | ... | ... | Run in parallel |
Estimate VRAM based on backbone parameter count, batch size, and input resolution; estimate duration based on dataset size and epochs.
Output Technical Specification
Write to docs/Technical_Spec.md, including the following sections:
Preserve the template structure, but localize headings and narrative text according to ../../shared/language-policy.md unless a field is explicitly marked English-only.
Update Project State
Update PROJECT_STATE.json:
current_stage.status → "completed"artifacts.technical_spec → file pathhistory append completion recorddecisions record key design decisions
</instructions>
development
WF7.5 training pipeline validation. Before entering WF8 iteration, first use Codex to review code for baseline equivalence, then run a 100-step smoke test to verify end-to-end pipeline functionality.
business
WF1 Inspiration survey and gap analysis. Takes the user's research idea, performs literature search, gap analysis, competitor analysis, and feasibility scoring, then outputs Feasibility_Report.md. Use when the user has a new CV research idea that needs a feasibility assessment.
tools
WF10 Submission/Release Tool. Multi-scene training, result packaging, filename validation, dry-run submission checks. Used after ablation experiments are complete and before competition submission.
testing
--- name: orchestrator description: CV research project orchestrator. Coordinates the 10-stage research workflow (WF1-WF10 + WF7.5 gate), tracks progress, and manages PROJECT_STATE.json. Supported commands: init (initialize), status (view state), next (advance stage), rollback (revert), decision (record decisions). Use when the user wants to manage CV research project progress, initialize a project, view status, or switch workflow stages. argument-hint: "[command: init|status|next|rollback|decis