agentleFS
Moussaoui-GhilesMoussaoui-Ghiles/claude-skills/skills/icp-prompt-builder/SKILL.md

icp-prompt-builder

Skill4 starsChanged 2 months agoMITView on GitHub

Build and tune a reusable prompt for deciding whether companies match an ideal customer profile. Use before applying AI qualification to a large company list. Test ten companies per round, incorporate user corrections, and stop only after two consecutive rounds require no corrections.

We split this skill into the rules it gives an agent

18 rules. 0 are common, 18 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 18

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the user already has written ICP rules, use them.

    line 25
  2. Distinctive:

    Use only the supplied company fields and approved live research.

    line 29
  3. Distinctive:

    Keep company fit separate from timing signals and contact roles.

    line 30
  4. Distinctive:

    Do not treat industry labels, job titles, funding, or headcount as proof of need unless the user made that rule explicit.

    line 31
  5. Distinctive:

    Do not spend data-provider credits or call an external scoring API without explicit approval.

    line 34
  6. Distinctive:

    Every rule must be testable against a named field or an approved source.

    line 47
  7. Distinctive:

    Use this output contract:

    line 62
  8. Distinctive:

    Run the prompt on the ten companies.

    line 91
  9. Distinctive:

    Use parallel sub-agents only when the environment supports them and the user has not restricted delegation.

    line 93
  10. Distinctive:

    Do not let one evaluator see the user's expected answer for a company before it produces its result.

    line 95
  11. Distinctive:

    Ask the user to identify:

    line 104
  12. Distinctive:

    Update the prompt only from the user's corrections or new verified evidence.

    line 116
  13. Distinctive:

    Do not auto-approve the prompt because the results look plausible.

    line 126
  14. Distinctive:

    If the prompt has not converged after five rounds, stop and identify the cause.

    line 128
  15. Distinctive:

    Create two files in the user's chosen working folder:

    line 132
  16. Distinctive:

    Before scoring the full list:

    line 162
  17. Distinctive:

    Do not discard rejected rows.

    line 171
  18. Distinctive:

    no large-scale or paid run occurred without approval.

    line 181

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “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
SKILL.md

ICP Prompt Builder

Build a company-qualification prompt that reflects the user's actual judgment before it is applied at scale.

The skill tunes the decision rules. It does not build the company list, enrich contacts, validate emails, or launch outreach.

Required input

Collect:

  • the company selling the offer;
  • the offer being sold;
  • a plain-language description of the ideal customer;
  • examples of companies that clearly fit;
  • examples of companies that clearly do not fit;
  • hard exclusions;
  • the fields available in the company data;
  • the file or table containing the candidate companies.

If the user already has written ICP rules, use them. Do not replace them with generic industry assumptions.

Evidence rules

  • Use only the supplied company fields and approved live research.
  • Keep company fit separate from timing signals and contact roles.
  • Do not treat industry labels, job titles, funding, or headcount as proof of need unless the user made that rule explicit.
  • Missing evidence stays unknown.
  • A confidence score never overrides a hard exclusion or missing required evidence.
  • Do not spend data-provider credits or call an external scoring API without explicit approval.

Tuning loop

1. Write the first rule set

Turn the user's input into four sections:

  1. required conditions;
  2. preferred conditions;
  3. hard exclusions;
  4. evidence and missing-data rules.

Every rule must be testable against a named field or an approved source. Ask one question when a rule cannot be applied as written.

2. Select ten test companies

Choose a mixed batch:

  • likely fits;
  • likely non-fits;
  • borderline cases;
  • different sizes, industries, and locations when those dimensions matter.

Each row should include at least a domain or official website, company name, description, industry, and headcount when available.

3. Build the qualification prompt

Use this output contract:

{
  "company": "example.com",
  "qualified": true,
  "confidence": 0.0,
  "required_conditions": [
    {"rule": "string", "result": "pass|fail|unknown", "evidence": "string"}
  ],
  "hard_exclusions": [
    {"rule": "string", "result": "clear|matched|unknown", "evidence": "string"}
  ],
  "reason": "one concise sentence",
  "missing_information": ["string"]
}

The prompt must define:

  • which fields the evaluator may use;
  • what each rule means;
  • which exclusions override all other findings;
  • how unknown values affect the result;
  • the exact JSON output;
  • a requirement to quote or name the evidence behind each decision.

4. Evaluate the batch

Run the prompt on the ten companies.

Use parallel sub-agents only when the environment supports them and the user has not restricted delegation. Otherwise evaluate the batch in the current session.

Do not let one evaluator see the user's expected answer for a company before it produces its result.

5. Review with the user

Return a compact table:

CompanyDecisionConfidenceEvidenceMissing information

Ask the user to identify:

  • wrong decisions;
  • correct decisions reached for the wrong reason;
  • missing exclusions;
  • rules that are too broad or too narrow;
  • evidence that should not count.

Record every correction. Do not silently reinterpret it.

6. Revise and test a new batch

Update the prompt only from the user's corrections or new verified evidence. Show the exact rule changes.

Then test a new set of ten companies. Do not reuse the same examples as the main validation batch.

Any correction resets the clean-round count to zero.

7. Stop after two clean rounds

The prompt is ready only after two consecutive batches require zero corrections.

Do not auto-approve the prompt because the results look plausible. The user owns the qualification judgment.

If the prompt has not converged after five rounds, stop and identify the cause. Common causes are thin company data, conflicting rules, or an ICP definition that depends on information the list does not contain.

Save the result

Create two files in the user's chosen working folder:

icp-prompt.md

Include:

  • the final prompt;
  • input fields;
  • required conditions;
  • preferred conditions;
  • hard exclusions;
  • missing-data rules;
  • JSON output contract;
  • the approval date.

icp-prompt-tuning-log.md

Include:

  • each test company;
  • each original decision;
  • every user correction;
  • the rule change caused by that correction;
  • the two clean validation rounds;
  • unresolved data limitations.

Applying the prompt at scale

Scaling is a separate decision.

Before scoring the full list:

  1. confirm the final prompt and input columns;
  2. confirm the scoring tool or model;
  3. estimate any API cost;
  4. get approval for paid processing;
  5. preserve the raw input and scored output;
  6. manually review a sample of accepted and rejected companies.

Do not discard rejected rows. Keep the decision, evidence, and prompt version so the result can be audited.

Completion

The work is complete when:

  • the final prompt has passed two clean rounds;
  • the user approved it;
  • the prompt and tuning log are saved;
  • missing evidence and unresolved edge cases are documented;
  • no large-scale or paid run occurred without approval.

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.