name: conductor-dev description: Professional project orchestration and workflow management. Initialize the Conductor directory to manage tracks, specifications, and implementation plans.
Conductor Dev
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. It supports both standard linear workflows and advanced cycle-based development (V4 Supercharged).
Conductor owns the orchestration layer. For how to build, lint, deploy, and validate
OpenHarmony apps it defers to ohos-app-dev (the inner loop) and ohos-app-scaffold
(project creation) — it does not restate oniro-app toolchain commands.
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. - Create an
artifacts/snapshots/directory at the project root if it doesn't exist. - Create an
artifacts/logs/directory at the project root if it doesn't exist. - Copy all template files from
assets/conductor-template/to theconductor/directory using a cross-platform recursive copy (the agent's file tools, orcp -ron macOS/Linux /Copy-Item -Recurseon Windows). - Inform the user that the Conductor directory and artifacts folder have been initialized.
- Create a
2. Cycle Workflow (V4 Supercharged)
Executes a structured task cycle defined in conductor/workflows/cycle.md.
- Key Files:
TASKS.md,SESSION_STATE.json(runtime),artifacts/logs/ - Design Context: Use the Figma Extension to inspect designs and extract CSS/ArkTS styling before implementation.
- Steps: Initialization -> Design Analysis (Figma) -> Strategy -> Execution -> Self-Review -> Synchronization -> Handover.
Implementation Directives
When implementing tracks or tasks under Conductor:
- Design-First implementation: For all UI tasks, you MUST use the
figmaextension to fetch and analyze the relevant design files. Extract precise values for dimensions, colors, and typography to ensure pixel-perfect implementation. - Dynamic Path Resolution: ALWAYS resolve template paths relative to the skill's root directory.
- Toolchain →
ohos-app-dev. Lint, build, deploy, logs, screenshots, and UI inspection all run through the cross-platformoniro-appCLI as documented inohos-app-dev— do not hand-rollcodelinter/hvigorw/hdc. In particular, lint changed files withoniro-app lintbefore committing. - Task Verification:
- For logic changes, rely primarily on
oniro-app lintto save tokens. - UI Validation (MANDATORY): for any UI modification you MUST capture the screen into the track artifact and compare it against the Figma design:
- Ensure a device/emulator is connected (
oniro-app devices) andartifacts/snapshots/exists. oniro-app screenshot -o "artifacts/snapshots/[task_id].jpeg"— add--gridto read coordinates off a 10×10 (0.0–1.0) overlay, or--contact-sheetfor a transient/animated state.- Note any discrepancies vs the design in
conductor/learning.mdor the log. (Seeohos-app-devfor the full screenshot / dump / input surface.)
- Ensure a device/emulator is connected (
- For logic changes, rely primarily on
- Visual Proof: Save all UI validation snapshots to
artifacts/snapshots/[task_id].png(or[task_id]_test.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 ("Premium Design" and "Robustness"). ArkTS strict-mode rules and app architecture live inohos-app-dev/references/. - HarmonyOS Context: Read
build-profile.json5for SDK versions; runoniro-app sdk listfor the version↔API-level mapping. - Final Build Verification: ONLY after all phases in a track's
plan.mdare completed, you MUST runoniro-app buildas a final verification that the whole project is in a stable, buildable state before completing the track. Do not run it after individual tasks or phases.
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.setup_state.json: Initial state configuration for setup tracking.code_styleguides/: Directory for language-specific style guides (e.g.,arkts.md).workflows/: Detailed workflow patterns (e.g.,cycle.mdfor V4 Supercharged cycle).
references/
agency-workflow.md: The orchestration framework's lifecycle model — the "Golden Trio" (TASKS.md,SESSION_STATE.json,cycle.md) and the/cyclephases.
SDK / API levels
Run oniro-app sdk list for the version↔API-level mapping. If build-profile.json5 shows the API level in parentheses (e.g. 6.0.0(20)), that number is the API level.