Docs Ai Prdのロゴ

Docs Ai Prd

コミュニティ
vasilyu1983
docs-ai-prd

Writes PRDs and specs optimized for coding assistants. Use when authoring requirements or project context for Claude Code, Cursor, Copilot, or Codex.

概要

公開者vasilyu1983
リポジトリAI-Agents-public
スキル名docs-ai-prd
スター
87
フォーク
19
同梱ファイル
49
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 49個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    vasilyu1983がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Docs Ai Prd」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/shared-skills/skills/docs-ai-prd
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vasilyu1983/AI-Agents-public.git /tmp/AI-Agents-public
mkdir -p .claude/skills
cp -r /tmp/AI-Agents-public/frameworks/shared-skills/skills/docs-ai-prd .claude/skills/docs-ai-prd
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDocs Ai Prdを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にDocs Ai Prdを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Docs Ai Prdは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

PRDs, Specs, and Project Context

Use this skill to create decision-first PRDs, tech specs, acceptance criteria, and tool-aware project context for coding assistants.

This skill owns what the implementation agent needs to know and how that context should be structured. It does not own general documentation cleanup or canonical docs maintenance.

Workflow

  1. Pick the deliverable.
  2. Gather evidence, constraints, and dependencies.
  3. Choose the canonical context surface for the target tool or team workflow.
  4. Write decisions first.
  5. Add acceptance criteria, rollout gates, and source-backed facts.
  6. Validate with the relevant checklist before handoff.

ASCII Flow

text
Request
  |
  v
Classify deliverable
  |-- PRD / brief -------------------> assets/prd/
  |-- technical spec ----------------> assets/spec/
  |-- story / acceptance criteria ---> assets/stories/
  |-- agent handoff context ---------> assets/planning/ + tool context files
  |
  v
Gather evidence + constraints + dependencies
  |
  v
Choose context surface
  |-- Claude Code -----> CLAUDE.md / scoped Claude files
  |-- Codex -----------> AGENTS.md / scoped instructions
  |-- Copilot ---------> .github/copilot-instructions.md
  |-- Cursor ----------> .cursor/rules/ or AGENTS.md
  |
  v
Write decisions first
  |
  v
Add measurable acceptance criteria + rollout / rollback gates
  |
  v
Validate paths, claims, risks, and handoff readiness

Quick Reference

Defaults

  • decision-first beats narrative-first
  • acceptance criteria must be binary or measurable
  • AI features need evals, rollback rules, and permission boundaries
  • shared context should stay small; tool-specific behavior belongs in tool-specific files
  • cross-tool portability is useful, but no single context file is universal

Expert Judgment: Why Specs Fail Coding Agents

Checklists catch missing sections. They do not catch the judgment calls that make the difference between a spec an agent can execute unattended and one that silently produces the wrong thing while satisfying every checklist item. Apply this before handoff, especially for agentic/autonomous runs where no reviewer sees the intermediate state.

Ambiguity classes that kill agent runs

