配对能力设置PM
diegosouzapw2026-10-28查看 1273复制 1178
通过引导从支持的选项中进行选择、应用实施指南、更新工作方式采用情况,并通过 /pair-capability-record-decision 记录决策来配置项目管理工具。幂等——可检测现有配置。
📘如何使用这个技能
- 1复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
- 2打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
- 3粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
- 4直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景
💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。
SKILL.md7575 chars
--- name: pair-capability-setup-pm description: "Configures the project management tool by guiding selection from supported options, applying the implementation guide, updating way-of-working adoption, and recording the decision via /pair-capability-record-decision. Idempotent — detects existing configuration." version: 0.4.1 author: Foomakers --- # /pair-capability-setup-pm — PM Tool Configuration Configure the project management tool for the current project. Guides the developer through tool selection, applies the implementation guide, updates adoption files, and records the decision. ## Arguments | Argument | Required | Description | | -------- | -------- | ------------------------------------------------------------------------------------------- | | `$tool` | No | PM tool to configure (e.g., `github`, `filesystem`). If omitted, presents selection options. | ## Composed Skills | Skill | Type | Required | | ------------------ | ---------- | ----------------------------------------------------------- | | `/pair-capability-record-decision` | Capability | Yes — records PM tool choice as ADL entry + adoption update | ## Algorithm ### Step 1: Detect Existing Configuration 1. **Check**: Read [adoption/tech/way-of-working.md](../../../.pair/adoption/tech/way-of-working.md). Does it contain a PM tool configuration (e.g., "Github Projects is adopted" or "Filesystem is adopted" for project management)? 2. **Skip** (not configured): Proceed to Step 2. 3. **Act** (already configured): Present current configuration: > PM tool already configured: **[tool name]**. > - Current setup: [summary of PM section from way-of-working.md] > > Options: > 1. **Keep current** — no changes needed > 2. **Reconfigure** — switch to a different PM tool - If **Keep current** → stop, output current state. - If **Reconfigure** → proceed to Step 2. 4. **Verify**: Mode is `configure` or `done`. ### Step 2: Select PM Tool 1. **Check**: Is `$tool` provided and valid? 2. **Skip**: If valid `$tool`, proceed to Step 3 with that tool. 3. **Act**: Present PM tool options using the [selection framework](../../../.pair/knowledge/guidelines/collaboration/project-management-tool/README.md): > **Select a project management tool:** > > | Tool | Best For | Implementation Guide | > |------|----------|---------------------| > | **GitHub Projects** | Teams using GitHub, remote collaboration, any size | Available | > | **Filesystem** | Small teams, offline work, high security | Available | > | **Other** (Jira, Linear, Azure DevOps, etc.) | Enterprise, complex workflows | No implementation guide yet | > > Which tool does your team use or want to adopt? 4. **Act**: If developer selects a tool without an implementation guide → **HALT**: > No implementation guide available for **[tool name]**. To add support: > - Create `guidelines/collaboration/project-management-tool/<tool>-implementation.md` > - Follow the structure of existing implementation guides > > For now, you can manually configure `adoption/tech/way-of-working.md`. 5. **Verify**: Tool selected with available implementation guide. ### Step 3: Apply Implementation Guide 1. **Act**: Read the implementation guide for the selected tool: - GitHub: [github-implementation.md](../../../.pair/knowledge/guidelines/collaboration/project-management-tool/github-implementation.md) - Filesystem: [filesystem-implementation.md](../../../.pair/knowledge/guidelines/collaboration/project-management-tool/filesystem-implementation.md) 2. **Act**: Walk the developer through the setup steps from the implementation guide: - For **GitHub Projects**: project creation, board configuration, label setup, automation rules, MCP integration - For **Filesystem**: directory structure creation, status tracking files, workflow templates 3. **Act**: Gather project-specific details needed for configuration: - Project/organization name - Board columns and workflow methodology (Kanban, Scrum, etc.) - Label taxonomy - Automation preferences 4. **Verify**: PM tool is configured and accessible. ### Step 4: Update Way-of-Working 1. **Check**: Read current [adoption/tech/way-of-working.md](../../../.pair/adoption/tech/way-of-working.md). 2. **Act**: Add or update the PM tool section with: - Tool name and version/tier - Workflow methodology (Kanban, Scrum, etc.) - Project identifier (e.g., GitHub org/project name, filesystem path) - Access method (e.g., MCP, CLI, direct) - Reference to implementation guide 3. **Verify**: Way-of-working reflects current PM configuration. ### Step 5: Record Decision 1. **Act**: Compose `/pair-capability-record-decision` with: - `$type`: `non-architectural` - `$topic`: `pm-tool-choice` - `$summary`: "[Tool] adopted for project management with [methodology] workflow" 2. **Verify**: ADL entry created at `adoption/decision-log/YYYY-MM-DD-pm-tool-choice.md` and adoption files updated. ## Output Format ```text PM CONFIGURED: ├── Tool: [tool name] ├── Methodology: [Kanban | Scrum | etc.] ├── Project: [project identifier] ├── Access: [MCP | CLI | filesystem] ├── Adoption: [way-of-working.md updated] ├── Decision: [ADL entry path] └── Status: [Configured | Already configured (unchanged) | Reconfigured] ``` ## Composition Interface When composed by `/pair-process-bootstrap`: - **Input**: `/pair-process-bootstrap` reaches PM configuration phase and invokes `/pair-capability-setup-pm` (optionally with `$tool` if developer pre-selected). - **Output**: Returns tool name, configuration status, and ADL entry path. - `/pair-process-bootstrap` includes the adoption and ADL changes in the next commit. When invoked **independently**: - Interactive: full Step 1-5 flow. Developer commits changes when satisfied. ## Edge Cases - **PM tool already configured + reconfigure**: Old configuration is replaced, not appended. The new ADL entry references the previous decision if one exists. - **No MCP connection for GitHub**: Warn that GitHub Projects requires MCP or CLI access. Offer to configure the adoption file manually and validate connectivity later. - **Multiple PM tools**: Not supported in a single project. One tool per project. If developer needs multiple, suggest primary + secondary pattern and document in way-of-working. ## Graceful Degradation - If [way-of-working.md](../../../.pair/adoption/tech/way-of-working.md) doesn't exist, create it with PM section as initial content. Warn: "Created way-of-working.md — this appears to be a new project." - If implementation guide not found for selected tool, HALT with contribution instructions (Step 2.4). - If `/pair-capability-record-decision` is not installed, warn and skip ADL recording: "Decision not recorded — /pair-capability-record-decision not installed. Please manually document the PM tool choice." ## Notes - Supported tools with implementation guides: **GitHub Projects**, **Filesystem**. - The [selection framework](../../../.pair/knowledge/guidelines/collaboration/project-management-tool/README.md) provides decision matrix and cost-benefit analysis for tool selection. - This skill modifies: `adoption/tech/way-of-working.md` and creates an ADL entry via `/pair-capability-record-decision`. - PM tool configuration is a project-level decision — it applies to all team members and workflows.