Agent SkillsTerry-Mao/AICodingFlow › create-product-spec

create-product-spec

GitHub

将GitHub Issue转化为产品规格说明书。基于本地共享工作流,读取Issue上下文及评论,生成聚焦用户行为与需求的product.md文件至指定路径,不提交代码或创建PR。

.github/skills/create-product-spec/SKILL.md Terry-Mao/AICodingFlow

Trigger Scenarios

需要将GitHub Issue转化为产品规格文档 准备产品需求文件但不执行代码提交

Install

npx skills add Terry-Mao/AICodingFlow --skill create-product-spec -g -y
More Options

Non-standard path

npx skills add https://github.com/Terry-Mao/AICodingFlow/tree/main/.github/skills/create-product-spec -g -y

Use without installing

npx skills use Terry-Mao/AICodingFlow@create-product-spec

指定 Agent (Claude Code)

npx skills add Terry-Mao/AICodingFlow --skill create-product-spec -a claude-code -g -y

安装 repo 全部 skill

npx skills add Terry-Mao/AICodingFlow --all -g -y

预览 repo 内 skill

npx skills add Terry-Mao/AICodingFlow --list

SKILL.md

Frontmatter
{
    "name": "create-product-spec",
    "description": "Create a product spec from a GitHub issue in this repository by applying the local shared `write-product-spec` workflow with issue context and output paths. Use when an issue should be turned into a product spec artifact stored under `specs\/issue-<issue-number>\/product.md` and the agent should prepare file changes only, without creating commits or pull requests itself."
}

create-product-spec

Create a product spec from a GitHub issue for this repository.

Overview

This skill is a wrapper around the local shared product-spec workflow:

  • .agents/skills/write-product-spec/SKILL.md

Use that shared local skill as the base behavior and structure unless this wrapper overrides it. Keep the same emphasis on precise user-facing behavior, invariants, edge cases, validation, and open questions.

The differences are:

  • the primary input is a GitHub issue, not a Linear issue
  • the output path is specs/issue-<issue-number>/product.md
  • the workflow or prompt provides the issue context path; in CI this is often issue_context.json, while local wrappers should provide a path in a system temporary directory
  • the workflow or prompt may provide an issue comments path; in CI this is often issue_comments.txt
  • a workflow may also request a structured PR metadata output path; in CI this is often pr-metadata.json
  • do not create or edit Linear issues as part of this workflow

Inputs

Expect issue details in the issue context file named by the prompt, including the issue number, title, description, labels, assignees, triggering comment when present, and exact product_spec path. If the prompt does not provide an explicit path, use issue_context.json in the current workflow worktree.

Use the issue comments file named by the prompt as prior discussion context when present. If no explicit path is provided, use issue_comments.txt in the current workflow worktree when it exists. Treat comments as additional context, not as a silent override of the issue body. Resolved decisions from comments can refine the spec; unresolved disagreements should remain explicit open questions.

Workflow

  1. Start from the local shared write-product-spec guidance and follow its structure and writing standards unless this wrapper says otherwise.
  2. Read the prompt-provided issue context path carefully. If a prompt-provided issue comments path exists, review it for clarifications, prior decisions, and issue-comment nuance that should influence the spec.
  3. Inspect the repository enough to understand the current user workflow and likely scope before writing the spec.
  4. Create or update the exact product_spec path from issue_context.json.
  5. Keep the product spec focused on intended behavior and user-facing requirements. Use the shared skill's sections as the baseline, adapted to this repository and issue format. At minimum, cover:
    • summary
    • problem
    • goals
    • non-goals or scope boundaries
    • concrete user experience and behavior requirements
    • success criteria
    • validation
    • open product questions
  6. If design context such as a Figma link is present in the issue description or comments, include it. If no design context exists, make that absence explicit rather than silently omitting it.
  7. Do not include implementation details, file-level changes, or technical design. Those belong in the tech spec.
  8. Do not implement the feature or modify production code as part of this task. Limit changes to the product spec artifact. Treat temporary context and comments files as scratch input only and do not commit them.
  9. Do not include issue number references (e.g. (#N), Refs #N) in commit messages. The issue is already linked in the PR.
  10. If the prompt asks for PR metadata, write it to the exact metadata output path named by the prompt. If no explicit path is provided, use pr-metadata.json in the current workflow worktree. The file must contain a JSON object with the fields branch_name, pr_title, and pr_summary. The pr_summary should summarize the product and technical planning clearly enough that reviewers can use it directly as the PR body. For spec-only PRs, include a non-closing reference to the source issue such as Refs #<issue-number> rather than closing keywords like Closes or Fixes.
  11. Default behavior: do not stage files, create commits, push branches, open pull requests, or use the GitHub CLI.
  12. In your final response, provide a brief summary of the product spec and call out any assumptions or open questions so the workflow can reuse that summary when creating the PR.

Output expectations

  • Leave the repository with the new or updated product spec file ready to be committed by the workflow.
  • When requested by the prompt, leave a ready-to-use PR metadata file at the prompt-provided path with branch_name, pr_title, and pr_summary.
  • If the issue is underspecified, still produce the best possible product spec and clearly capture assumptions or open questions in the spec file and final response.

Version History

  • e53c5ac Current 2026-07-24 11:36

Same Skill Collection

.agents/skills/bootstrap-issue-config/SKILL.md
.agents/skills/create-issue/SKILL.md
.agents/skills/create-pr/SKILL.md
.agents/skills/diagnose-ci-failures/SKILL.md
.agents/skills/git-branch/SKILL.md
.agents/skills/git-commit/SKILL.md
.agents/skills/git-push/SKILL.md
.agents/skills/git-worktree/SKILL.md
.agents/skills/pr-walkthrough/SKILL.md
.agents/skills/resolve-merge-conflicts/SKILL.md
.agents/skills/review-pr-local/SKILL.md
.agents/skills/review-spec-local/SKILL.md
.agents/skills/spec-driven-implementation/SKILL.md
.agents/skills/write-product-spec/SKILL.md
.agents/skills/write-tech-spec/SKILL.md
.github/skills/check-impl-against-spec/SKILL.md
.github/skills/create-tech-spec/SKILL.md
.github/skills/dedupe-issue-repo/SKILL.md
.github/skills/dedupe-issue/SKILL.md
.github/skills/implement-issue/SKILL.md
.github/skills/implement-specs/SKILL.md
.github/skills/product-change-report/SKILL.md
.github/skills/product-docs-sync/SKILL.md
.github/skills/product-wiki/SKILL.md
.github/skills/review-pr-repo/SKILL.md
.github/skills/review-pr/SKILL.md
.github/skills/review-spec-repo/SKILL.md
.github/skills/review-spec/SKILL.md
.github/skills/security-review-pr/SKILL.md
.github/skills/security-review-spec/SKILL.md
.github/skills/triage-issue-repo/SKILL.md
.github/skills/triage-issue/SKILL.md
.github/skills/update-dedupe/SKILL.md
.github/skills/update-pr-review/SKILL.md
.github/skills/update-triage/SKILL.md

Metadata

Files
0
Version
e53c5ac
Hash
30fd0884
Indexed
2026-07-24 11:36

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-07 00:34
浙ICP备14020137号-1 $Гость$