Prompt file imported from asiapartners/hve-innovation (
.github/prompts/design-thinking/dt-canonical-deck.prompt.md). Fill in{{project_slug}},{{action}},{{method_context}},{{trigger_context}}before use. Copyright stays with the author.
DT Canonical Deck
Single prompt that handles both canonical deck and customer-card build flows.
Inputs
{{project_slug}}: Optional DT project slug under.copilot-tracking/dt/.{{action}}: One ofoffer,build, orrun.offer: offer canonical snapshot creation or refresh.build: build customer-card PPTX from canonical artifacts.run: execute offer flow, and if accepted, execute optional build flow.
{{method_context}}: Optional method number.{{trigger_context}}: Optional offer context (explicit-request,method-exit).
Workflow Rules
- Canonical workflow is available on request at any time, and offered automatically only at eligible asset-ready method exits.
- Decline is valid and non-blocking. Do not gate method transitions.
- Apply canonical workflow rules by loading the
dt-coaching-foundationskill and itsreferences/canonical-deck.md.
Step 1: Resolve Project Slug
If no project slug was provided in inputs:
- List all projects in
.copilot-tracking/dt/by reading thecoaching-state.mdfiles - Ask the user to select which project: *"Which DT project? (Found: [list projects]. Choose one or enter a new slug.)"
- Record the chosen slug and resolve paths using the selected project
Once slug is resolved, establish these paths:
- Project root:
.copilot-tracking/dt/{project-slug} - Canonical dir:
{project-root}/canonical - Render dir:
{project-root}/render - Customer-card skill root:
.github/skills/experimental/customer-card-render - PowerPoint skill root:
.github/skills/experimental/powerpoint
Step 2: Offer Branch (action=offer or action=run)
Run the asset-readiness check from canonical-deck.md first. When no DT method outputs map to a supported canonical artifact type, make no offer, say what is missing, and stop.
When assets are ready, offer snapshot creation or refresh at the Method 3 and Method 5 exits defined in canonical-deck.md:
We can snapshot the canonical deck now so your current artifacts stay traceable. Generate or refresh now?
If declined, record the decline and stop.
If accepted:
- Detect create vs refresh mode from canonical directory state.
- Generate or refresh canonical entries from DT artifacts.
- Update snapshot metadata in coaching state.
Step 2.5: Verify Skill Interfaces (Before Build)
Before executing build commands, verify the actual command parameters by reading the skill documentation:
- Check
.github/skills/experimental/customer-card-render/README.mdfor the exact flags and parameters forgenerate_cards.py - Check
.github/skills/experimental/powerpoint/SKILL.mdfor the exact parameters forInvoke-PptxPipeline.ps1(PowerShell) orinvoke-pptx-pipeline.sh(bash) - Confirm parameter names match the commands shown in Step 3 below. If skill interfaces have changed, update commands accordingly and inform the user of any parameter differences
Step 3: Build Branch (action=build or accepted action=run)
Ask before PPTX build unless the user explicitly requested build in this turn:
Want me to build the customer-card PowerPoint from the canonical deck now?
If accepted:
- Determine the active shell runtime by observing the current terminal type (PowerShell vs bash/Git Bash/WSL)
- Execute the appropriate build path based on the active runtime:
If PowerShell terminal is active:
Run the two-command flow using the confirmed parameters from Step 2.5:
- Generate slide YAML:
python .github/skills/experimental/customer-card-render/scripts/generate_cards.py \
--canonical-dir .copilot-tracking/dt/{project-slug}/canonical \
--output-dir .copilot-tracking/dt/{project-slug}/render/content
- Build PPTX using existing PowerPoint pipeline:
./.github/skills/experimental/powerpoint/scripts/Invoke-PptxPipeline.ps1 -Action Build \
-ContentDir .copilot-tracking/dt/{project-slug}/render/content \
-StylePath .copilot-tracking/dt/{project-slug}/render/content/global/style.yaml \
-OutputPath .copilot-tracking/dt/{project-slug}/render/output/customer-cards.pptx
If bash terminal is active (Git Bash, WSL, or similar):
Use the bash script instead. Verify the bash script flags by sending invoke-pptx-pipeline.sh --help first, then run the build command with the confirmed flags.
Execution Rules:
- Use
send_to_terminalto send commands to the active terminal - Use
get_terminal_outputto poll for completion - Do not run
pip installor manual dependency installation - Rely on PowerPoint skill environment setup (
uv sync) and documented prerequisites - Keep output under the project slug render directory
Step 4: Response Template
Success:
Canonical workflow updated successfully. Canonical:
<project canonical path>PPTX:<project render/output/customer-cards.pptx>
Offer declined:
Skipped for now. You can ask for the canonical deck any time, and I'll offer again when there's more to capture.
Build failure:
YAML generation completed, but PPTX build failed due to
<friendly cause>. Next:
- Verify PowerShell and Python prerequisites.
- Re-run the PowerPoint build command from the same render content.