AgentSkillsCN

phx:intro

交互式介绍 Elixir/Phoenix 插件,分四个部分循序渐进地讲解各项命令、工作流程与核心功能。

SKILL.md
--- frontmatter
name: phx:intro
description: Interactive introduction to the Elixir/Phoenix plugin. Walks through commands, workflow, and features in 4 sections.
argument-hint: [--section N]

Plugin Introduction Tutorial

Interactive walkthrough of the Elixir/Phoenix plugin in 4 sections (~3 min).

Arguments

  • $ARGUMENTS may contain --section N to jump to a specific section (1-4)
  • No arguments = start from Section 1

Execution Flow

  1. Read references/tutorial-content.md for all section content
  2. Parse $ARGUMENTS for --section N flag
  3. If --section N specified, jump directly to that section
  4. Otherwise start from Section 1

Section Presentation Loop

For each section:

  1. Present the section content (formatted markdown from reference file)
  2. After presenting, use AskUserQuestion with options:
    • If sections remain: "Next: [next section title]", "Skip to Cheat Sheet", "Stop here"
    • If on final section (4): no question needed, end with closing message

Section Titles

NTitle
1Welcome
2Core Workflow Commands
3Knowledge & Safety Net
4Cheat Sheet & Next Steps

Iron Laws

  1. ONE section at a time — never dump all content at once
  2. User controls pace — always offer to stop between sections
  3. Clean formatting — use tables and code blocks, not walls of text

Closing Message

After Section 4 (or when user stops):

code
You're all set! Try `/phx:plan` with your next feature to see the workflow in action.
Run `/phx:intro --section N` anytime to revisit a specific section.

Notes

  • This runs in main conversation context (not a subagent)
  • Reference file is readable since skill runs in user's session
  • Keep tone welcoming but concise — developers don't want fluff