conductor-dev-pro
Conductor Dev Pro
Overview
This skill provides the boilerplate files and structure for the Conductor project orchestration framework. It initializes a conductor/ directory with essential documentation and workflow definitions according to the Universal File Resolution Protocol.
Workflow
1. Initialize Conductor
Scaffolds the conductor/ directory in the current project.
- Trigger: "Initialize conductor", "Setup conductor template", "Add conductor to project"
- Action:
- Create a
conductor/directory at the project root if it doesn't exist. - Copy all template files from
assets/conductor-template/to theconductor/directory using PowerShell-compatible commands. - Inform the user that the Conductor directory has been initialized.
- Create a
Implementation Directives
When implementing tracks or tasks under Conductor:
- Dynamic Path Resolution: ALWAYS resolve template paths relative to the skill's root directory.
- Lint Before Commit: Execute
codelinteron all modified files immediately after editing. - Token Efficiency (CRITICAL): Do NOT run unit tests (
hvigorw test) or full project build commands (likeassembleHap) during the task implementation phase, even if the track plan or project workflow suggests it. This is a strict constraint to save time and tokens. Task-level verification should rely primarily oncodelinterand manual/visual verification. - Visual Proof: For UI tasks, save a screenshot to
conductor/artifacts/snapshots/[task_id].png. - Idempotent Edits: Before using the
replacetool, you MUST useread_fileto verify the current content. Ensure thatnew_stringis DIFFERENT from the existing text to avoid "No changes to apply" errors. - Automated Self-Learning Loop:
- At the start of every track implementation or task, you MUST read
conductor/learning.md. If it does not exist, create it with a# Learning Logheader. - If an error happens, analyze and document the fix in
conductor/learning.md. - Display Lessons: Proactively notify the user and explicitly display the content of "Lessons Learned" in the chat whenever
conductor/learning.mdis updated or after resolving errors or complex tasks.
- At the start of every track implementation or task, you MUST read
- Flexible Checkpointing: Commit changes after every task by default, but allow "Phase-based" commits if requested in the track plan.
- Quality Standards: Adhere strictly to the project's
product-guidelines.mdand prioritize UI performance. - HarmonyOS Context: Read
build-profile.json5for SDK versions and cross-reference with API mapping. - Final Build Verification: ONLY after all phases in a track's
plan.mdare completed, you MUST executehvigorw assembleHapas a final verification step to ensure the entire project is in a stable, buildable state before completing the track. Do not execute this command after individual tasks or phases.
Cross-Platform Compatibility
CRITICAL: When performing analysis or file operations, you MUST distinguish between available agent tools (e.g., read_file, grep_search) and shell commands. NEVER attempt to execute an agent tool name as a shell command within run_shell_command.
When performing project analysis or file operations, you MUST use commands compatible with the user's operating system.
- Windows (PowerShell): Use commands like
Get-ChildItem,New-Item -ItemType Directory -Force(formkdir -p), and avoid Unix-specific pipes likexargs. - Unix (Bash): Standard Unix commands are acceptable.
- Path Resolution: Always use cross-platform path handling. In PowerShell, prefer
$HOMEover~for literal path strings.
Resources
assets/
Contains the template files for the Conductor directory structure:
index.md: The entry point and file resolution index.product.md: Product definition and goals.tech-stack.md: Technology stack and architectural decisions.workflow.md: Development workflow and lifecycle.tracks.md: Registry for development tracks.product-guidelines.md: Design and implementation guidelines.code_styleguides/: Directory for language-specific style guides.workflows/: Detailed workflow patterns (e.g., cycle-based).
Reference: HarmonyOS Version to API Level Mapping
| Version | API Level |
|---|---|
| 4.0 | 10 |
| 4.1 | 11 |
| 5.0.0 | 12 |
| 5.0.1 | 13 |
| 5.0.2 | 14 |
| 5.0.3 | 15 |
| 5.1.0 | 18 |
| 5.1.1 | 19 |
| 6.0 | 20 |
Note: If the version string in build-profile.json5 includes a number in parentheses, such as 6.0.0(20), the number in the parentheses is the API Level.