agentleFS
adidactaadidacta/pmf-detective/CLAUDE.md

pmf-detective

CLAUDE.md18 starsChanged 9 months agoMITView on GitHub

PMF Detective is a Claude Code plugin that helps product builders create their PMF context layer — reference files that capture the "WHY" behind their product. Claude references these files when building anything for the product. Plugin name: pmf-detective (in plugin.json, matching the marketplace entry). The guided flow command is still /plan-pmf. Marketplace name: pmf-detective (in marketplace.json) Plugin Type: Claude Code marketplace plugin (skills + commands) Core Structure: - skills/ — AI-triggered skills with YAML frontmatter - commands/ — User-invoked…

The file

We split this CLAUDE.md into the rules it gives an agent

8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use AskUserQuestion tool for user choices

    line 113
  2. Distinctive:

    Always include "Not sure" option that adds to Open Questions

    line 114
  3. Distinctive:

    Don't rely on text above the question to provide context

    line 122
  4. Very specific:

    Output Files: All user outputs go to pmf/ folder using templates from templates/outputs/

    line 126
  5. Distinctive:

    Ask ONE question at a time

    line 129
  6. Distinctive:

    Keep it simple — we're building context, not running experiments

    line 131
  7. Distinctive:

    Every AskUserQuestion must include a "Not sure (needs research)" option.

    line 132
  8. Distinctive:

    NEVER auto-answer questions.

    line 133

≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code when working with code in this repository.

What This Is

PMF Detective is a Claude Code plugin that helps product builders create their PMF context layer — reference files that capture the "WHY" behind their product. Claude references these files when building anything for the product.

Plugin name: pmf-detective (in plugin.json, matching the marketplace entry). The guided flow command is still /plan-pmf. Marketplace name: pmf-detective (in marketplace.json)

Architecture

Plugin Type: Claude Code marketplace plugin (skills + commands)

Core Structure:

  • skills/ — AI-triggered skills with YAML frontmatter
  • commands/ — User-invoked slash commands
  • templates/outputs/ — Output file templates
  • .claude-plugin/plugin.json — Plugin metadata
  • .claude-plugin/marketplace.json — Marketplace listing

Skill Hierarchy:

pmf-context (coordinator)
├── plan-pmf-mode             (Full context builder — orchestrates the flow)
│
│   Context Layer (assumptions):
├── icp-builder               (ICP section)
├── value-prop-builder        (Value Proposition — Callout + Magnet)
├── mvp-builder               (MVP scope — aha moment → steps → features → requirements)
│
│   Validation:
├── validation-plan-builder   (Choose method + success criteria → routes to execution)
│
│   Execution (based on validation method):
├── asset-generators/
│   └── landing-generator     (Landing page — if validating with signups)
├── outreach-builder          (Outreach plan + Mom Test — if validating with conversations)
└── build-test-guide          (BMAD Method setup — if validating by building)

The Flow

1. ICP                → pmf/icp.md           (assumption)
2. Value Proposition  → pmf/value-prop.md     (assumption)
3. MVP PRD            → pmf/mvp.md            (assumption)
4. Validation Plan    → pmf/validation-plan.md (decides HOW to test)
   │
   ├─→ Landing Page     → landing/              (signups/pre-orders)
   ├─→ Outreach         → pmf/outreach-plan.md  (Mom Test conversations)
   └─→ Build & Test     → BMAD Method setup      (build the MVP)

The first 3 files are assumptions. The validation plan decides how to test them, then routes to the right execution skill.

The Context Layer

pmf/
├── icp.md              # Who you believe your customer is (assumption)
├── value-prop.md       # Why they should care (assumption)
├── mvp.md              # MVP scope — aha moment, steps, features & requirements (assumption)
├── validation-plan.md  # How you'll test these assumptions + chosen method
└── outreach-plan.md    # (if conversations) Mom Test questions + outreach approach

Progress Tracking: Context completion is detected by checking for files in user's pmf/ directory:

  • pmf/icp.md → ICP defined
  • pmf/value-prop.md → Value proposition defined
  • pmf/mvp.md → MVP scope defined
  • pmf/validation-plan.md → Validation plan set + method chosen

Commands

CommandDescription
/plan-pmfBuild full context layer (guided flow)
/update-icpUpdate ICP section
/update-value-propUpdate value proposition
/update-mvpUpdate MVP scope
/pmf-statusShow context completion status
/generate-assets landingGenerate a landing page

Key Conventions

SKILL.md Format:

---
name: skill-name
description: >
  Trigger conditions and purpose.
allowed-tools: Read, Write, Glob, WebSearch, AskUserQuestion
---

Allowed Tools by Skill:

SkillTools
pmf-context (coordinator)Read, Write, Glob, WebSearch, AskUserQuestion
plan-pmf-modeRead, Write, Glob, WebSearch, AskUserQuestion, Task
icp-builderRead, Write, Glob, WebSearch, AskUserQuestion, Task
value-prop-builderRead, Write, Glob, WebSearch, AskUserQuestion
mvp-builderRead, Write, Glob, WebSearch, AskUserQuestion
validation-plan-builderRead, Write, Glob, WebSearch, AskUserQuestion
outreach-builderRead, Write, Glob, WebSearch, AskUserQuestion
landing-generatorRead, Write, Glob, Bash
build-test-guideRead, Glob, AskUserQuestion

UI Patterns:

  • Use AskUserQuestion tool for user choices
  • Always include "Not sure" option that adds to Open Questions
  • Visual boxes using Unicode box-drawing characters (┌─┐│└─┘) at 63-char inner width
  • Progress bars: ████████░░░░░░░░░░░░ X/Y sections
  • Show progress only at section END, not after every message

AskUserQuestion Best Practices:

  • The header field creates a visual divider — use sparingly (1 word max) or omit
  • Make questions self-contained — include all context in the question text
  • Don't rely on text above the question to provide context
  • BAD: "Which type?" with header "Target"
  • GOOD: "Which type of YouTube learner is your ideal customer?"

Output Files: All user outputs go to pmf/ folder using templates from templates/outputs/

Core Rules:

  • Ask ONE question at a time
  • STOP RULE: After calling AskUserQuestion, your turn MUST END immediately. Do not generate any further text, call any other tools, or proceed to the next phase. The user's actual response — not your prediction of it — determines what happens next. This rule is non-negotiable regardless of how much context you have.
  • Keep it simple — we're building context, not running experiments
  • Every AskUserQuestion must include a "Not sure (needs research)" option. When selected: add to Open Questions in the output file with enough context to act on later. Never pressure to guess — uncertainty is valuable data.
  • NEVER auto-answer questions. Even if you can predict what the user would say based on prior context, you MUST wait for their actual input. Predicting answers defeats the entire purpose of this tool.

What's Gitignored

  • pmf/ — User-generated output (not part of the plugin distribution)
  • landing/ — Generated landing page output
  • *.png — Screenshots and images

Attribution

Created by Adi Shmorak, The P/MF Detective. Feedback: adi@adidacta.com

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.