A non-expert reviewer reads a spec for completeness of sections. An expert reads it for these six ambiguity classes, because each one lets a competent agent produce plausible-looking, contract-breaking output while technically following the text:

  1. Referential ambiguity — "the user," "the form," "it" without a fixed noun-phrase, ID, or schema reference. The agent binds to the nearest plausible referent, which is wrong for the case the author had in mind.
  2. Silent-default ambiguity — a case is never mentioned (duplicate email, empty list, concurrent edit), so the agent invents a default. That default is rarely audited against the rest of the system.
  3. Scope-boundary ambiguity — the spec describes new behavior but never states what must stay unchanged. Agents over-refactor adjacent code or leave a now-dead path that nobody asked them to remove.
  4. Temporal/ordering ambiguity — steps are implied but not sequenced ("validate and save" — validate before or after the side effect that can't be undone?).
  5. Measurement ambiguity — "fast," "reliable," "secure," "clean" with no unit, threshold, percentile, or test method attached.
  6. Authority ambiguity — the spec and the existing code disagree, and nothing states which one wins. The agent picks one; the next agent (or the next session) may pick the other.

When reviewing a draft spec, scan specifically for these six classes rather than re-reading for tone or completeness — completeness checklists (see references/requirements-checklists.md) do not surface any of them.

Over-specification vs. under-specification: the calibration judgment

Both failure modes are common, and they look opposite but come from the same root cause: guessing the right level of detail instead of deriving it from risk.

  • Over-specification dictates implementation (a named library, exact variable names, line-level pseudocode) when only the outcome mattered. Cost: the agent thrashes when the mandated approach doesn't fit the codebase, or ships literally what was written instead of what was meant, and the mismatch isn't visible until review.
  • Under-specification gives a title and one paragraph and leaves every non-happy-path implicit. Cost: the agent invents contract details (error shape, retry count, empty-state behavior) that conflict with assumptions already baked into three other call sites — expensive to discover after the fact, not before.

Calibrate detail level to three variables, not to habit or template length:

Blast radiusReversibilityAgent autonomyRight level of detail
High (payments, auth, deletion, PII)Low (hard to roll back)AnySpec every edge case explicitly, plus a "must NOT" list
MediumMediumSupervised turn-by-turn (human reviews each step)State decisions + open questions; let the review loop resolve remaining edge cases
Low (prototype, internal tool, behind a flag)High (cheap to revert)AnyOutcome + happy path; let the agent propose and flag edge cases
Medium or HighAnyUnattended/autonomous run (no human in the loop until done)Spec every edge case — there is no reviewer to catch drift mid-run

The common mistake is applying "prototype-level" detail to an unattended, high-blast-radius run, or applying "payments-level" detail to a two-hour supervised prototype. Ask blast radius and autonomy first; let those answers set the spec's length, not the other way around.

Acceptance-criteria testability: the judgment beyond the checklist

references/acceptance-criteria-patterns.md covers format and common mistakes. Two judgment calls sit above that checklist:

  • The "can't picture the failing test" tell. An AC that reads well but generates zero tests is unfalsifiable. If you cannot describe the specific test that would fail if the behavior were wrong, the AC is not done — rewrite it before handoff, don't ship it and hope the agent infers the missing half.
  • The "two competent engineers" tell. The most common single point of spec failure is not a missing AC — it's an AC that is simultaneously true for two materially different implementations. Ask: "could two competent engineers build different things and both honestly claim this AC is satisfied?" If yes, add a discriminating clause (a concrete input/output pair, a specific error code, an explicit ordering) until the answer is no.

Cross-Tool Context Rules

Treat project memory as layered:

ToolPrimary SurfaceSupporting Surfaces
Claude CodeCLAUDE.mdscoped Claude files, agents, skills, hooks
GitHub Copilot.github/copilot-instructions.mdadditional GitHub instructions, AGENTS.md
Cursor.cursor/rules/ or root AGENTS.mdroot CLAUDE.md, scoped rule files
portable baselineAGENTS.mdlink outward instead of duplicating deep guidance

Quality Gates

PRD and spec quality

  • clear problem statement and evidence
  • named owner and success criteria
  • measurable acceptance criteria
  • metrics with formula, timeframe, and source
  • explicit risks, rollout gates, and rollback conditions

AI feature quality

  • baseline alternative documented
  • eval objective and dataset plan defined before build
  • permission, prompt-injection, and data-exfiltration risks covered
  • monitoring, incident response, and kill switch specified

Project-context quality

  • file paths and commands match the repo
  • guidance is routed to the correct tool surface
  • no secrets or sensitive data
  • shared and tool-specific instructions do not conflict

Navigation

References — Core (load first)

References — Spec-driven & prompt craft

References — Codebase context extraction

References — Stakeholder & team process

Additional assets

Output Format: HTML vs Markdown for Spec Artifacts

Markdown is the default for most context-file surfaces (CLAUDE.md, AGENTS.md, .cursor/rules/), but it is not always the right format for the human-facing artifacts this skill produces (PRDs, tech specs, exploration docs, planning briefs, code-review writeups). For artifacts intended to be read by humans rather than parsed by the next agent, consider HTML.

This guidance is based on Thariq, Using Claude Code: The Unreasonable Effectiveness of HTML (Claude Code team, 2026-05-08).

When HTML wins over Markdown

  • The artifact will exceed ~100 lines and needs to actually be read by stakeholders (most PRDs and tech specs cross this threshold).
  • The spec benefits from visual structure: tables, SVG diagrams, color-coded findings, side-by-side comparisons, annotated code diffs.
  • The artifact will be shared via link (S3, internal storage) rather than read in a repo viewer.
  • The spec is exploratory — multiple design options compared in a grid, mockups, data-flow diagrams.
  • The artifact is interactive — sliders, drag-drop reordering, form-based configuration with a "copy as JSON / prompt / diff" export button at the end.

When Markdown still wins

  • Agent-consumed context files (CLAUDE.md, AGENTS.md, .cursor/rules/) stay markdown — agents parse markdown reliably and HTML adds no signal for them.
  • Artifacts that live in version control and need clean diffs — HTML diffs are noisy and hard to review.
  • Short artifacts (≤100 lines) where added expressiveness is not worth the 2–4× generation cost.
  • Acceptance criteria meant to be evaluated programmatically (Gherkin, JSON Schema), where structure matters more than rendering.

Concrete tradeoffs

DimensionMarkdownHTML
Generation timeBaseline2–4× longer
Token costLowerHigher (frontier large-context models absorb it for most artifacts)
Read-through likelihood for >100-line specsLow — author of Thariq's article reports "I tend to not actually read more than a 100-line markdown file"Much higher — visual structure invites reading
ShareabilityPoor — most browsers don't render nativelyExcellent — upload + link
Version-control diffsCleanNoisy
Interactive elementsNoneSliders, drag-drop, forms, copy buttons
Agent re-ingestionNativeWorks, but markdown is denser per token

The export-button pattern (interactive specs)

When generating an interactive HTML artifact, always end with an export control: "copy as JSON", "copy as prompt", "copy diff", "copy as markdown". The button turns UI manipulation back into pasteable text that closes the loop into the next prompt or PR description. Interactive specs without an export button create a one-way artifact the user can't act on.

Recipe — HTML spec authoring

  1. Decide format up front based on the table above. Default to markdown for context-file surfaces; default to HTML for read-once human artifacts >100 lines.
  2. For HTML, point Claude at the codebase's existing UI or design system. Maintain one design-system HTML file per project that other HTML artifacts can reference to match company style.
  3. For exploration specs, request a grid layout with multiple options side-by-side, each labeled with the tradeoff it makes.
  4. For interactive HTML, specify the export control explicitly in the prompt — do not assume the agent will add it.
  5. For implementation handoff, write the HTML spec for the human reviewer; then in the next session, pass the HTML file to the implementation agent along with markdown acceptance criteria. The implementation agent gets binary criteria; the human gets the richer artifact.

Related skills

  • Interactive HTML with controls + export button: ../playground:playground (interactive playground pattern is the same shape)
  • Frontend design for matching company style: frontend-design:frontend-design plugin skill
  • Plan output format selection (HTML vs markdown for plan documents): ../dev-workflow-planning/SKILL.md

What not to do

  • Do not build a forced /html skill or rule that everything must be HTML — Thariq's own caution. Prompting fluency beats a forced abstraction.
  • Do not put PRDs and context files in the same format by default — the right format depends on the audience (human vs agent).
  • Do not lose acceptance criteria in HTML decoration — the binary, measurable parts must remain extractable, ideally as a code block or table the implementation agent can parse cleanly.

Boundary: docs-ai-prd vs docs-codebase

  • docs-ai-prd owns requirements, specs, acceptance criteria, and context-file strategy
  • docs-codebase owns README, runbooks, API reference, changelogs, and canonical documentation quality

If you are deciding what context an agent needs or how a spec should be structured, stay here. If you are rewriting repository docs, use docs-codebase.

Related Skills

Fact-Checking

  • Verify volatile vendor, standard, and tool-behavior claims before final advice.
  • Prefer primary sources and the curated data/sources.json registry.
  • If live verification is unavailable, mark external claims as unverified.

Learnings Loop

Before applying this skill on a non-trivial task, read learnings.consolidated.md in this directory (and learnings.md if present).

After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Docs Ai Prd」では何ができますか?

Writes PRDs and specs optimized for coding assistants. Use when authoring requirements or project context for Claude Code, Cursor, Copilot, or Codex.

TypingMindでDocs Ai Prdを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Docs Ai Prdはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDocs Ai Prdをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/shared-skills/skills/docs-ai-prdを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Docs Ai Prdを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Docs Ai Prdで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDocs Ai Prdを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Docs Ai Prd」は無料ですか?

はい。vasilyu1983がMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