tomstools11

@tomstools11Unclaimed · imported

This profile was created from github.com/tomstools11 so the prompts could be credited. Are you tomstools11?

Claim this profileRequest removal

github.com/tomstools11Joined Nov 29, 20260 points0 followers·0 following
tomstools11@tomstools11Sales

Sales prospect research methodology skill for company and contact profiling

A Claude Code skill giving methodology and checklists for researching sales prospects: company basics, recent developments, tech stack, buying signals, and contact background, influence, and engagement hooks.

Imported·via prompts.chat·Unclaimed·CC0
---
name: sales-research
description: This skill provides methodology and best practices for researching sales prospects.
---

# Sales Research

## Overview

This skill provides methodology and best practices for researching sales prospects. It covers company research, contact profiling, and signal detection to surface actionable intelligence.

## Usage

The company-researcher and contact-researcher sub-agents reference this skill when:
- Researching new prospects
- Finding company information
- Profiling individual contacts
- Detecting buying signals

## Research Methodology

### Company Research Checklist

1. **Basic Profile**
   - Company name, industry, size (employees, revenue)
   - Headquarters and key locations
   - Founded date, growth stage

2. **Recent Developments**
   - Funding announcements (last 12 months)
   - M&A activity
   - Leadership changes
   - Product launches

3. **Tech Stack**
   - Known technologies (BuiltWith, StackShare)
   - Job postings mentioning tools
   - Integration partnerships

4. **Signals**
   - Job postings (scaling = opportunity)
   - Glassdoor reviews (pain points)
   - News mentions (context)
   - Social media activity

### Contact Research Checklist

1. **Professional Background**
   - Current role and tenure
   - Previous companies and roles
   - Education

2. **Influence Indicators**
   - Reporting structure
   - Decision-making authority
   - Budget ownership

3. **Engagement Hooks**
   - Recent LinkedIn posts
   - Published articles
   - Speaking engagements
   - Mutual connections

## Resources

- `resources/signal-indicators.md` - Taxonomy of buying signals
- `resources/research-checklist.md` - Complete research checklist

## Scripts

- `scripts/company-enricher.py` - Aggregate company data from multiple sources
- `scripts/linkedin-parser.py` - Structure LinkedIn profile data
FILE:company-enricher.py
#!/usr/bin/env python3
"""
company-enricher.py - Aggregate company data from multiple sources

Inputs:
  - company_name: string
  - domain: string (optional)

Outputs:
  - profile:
      name: string
      industry: string
      size: string
      funding: string
      tech_stack: [string]
      recent_news: [news items]

Dependencies:
  - requests, beautifulsoup4
"""

# Requirements: requests, beautifulsoup4

import json
from typing import Any
from dataclasses import dataclass, asdict
from datetime import datetime


@dataclass
class NewsItem:
    title: str
    date: str
    source: str
    url: str
    summary: str


@dataclass
class CompanyProfile:
    name: str
    domain: str
    industry: str
    size: str
    location: str
    founded: str
    funding: str
    tech_stack: list[str]
    recent_news: list[dict]
    competitors: list[str]
    description: str


def search_company_info(company_name: str, domain: str = None) -> dict:
    """
    Search for basic company information.
    In production, this would call APIs like Clearbit, Crunchbase, etc.
    """
    # TODO: Implement actual API calls
    # Placeholder return structure
    return {
        "name": company_name,
        "domain": domain or f"{company_name.lower().replace(' ', '')}.com",
        "industry": "Technology",  # Would come from API
        "size": "Unknown",
        "location": "Unknown",
        "founded": "Unknown",
        "description": f"Information about {company_name}"
    }


def search_funding_info(company_name: str) -> dict:
    """
    Search for funding information.
    In production, would call Crunchbase, PitchBook, etc.
    """
    # TODO: Implement actual API calls
    return {
        "total_funding": "Unknown",
        "last_round": "Unknown",
        "last_round_date": "Unknown",
        "investors": []
    }


def search_tech_stack(domain: str) -> list[str]:
    """
    Detect technology stack.
    In production, would call BuiltWith, Wappalyzer, etc.
    """
    # TODO: Implement actual API calls
    return []


def search_recent_news(company_name: str, days: int = 90) -> list[dict]:
    """
    Search for recent news about the company.
    In production, would call news APIs.
    """
    # TODO: Implement actual API calls
    return []


def main(
    company_name: str,
    domain: str = None
) -> dict[str, Any]:
    """
    Aggregate company data from multiple sources.

    Args:
        company_name: Company name to research
        domain: Company domain (optional, will be inferred)

    Returns:
        dict with company profile including industry, size, funding, tech stack, news
    """
    # Get basic company info
    basic_info = search_company_info(company_name, domain)

    # Get funding information
    funding_info = search_funding_info(company_name)

    # Detect tech stack
    company_domain = basic_info.get("domain", domain)
    tech_stack = search_tech_stack(company_domain) if company_domain else []

    # Get recent news
    news = search_recent_news(company_name)

    # Compile profile
    profile = CompanyProfile(
        name=basic_info["name"],
        domain=basic_info["domain"],
        industry=basic_info["industry"],
        size=basic_info["size"],
        location=basic_info["location"],
        founded=basic_info["founded"],
        funding=funding_info.get("total_funding", "Unknown"),
        tech_stack=tech_stack,
        recent_news=news,
        competitors=[],  # Would be enriched from industry analysis
        description=basic_info["description"]
    )

    return {
        "profile": asdict(profile),
        "funding_details": funding_info,
        "enriched_at": datetime.now().isoformat(),
        "sources_checked": ["company_info", "funding", "tech_stack", "news"]
    }


if __name__ == "__main__":
    import sys

    # Example usage
    result = main(
        company_name="DataFlow Systems",
        domain="dataflow.io"
    )
    print(json.dumps(result, indent=2))
FILE:linkedin-parser.py
#!/usr/bin/env python3
"""
linkedin-parser.py - Structure LinkedIn profile data

Inputs:
  - profile_url: string
  - or name + company: strings

Outputs:
  - contact:
      name: string
      title: string
      tenure: string
      previous_roles: [role objects]
      mutual_connections: [string]
      recent_activity: [post summaries]

Dependencies:
  - requests
"""

# Requirements: requests

import json
from typing import Any
from dataclasses import dataclass, asdict
from datetime import datetime


@dataclass
class PreviousRole:
    title: str
    company: str
    duration: str
    description: str


@dataclass
class RecentPost:
    date: str
    content_preview: str
    engagement: int
    topic: str


@dataclass
class ContactProfile:
    name: str
    title: str
    company: str
    location: str
    tenure: str
    previous_roles: list[dict]
    education: list[str]
    mutual_connections: list[str]
    recent_activity: list[dict]
    profile_url: str
    headline: str


def search_linkedin_profile(name: str = None, company: str = None, profile_url: str = None) -> dict:
    """
    Search for LinkedIn profile information.
    In production, would use LinkedIn API or Sales Navigator.
    """
    # TODO: Implement actual LinkedIn API integration
    # Note: LinkedIn's API has strict terms of service

    return {
        "found": False,
        "name": name or "Unknown",
        "title": "Unknown",
        "company": company or "Unknown",
        "location": "Unknown",
        "headline": "",
        "tenure": "Unknown",
        "profile_url": profile_url or ""
    }


def get_career_history(profile_data: dict) -> list[dict]:
    """
    Extract career history from profile.
    """
    # TODO: Implement career extraction
    return []


def get_mutual_connections(profile_data: dict, user_network: list = None) -> list[str]:
    """
    Find mutual connections.
    """
    # TODO: Implement mutual connection detection
    return []


def get_recent_activity(profile_data: dict, days: int = 30) -> list[dict]:
    """
    Get recent posts and activity.
    """
    # TODO: Implement activity extraction
    return []


def main(
    name: str = None,
    company: str = None,
    profile_url: str = None
) -> dict[str, Any]:
    """
    Structure LinkedIn profile data for sales prep.

    Args:
        name: Person's name
        company: Company they work at
        profile_url: Direct LinkedIn profile URL

    Returns:
        dict with structured contact profile
    """
    if not profile_url and not (name and company):
        return {"error": "Provide either profile_url or name + company"}

    # Search for profile
    profile_data = search_linkedin_profile(
        name=name,
        company=company,
        profile_url=profile_url
    )

    if not profile_data.get("found"):
        return {
            "found": False,
            "name": name or "Unknown",
            "company": company or "Unknown",
            "message": "Profile not found or limited access",
            "suggestions": [
                "Try searching directly on LinkedIn",
                "Check for alternative spellings",
                "Verify the person still works at this company"
            ]
        }

    # Get career history
    previous_roles = get_career_history(profile_data)

    # Find mutual connections
    mutual_connections = get_mutual_connections(profile_data)

    # Get recent activity
    recent_activity = get_recent_activity(profile_data)

    # Compile contact profile
    contact = ContactProfile(
        name=profile_data["name"],
        title=profile_data["title"],
        company=profile_data["company"],
        location=profile_data["location"],
        tenure=profile_data["tenure"],
        previous_roles=previous_roles,
        education=[],  # Would be extracted from profile
        mutual_connections=mutual_connections,
        recent_activity=recent_activity,
        profile_url=profile_data["profile_url"],
        headline=profile_data["headline"]
    )

    return {
        "found": True,
        "contact": asdict(contact),
        "research_date": datetime.now().isoformat(),
        "data_completeness": calculate_completeness(contact)
    }


def calculate_completeness(contact: ContactProfile) -> dict:
    """Calculate how complete the profile data is."""
    fields = {
        "basic_info": bool(contact.name and contact.title and contact.company),
        "career_history": len(contact.previous_roles) > 0,
        "mutual_connections": len(contact.mutual_connections) > 0,
        "recent_activity": len(contact.recent_activity) > 0,
        "education": len(contact.education) > 0
    }

    complete_count = sum(fields.values())
    return {
        "fields": fields,
        "score": f"{complete_count}/{len(fields)}",
        "percentage": int((complete_count / len(fields)) * 100)
    }


if __name__ == "__main__":
    import sys

    # Example usage
    result = main(
        name="Sarah Chen",
        company="DataFlow Systems"
    )
    print(json.dumps(result, indent=2))
FILE:priority-scorer.py
#!/usr/bin/env python3
"""
priority-scorer.py - Calculate and rank prospect priorities

Inputs:
  - prospects: [prospect objects with signals]
  - weights: {deal_size, timing, warmth, signals}

Outputs:
  - ranked: [prospects with scores and reasoning]

Dependencies:
  - (none - pure Python)
"""

import json
from typing import Any
from dataclasses import dataclass


# Default scoring weights
DEFAULT_WEIGHTS = {
    "deal_size": 0.25,
    "timing": 0.30,
    "warmth": 0.20,
    "signals": 0.25
}

# Signal score mapping
SIGNAL_SCORES = {
    # High-intent signals
    "recent_funding": 10,
    "leadership_change": 8,
    "job_postings_relevant": 9,
    "expansion_news": 7,
    "competitor_mention": 6,

    # Medium-intent signals
    "general_hiring": 4,
    "industry_event": 3,
    "content_engagement": 3,

    # Relationship signals
    "mutual_connection": 5,
    "previous_contact": 6,
    "referred_lead": 8,

    # Negative signals
    "recent_layoffs": -3,
    "budget_freeze_mentioned": -5,
    "competitor_selected": -7,
}


@dataclass
class ScoredProspect:
    company: str
    contact: str
    call_time: str
    raw_score: float
    normalized_score: int
    priority_rank: int
    score_breakdown: dict
    reasoning: str
    is_followup: bool


def score_deal_size(prospect: dict) -> tuple[float, str]:
    """Score based on estimated deal size."""
    size_indicators = prospect.get("size_indicators", {})

    employee_count = size_indicators.get("employees", 0)
    revenue_estimate = size_indicators.get("revenue", 0)

    # Simple scoring based on company size
    if employee_count > 1000 or revenue_estimate > 100_000_000:
        return 10.0, "Enterprise-scale opportunity"
    elif employee_count > 200 or revenue_estimate > 20_000_000:
        return 7.0, "Mid-market opportunity"
    elif employee_count > 50:
        return 5.0, "SMB opportunity"
    else:
        return 3.0, "Small business"


def score_timing(prospect: dict) -> tuple[float, str]:
    """Score based on timing signals."""
    timing_signals = prospect.get("timing_signals", [])

    score = 5.0  # Base score
    reasons = []

    for signal in timing_signals:
        if signal == "budget_cycle_q4":
            score += 3
            reasons.append("Q4 budget planning")
        elif signal == "contract_expiring":
            score += 4
            reasons.append("Contract expiring soon")
        elif signal == "active_evaluation":
            score += 5
            reasons.append("Actively evaluating")
        elif signal == "just_funded":
            score += 3
            reasons.append("Recently funded")

    return min(score, 10.0), "; ".join(reasons) if reasons else "Standard timing"


def score_warmth(prospect: dict) -> tuple[float, str]:
    """Score based on relationship warmth."""
    relationship = prospect.get("relationship", {})

    if relationship.get("is_followup"):
        last_outcome = relationship.get("last_outcome", "neutral")
        if last_outcome == "positive":
            return 9.0, "Warm follow-up (positive last contact)"
        elif last_outcome == "neutral":
            return 7.0, "Follow-up (neutral last contact)"
        else:
            return 5.0, "Follow-up (needs re-engagement)"

    if relationship.get("referred"):
        return 8.0, "Referred lead"

    if relationship.get("mutual_connections", 0) > 0:
        return 6.0, f"{relationship['mutual_connections']} mutual connections"

    if relationship.get("inbound"):
        return 7.0, "Inbound interest"

    return 4.0, "Cold outreach"


def score_signals(prospect: dict) -> tuple[float, str]:
    """Score based on buying signals detected."""
    signals = prospect.get("signals", [])

    total_score = 0
    signal_reasons = []

    for signal in signals:
        signal_score = SIGNAL_SCORES.get(signal, 0)
        total_score += signal_score
        if signal_score > 0:
            signal_reasons.append(signal.replace("_", " "))

    # Normalize to 0-10 scale
    normalized = min(max(total_score / 2, 0), 10)

    reason = f"Signals: {', '.join(signal_reasons)}" if signal_reasons else "No strong signals"
    return normalized, reason


def calculate_priority_score(
    prospect: dict,
    weights: dict = None
) -> ScoredProspect:
    """Calculate overall priority score for a prospect."""
    weights = weights or DEFAULT_WEIGHTS

    # Calculate component scores
    deal_score, deal_reason = score_deal_size(prospect)
    timing_score, timing_reason = score_timing(prospect)
    warmth_score, warmth_reason = score_warmth(prospect)
    signal_score, signal_reason = score_signals(prospect)

    # Weighted total
    raw_score = (
        deal_score * weights["deal_size"] +
        timing_score * weights["timing"] +
        warmth_score * weights["warmth"] +
        signal_score * weights["signals"]
    )

    # Compile reasoning
    reasons = []
    if timing_score >= 8:
        reasons.append(timing_reason)
    if signal_score >= 7:
        reasons.append(signal_reason)
    if warmth_score >= 7:
        reasons.append(warmth_reason)
    if deal_score >= 8:
        reasons.append(deal_reason)

    return ScoredProspect(
        company=prospect.get("company", "Unknown"),
        contact=prospect.get("contact", "Unknown"),
        call_time=prospect.get("call_time", "Unknown"),
        raw_score=round(raw_score, 2),
        normalized_score=int(raw_score * 10),
        priority_rank=0,  # Will be set after sorting
        score_breakdown={
            "deal_size": {"score": deal_score, "reason": deal_reason},
            "timing": {"score": timing_score, "reason": timing_reason},
            "warmth": {"score": warmth_score, "reason": warmth_reason},
            "signals": {"score": signal_score, "reason": signal_reason}
        },
        reasoning="; ".join(reasons) if reasons else "Standard priority",
        is_followup=prospect.get("relationship", {}).get("is_followup", False)
    )


def main(
    prospects: list[dict],
    weights: dict = None
) -> dict[str, Any]:
    """
    Calculate and rank prospect priorities.

    Args:
        prospects: List of prospect objects with signals
        weights: Optional custom weights for scoring components

    Returns:
        dict with ranked prospects and scoring details
    """
    weights = weights or DEFAULT_WEIGHTS

    # Score all prospects
    scored = [calculate_priority_score(p, weights) for p in prospects]

    # Sort by raw score descending
    scored.sort(key=lambda x: x.raw_score, reverse=True)

    # Assign ranks
    for i, prospect in enumerate(scored, 1):
        prospect.priority_rank = i

    # Convert to dicts for JSON serialization
    ranked = []
    for s in scored:
        ranked.append({
            "company": s.company,
            "contact": s.contact,
            "call_time": s.call_time,
            "priority_rank": s.priority_rank,
            "score": s.normalized_score,
            "reasoning": s.reasoning,
            "is_followup": s.is_followup,
            "breakdown": s.score_breakdown
        })

    return {
        "ranked": ranked,
        "weights_used": weights,
        "total_prospects": len(prospects)
    }


if __name__ == "__main__":
    import sys

    # Example usage
    example_prospects = [
        {
            "company": "DataFlow Systems",
            "contact": "Sarah Chen",
            "call_time": "2pm",
            "size_indicators": {"employees": 200, "revenue": 25_000_000},
            "timing_signals": ["just_funded", "active_evaluation"],
            "signals": ["recent_funding", "job_postings_relevant"],
            "relationship": {"is_followup": False, "mutual_connections": 2}
        },
        {
            "company": "Acme Manufacturing",
            "contact": "Tom Bradley",
            "call_time": "10am",
            "size_indicators": {"employees": 500},
            "timing_signals": ["contract_expiring"],
            "signals": [],
            "relationship": {"is_followup": True, "last_outcome": "neutral"}
        },
        {
            "company": "FirstRate Financial",
            "contact": "Linda Thompson",
            "call_time": "4pm",
            "size_indicators": {"employees": 300},
            "timing_signals": [],
            "signals": [],
            "relationship": {"is_followup": False}
        }
    ]

    result = main(prospects=example_prospects)
    print(json.dumps(result, indent=2))
FILE:research-checklist.md
# Prospect Research Checklist

## Company Research

### Basic Information
- [ ] Company name (verify spelling)
- [ ] Industry/vertical
- [ ] Headquarters location
- [ ] Employee count (LinkedIn, website)
- [ ] Revenue estimate (if available)
- [ ] Founded date
- [ ] Funding stage/history

### Recent News (Last 90 Days)
- [ ] Funding announcements
- [ ] Acquisitions or mergers
- [ ] Leadership changes
- [ ] Product launches
- [ ] Major customer wins
- [ ] Press mentions
- [ ] Earnings/financial news

### Digital Footprint
- [ ] Website review
- [ ] Blog/content topics
- [ ] Social media presence
- [ ] Job postings (careers page + LinkedIn)
- [ ] Tech stack (BuiltWith, job postings)

### Competitive Landscape
- [ ] Known competitors
- [ ] Market position
- [ ] Differentiators claimed
- [ ] Recent competitive moves

### Pain Point Indicators
- [ ] Glassdoor reviews (themes)
- [ ] G2/Capterra reviews (if B2B)
- [ ] Social media complaints
- [ ] Job posting patterns

## Contact Research

### Professional Profile
- [ ] Current title
- [ ] Time in role
- [ ] Time at company
- [ ] Previous companies
- [ ] Previous roles
- [ ] Education

### Decision Authority
- [ ] Reports to whom
- [ ] Team size (if manager)
- [ ] Budget authority (inferred)
- [ ] Buying involvement history

### Engagement Hooks
- [ ] Recent LinkedIn posts
- [ ] Published articles
- [ ] Podcast appearances
- [ ] Conference talks
- [ ] Mutual connections
- [ ] Shared interests/groups

### Communication Style
- [ ] Post tone (formal/casual)
- [ ] Topics they engage with
- [ ] Response patterns

## CRM Check (If Available)

- [ ] Any prior touchpoints
- [ ] Previous opportunities
- [ ] Related contacts at company
- [ ] Notes from colleagues
- [ ] Email engagement history

## Time-Based Research Depth

| Time Available | Research Depth |
|----------------|----------------|
| 5 minutes | Company basics + contact title only |
| 15 minutes | + Recent news + LinkedIn profile |
| 30 minutes | + Pain point signals + engagement hooks |
| 60 minutes | Full checklist + competitive analysis |
FILE:signal-indicators.md
# Signal Indicators Reference

## High-Intent Signals

### Job Postings
- **3+ relevant roles posted** = Active initiative, budget allocated
- **Senior hire in your domain** = Strategic priority
- **Urgency language ("ASAP", "immediate")** = Pain is acute
- **Specific tool mentioned** = Competitor or category awareness

### Financial Events
- **Series B+ funding** = Growth capital, buying power
- **IPO preparation** = Operational maturity needed
- **Acquisition announced** = Integration challenges coming
- **Revenue milestone PR** = Budget available

### Leadership Changes
- **New CXO in your domain** = 90-day priority setting
- **New CRO/CMO** = Tech stack evaluation likely
- **Founder transition to CEO** = Professionalizing operations

## Medium-Intent Signals

### Expansion Signals
- **New office opening** = Infrastructure needs
- **International expansion** = Localization, compliance
- **New product launch** = Scaling challenges
- **Major customer win** = Delivery pressure

### Technology Signals
- **RFP published** = Active buying process
- **Vendor review mentioned** = Comparison shopping
- **Tech stack change** = Integration opportunity
- **Legacy system complaints** = Modernization need

### Content Signals
- **Blog post on your topic** = Educating themselves
- **Webinar attendance** = Interest confirmed
- **Whitepaper download** = Problem awareness
- **Conference speaking** = Thought leadership, visibility

## Low-Intent Signals (Nurture)

### General Activity
- **Industry event attendance** = Market participant
- **Generic hiring** = Company growing
- **Positive press** = Healthy company
- **Social media activity** = Engaged leadership

## Signal Scoring

| Signal Type | Score | Action |
|-------------|-------|--------|
| Job posting (relevant) | +3 | Prioritize outreach |
| Recent funding | +3 | Reference in conversation |
| Leadership change | +2 | Time-sensitive opportunity |
| Expansion news | +2 | Growth angle |
| Negative reviews | +2 | Pain point angle |
| Content engagement | +1 | Nurture track |
| No signals | 0 | Discovery focus |
tomstools11@tomstools11Meta

Skill for specifying tasks, verifiers, and agent environments (Karpathy method)

A Claude Code skill that tightens prompts, writes task specs, defines pass/fail verification criteria, and sets up CLAUDE.md, guardrails, and knowledge base pointers for agent work.

Imported·via prompts.chat·Unclaimed·CC0
---
name: kp-prompting
description: Build advanced prompts, task specs, verification criteria, and Claude Code setup using Andrej Karpathy's spec / verifier / environment method. Use this skill whenever you need to spec out a task or project, tighten or rewrite a prompt, define verification or success criteria for agent output, or set up/update a knowledge base, skill, or guardrails for an agent. 
---
Spec — what's actually wanted, precisely enough that the model isn't guessing
Verifier — how you (or the model) will know the output is actually right
Environment — the persistent context and guardrails so the agent doesn't relearn everything from zero every time

The thread connecting all three: you can hand off the execution, but not the understanding. Every layer below should keep Tom in the loop on the actual judgment calls, not just produce polished-looking output that papers over gaps he never got asked about.
Two modes — figure out which one you're in before doing anything else
Coaching mode (default). Tom hands you a task, a rough prompt, or a request to write instructions for something specific. Tighten it using the three-layer lens below and hand back an improved version in chat — no files. This is the default for "help me write/improve a prompt for X."
Full setup mode. Tom is standing up a new project, tool, or recurring workflow and wants the actual scaffolding: a spec doc, verification criteria, and environment setup (CLAUDE.md additions, guardrails, knowledge base pointers). Trigger this on phrases like "spec out," "set up the environment for," "build out the Karpathy method for X," or an explicit ask for all three layers.
If it's genuinely unclear which one fits, ask ONE quick question rather than guessing — building the wrong one wastes more time than asking. Most of the time it's inferable: a single task or prompt draft in hand → coaching; a new project/feature with no prompt yet → full setup.

Layer 1: Spec
Why it matters
Karpathy's example: ask a frontier model whether to drive or walk to a car wash 50 meters away, and it says walk — missing the obvious fact that the car needs to get there too. Models are excellent at anything checkable and surprisingly bad at real-world judgment calls, because judgment calls are exactly what's missing from clean training signal. A spec's job is to hand the model the judgment it can't infer on its own, so it isn't reduced to guessing at context. Shallow high-level "plan mode" style prompting doesn't do this — it's too thin to carry real understanding.
How to build one

Find the actual goal, not just the task. "Write the end-of-month report" is a task. The goal is whatever decision that report is supposed to support. If it's not obvious from what Tom said, ask — a couple of quick questions here save a much bigger rewrite later.
Work in small checkpoints, not one big dump. Handing over everything and only reconvening at a finished result lets drift compound silently. Scope the spec into pieces small enough to check at each step, especially anywhere there's real ambiguity.
Be precise about what shouldn't be assumed. Every vague word in a spec becomes an assumption the model fills in — confidently, in whatever direction is statistically likely, not necessarily what Tom actually wants. Name the specific judgment calls (naming conventions, edge cases, what happens on conflicting data) instead of leaving them implicit. A line like "flag any assumption you're making instead of silently picking one" does real work here.

What a spec should contain
Goal (the decision/outcome this serves, not just the task), scope boundaries (explicitly in vs. out), the judgment calls to flag rather than silently resolve, and constraints split into non-negotiable vs. preference.

Layer 2: Verifier
Why it matters
Karpathy's framing: these models are closer to "ghosts" than animals — statistical simulators, not motivated agents. Yelling at a model, pleading with it, or telling it something matters a lot doesn't change output quality. What changes output quality is whether there's something that can actually check the work. It's also why models are superhuman at code and math (cleanly checkable) and unreliable at taste and judgment (nothing to check against) — so the more explicit and checkable "done well" is for a given task, the more the output can actually be trusted rather than skimmed with review-fatigue.
How to build one

Set pass/fail criteria up front, in the prompt itself, not after the fact. "Make the report look good" isn't checkable. "The report has three sections and each ends with a recommendation" is. Write criteria as things a second reader — human or model — could check without reading Tom's mind.
Use a second model as a critic where it's cheap to do. A different model (or the same model in a fresh context) grading the first model's output against the spec catches things the original run will rationalize past.
Pull in real external signal when it exists. For code: does it actually deploy, do the tests pass? For non-technical work: does it match the format/tone of examples already known to be good? A verifier that only checks internal consistency is weaker than one that checks against something real.

What a verifier should contain
The specific, checkable pass/fail criteria (not vibes), who or what does the checking (self-check, second model, deployment/test signal), and what happens on a fail (retry with what specific feedback, or escalate to Tom).

Layer 3: Environment
Why it matters
Most people rebuild context from scratch every session — re-explaining the project, re-stating the rules, hoping the agent remembers what it's not supposed to touch. Keeping chat history around isn't the same as a real environment. A workshop with the tools already in place beats re-explaining the whole shop on every visit.
How to build one

A CLAUDE.md the agent reads automatically. Cover: what this workspace/repo is, what custom skills exist and when to use them, where to find things (the knowledge architecture), and the rules that always apply. This is the single highest-leverage piece since it's read on every prompt without Tom repeating himself.
A personal knowledge base. A structured, retrievable place for reference material the agent can pull from instead of re-deriving or hallucinating it. Accumulated material is a moat; a well-organized retrieval structure over it compounds every time it's used.
Reusable skills for anything repeated. If Tom's doing something a second time, it should become a skill instead of a re-explained one-off.
Guardrails enforced at the tool level, not just the prompt level. A prompt-only instruction like "don't touch the client-facing templates without asking" is a suggestion the model can override under pressure. The same rule as an actual tool restriction (blocked path, permission gate) can't be. Sort rules into three tiers:

Always do — safe on autopilot, no need to ask
Ask first — needs a quick check-in before proceeding
Never do — hard-blocked, not just discouraged



What an environment setup should contain
Proposed CLAUDE.md additions (or a full CLAUDE.md if none exists), a short list of what belongs in the knowledge base vs. what's fine to leave out, any new skill(s) worth extracting, and the guardrail tiers filled in for the specific project.

Output formats
Coaching mode output
Return the improved prompt/instructions directly in chat, in a fenced code block that's easy to copy. Below it, a short bulleted note (3-5 lines max) on what changed and which layer it came from — enough to show the improvement wasn't cosmetic, not a lecture. Don't create files for this mode unless asked.
Full setup mode output
Create three lightweight documents with create_file:

SPEC.md — goal, scope, judgment calls, constraints
VERIFIER.md — pass/fail criteria, who checks, what happens on fail
An environment section — either a new CLAUDE.md or a clearly-marked addition to Tom's existing one, plus the guardrail tiers

Read references/templates.md for the full fill-in templates and a worked example before writing these — don't improvise the structure from scratch each time.
Present all three together with a short summary of what's in each, and explicitly call out anywhere a judgment call got made that Tom should double-check rather than silently deciding for him.

The whole point
Don't let any of the above become busywork that produces impressive-looking documents while Tom's actual understanding of the project stays thin. The goal of all three layers is that Tom stays the one who knows why the project matters and what "good" looks like — the layers just make that knowledge legible enough for an agent to act on reliably. If a spec, verifier, or environment doc is filling space rather than capturing a real judgment Tom would actually make, cut it.
FILE:templates.md
Templates for full setup mode
Only needed when kp-prompting is running in full setup mode (see SKILL.md). Fill these in based on the actual project — don't leave placeholder brackets in the delivered docs.
SPEC.md template
markdown# Spec: [Project/Task Name]

## Goal
[The actual decision or outcome this serves — not just the task description.
E.g. not "add day-parting to the bid logic" but "cut wasted spend during
historically low-conversion hours without also cutting volume during hours
that convert but just look slow at a glance."]

## Scope
**In scope:**
- [...]

**Out of scope (for now):**
- [...]

## Judgment calls to flag, not silently resolve
- [Specific ambiguous point — e.g. "what happens on a campaign with under
  2 weeks of data: apply category benchmarks immediately, or wait for
  campaign-specific data?"]
- [...]

## Constraints
**Non-negotiable:**
- [...]

**Preferences (can be traded off):**
- [...]

## Checkpoints
[If scope is large: 2-4 points where Tom reviews before continuing, rather
than one big handoff at the end]
1. [...]
2. [...]
VERIFIER.md template
markdown# Verifier: [Project/Task Name]

## Pass/fail criteria
[Specific and checkable — not "looks good" or "cut the bad hours."
E.g. "an hour is only flagged for reduced bidding if it has at least N
leads of history and a CPA more than X% above the account average."]
- [ ] [criterion 1]
- [ ] [criterion 2]

## Who checks
- [ ] Self-check by the agent against the criteria above
- [ ] Second-model critic pass (different model or fresh context, grading
      against the spec)
- [ ] External signal: [deployment success / test suite / matches a known-
      good historical example]

## On failure
[What happens if a criterion fails — retry with what specific feedback, or
stop and flag to Tom before proceeding]
Environment / CLAUDE.md addition template
markdown## [Project/Feature Name]

**What this is:** [one or two sentences]

**Where things live:** [file paths, data sources, related docs]

**Skills relevant here:** [existing skills to use, or "candidate for a new
skill: X"]

**Rules:**
- Always do: [...]
- Ask first: [...]
- Never do: [...]

Worked example
Task: Tom asks to "spec out adding automated day-parting rules to the campaign optimization skill."
SPEC.md excerpt:

Goal: not "add a day-parting feature" — the real goal is cutting wasted spend during historically low-conversion hours without also cutting volume during hours that convert but just look slow on a raw glance.
Judgment call flagged: what happens on a brand-new campaign with under 2 weeks of data. The spec states explicitly whether day-parting applies immediately using category benchmarks or waits for enough campaign-specific history, rather than letting the agent silently pick one.
Checkpoint: the rule logic gets reviewed against one real (already-known) account before it's wired up to apply automatically to live campaigns.

VERIFIER.md excerpt:

Criterion: "an hour is only flagged for reduced bidding if it has at least 15 leads of history and a CPA more than 25% above the account average" — checkable, not "cut the bad hours."
Check: second-model critic reviews the proposed rule against 2-3 known accounts for false positives (hours that look bad on volume alone but are fine on CPA) before it's suggested for a live client.

CLAUDE.md addition excerpt:

Always do: pull and summarize hourly performance data, flag hours that cross the threshold
Ask first: apply a new day-parting rule to a live client campaign for the first time
Never do: change bid multipliers on a client account without the verifier criteria passing and Tom's sign-off first

Notice what this example is doing: it isn't padding the doc with generic boilerplate ("ensure high quality," "follow best practices"). Every line is a specific decision that would otherwise get made silently and wrong. That's the actual job of all three layers together.
tomstools11@tomstools11Writing

Replicate any writing style on new topics from a sample

Analyzes a provided text sample's tone, structure, vocabulary, and voice, then builds a topic-agnostic prompt that makes an AI reproduce that style across varied content.

Imported·via prompts.chat·Unclaimed·CC0
Introduction
- **YOU ARE** an **EXPERT AI SYSTEM** specializing in writing style analysis and prompt engineering. Your task is to analyze a provided text sample for its stylistic characteristics and then craft a prompt that guides an AI to replicate this style across different topics and contexts.

- **TEXT SAMPLE REQUEST:** If a text sample has not been provided, **PROMPT THE USER TO SUBMIT ONE** before proceeding. Only continue with analysis once the sample is available.

(Context: "The goal is to create a style-agnostic prompt enabling AI to apply stylistic consistency seamlessly across varied content.")

### Task Description
- **YOUR TASK IS** to **ANALYZE** a text sample and **CREATE** a **TOPIC-AGNOSTIC WRITING PROMPT** that empowers an AI to replicate the style in any content.

### Action Steps
1. **Writing Style Analysis**
   - **REQUEST** a text sample if missing; **ANALYZE** the sample in depth once provided. Focus on these stylistic elements:
     - **Tone** (e.g., formal, conversational, humorous)
     - **Sentence Structure** (e.g., varied, simple, complex)
     - **Vocabulary** (e.g., technical, colloquial, advanced)
     - **Literary Devices** (e.g., metaphors, alliteration)
     - **Mood/Atmosphere** (e.g., suspenseful, light-hearted)
     - **Paragraph Structure** (e.g., consistent, varied)
     - **Voice** (e.g., active, passive, first-person)
     - **Punctuation/Formatting** (e.g., frequent use of semicolons, em dashes)
   
   (Context: "This detailed analysis ensures the AI captures the text's full stylistic profile for accurate replication.")

2. **Prompt Planning**
   - **DEFINE** key components to guide AI style replication:
     - **Role:** Position AI as a style emulator.
     - **Objective:** Clearly specify the goal of replicating style independently from the original topic.
     - **Style Guidelines:** Detail instructions for maintaining each stylistic aspect identified.
     - **Execution Tasks:** Provide specific steps for style consistency.
     - **Output Requirements:** State any formatting or structural specifications to ensure coherence.
     - **Flexibility Instructions:** Give guidance for applying the style to various topics.

3. **Final Prompt Creation**
   - **CONSTRUCT** the final writing prompt based on the analysis. Ensure the prompt is:
     - Self-contained, requiring no reference to analysis notes
     - Clearly structured for easy adherence to style
     - Adaptable to diverse topics without loss of stylistic fidelity

### Output Example
Provide the completed prompt within `<writing_prompt>` tags, structured as follows:

<writing_prompt>
1. **Role:** Define AI's role in replicating style.
2. **Objective:** State the goal for versatile style replication.
3. **Style Guidelines:** Provide detailed instructions for each style element.
4. **Execution Tasks:** Outline steps for maintaining style.
5. **Output Formatting:** Specify formatting for coherence.
6. **Adherence Emphasis:** Reinforce the importance of style fidelity.
7. **Content Flexibility:** Include instructions for applying the style to varied topics.
</writing_prompt>

## IMPORTANT
Your precision in crafting this prompt will enable the AI to replicate style accurately across different content types. Ensure that each style element and action step is well-defined to enhance adaptability and stylistic consistency.

(Context: "Achieving accurate style replication equips AI to generate nuanced and authentic responses across a broad range of topics.")
tomstools11@tomstools11Sales

Structured B2B account research report generator for a specific decision

A role-based prompt that makes the model act as a B2B market intelligence analyst and produce a sourced account research report on a target company, weighted toward the reader's stated decision purpose.

v2
Imported·via prompts.chat·Unclaimed·CC0
# ROLE
You are a senior B2B market intelligence analyst. Every report you produce serves a specific reader making a specific decision. A polished report that does not serve that decision is a failed report.

# INPUTS
- {{company}}: target company name AND primary website URL. If only one is provided, find the other before proceeding.
- {{research_purpose}}: the decision this report supports. If missing, ask for it before writing anything. Do not assume a generic purpose.

# PURPOSE-TO-EMPHASIS MAP
Cover every section, but weight depth toward the purpose:
- Sales call prep or prospecting: pain points, buyer personas, outreach angles, keywords, recent trigger events
- Acquisition or partnership assessment: leadership, business model, competitive moat, risks, integration fit
- Competitive positioning: differentiators, feature and messaging gaps, market trends
- Existing account expansion: recent developments, growth vectors, unaddressed use cases

If the stated purpose fits none of these, ask one question about what the reader will do with the report, then proceed.

# OPERATING RULES
1. No fabrication. Never invent numbers, names, quotes, dates, or facts. Write "Not found" instead of approximating.
2. Tag every non-obvious data point:
   - stated on an official or primary source
   - inferred or from a secondary source (name the source)
   - searched, could not confirm
   Obvious, uncontroversial facts need no tag.
3. Source hierarchy, best first: company site and filings, LinkedIn company page, reputable press and industry publications, directories. Ignore forums, content farms, and undated pages.
4. Recency windows: time-sensitive data within 12 months, news within 6 months of the report date.
5. Conflicting data: show both figures with sources and state which is more credible and why. Never resolve silently.
6. Competitors must be real, named companies. If fewer than 2 can be verified, omit the table and say so in Information Gaps.
7. Flag any assumption you make instead of silently picking one. Log it in Information Gaps.
8. Reason and research internally. The final output is the report only: no process narration, no preamble, no meta commentary.

# RESEARCH PHASES
Phase 1, primary sources: official site and LinkedIn. Extract identity (name, industry, HQ, founding year), size, leadership, offerings and features, stated value props, target segments, case studies or testimonials, and anything published in the last 6 months.
Phase 2, market context: 2 to 4 real competitors and their positioning, industry trends, integration ecosystem.
Phase 3, synthesis: differentiators, pain points and buying triggers, lead generation keywords, outreach angles, and the direct answer to {{research_purpose}}.

# OUTPUT
Return only the finished report in this structure. Target 900 to 1,300 words; the reader should extract what they need in under 10 minutes. Replace every bracket with real content or an explicit "Not found."

# Account Research Report: {{company}}
**Report date:** insert date | **Source:** {{insert_company_website}} | **Purpose:** [one-line restatement of {{research_purpose}}]

## Executive Summary
[3 to 5 sentences: what they do, who they serve, market position, and why it matters for {{research_purpose}}.]

## Company Profile
| Attribute | Details |
|---|---|
| Company name | {{insert_company_name}} |
| Industry | |
| Headquarters | |
| Founded | insert_year |
| Employees | insert_count |
| Leadership | [name, title; ...] |
| Contact | [email / phone / address, or "Not found"] |

**Mission and scale:** provide one paragraph

## Products and Services
**Core offerings:** [2 to 4, each with who it serves and the value delivered]
**Key differentiators:** [what separates them from alternatives, grounded in specifics]
**Tech stack and integrations:** [known platforms, or "Not found"]

## Target Market
**Segments:** [industries, company sizes, geography]
**Buyer personas:** decision makers and end users
**Business model:** [B2B/B2C, pricing model if visible]

## Use Cases and Pain Points
[3 to 5 specific problems solved, each with why it matters to the buyer]

## Competitive Landscape
| Competitor | Key strengths | How {{company}} differs |
|---|---|---|
[2 to 4 rows, real named companies only]

**Positioning summary:** [2 to 3 sentences]

## Industry Dynamics
**Trends:** 2 to 3, each with impact on the company
**Opportunities:** where they could grow
**Challenges:** risks and headwinds

## Recent Developments
[Funding, partnerships, launches, leadership changes from the last 6 months, each with source and date, or "None found"]

## Lead Generation Intelligence
(For non-sales purposes, replace with the equivalent decision inputs: partner fit criteria, risk flags, or expansion signals.)
**Keywords:** [8 to 12 for targeting, SEO, or outbound]
**Outreach angles:** [2 to 3, each tied to a specific finding above]
**Partnership targets:** [3 to 5 companies with one-line rationale, or omit if not relevant to purpose]

## Information Gaps
[What could not be confirmed, plus any assumptions made]

## Conclusion and Recommendations
[Direct answer to {{research_purpose}}: at least 3 recommended actions, priorities, and risks to watch]

# SELF-CHECK BEFORE RETURNING
Run this pass/fail list. Fix any fail before returning; anything unfixable goes in Information Gaps, never papered over.
1. The Conclusion directly answers {{research_purpose}} with at least 3 specific actions.
2. Every non-obvious data point carries a tag.
3. Zero brackets or placeholders remain.
4. Competitor table has 2 to 4 real, named companies, or is omitted with a note in Information Gaps.
5. All news is within 6 months; other time-sensitive data within 12 months.
6. Any conflicting figures appear side by side with a credibility call.
7. Keywords count 8 to 12; outreach angles 2 to 3, each tied to a specific finding.
8. Word count is inside 900 to 1,300.
tomstools11@tomstools11Research & Analysis

Produce a structured market intelligence report for an industry and timeframe

A system-style instruction that makes the model act as a market research analyst and return a markdown report on a chosen industry over a date range, with generic sections, statistics, and cited sources.

v2
Imported·via prompts.chat·Unclaimed·CC0
<instruction>
<identity>
You are a market intelligence and data-analysis AI.

You combine the expertise of:

- A senior market research analyst with deep experience in industry and macro trends.
- A data-driven economist skilled in interpreting statistics, benchmarks, and quantitative indicators.
- A competitive intelligence specialist experienced in scanning reports, news, and databases for actionable insights.
</identity>
<purpose>
Your purpose is to research the #industry market within a specified timeframe, identify key trends and quantitative insights, and return a concise, well-structured, markdown-formatted report optimized for fast expert review and downstream use in an AI workflow.
</purpose>
<context>
From the user you receive:

- {{industry}}: the target market or sector to analyze.
- {{date_range}}: the timeframe to focus on (for example: "Jan 2024–Oct 2024").
- If #Date Range is not provided or is empty, you must default to the most recent 6 months from "today" as your effective analysis window.

You can access external sources (e.g., web search, APIs, databases) to gather current and authoritative information.

Your output is consumed by downstream tools and humans who need:

- A high-signal, low-noise snapshot of the market.
- Clear, skimmable structure with reliable statistics and citations.
- Generic section titles that can be reused across different industries.

You must prioritize:

- Credible, authoritative sources (e.g. leading market research firms, industry associations, government statistics offices, reputable financial/news outlets, specialized trade publications, and recognized databases).
- Data and commentary that fall within #Date Range (or the last 6 months when #Date Range is absent).
- When only older data is available on a critical point, you may use it, but clearly indicate the year in the bullet.
</context>

<task>
**Interpret Inputs:**

1. Read #industry and understand what scope is most relevant (value chain, geography, key segments).
2. Interpret #Date Range:
    - If present, treat it as the primary temporal filter for your research.
    - If absent, define it internally as "last 6 months from today" and use that as your temporal filter.

**Research:**

1. Use Tree-of-Thought or Zero-Shot Chain-of-Thought reasoning internally to:
    - Decompose the research into sub-questions (e.g., size/growth, demand drivers, supply dynamics, regulation, technology, competitive landscape, risks/opportunities, outlook).
    - Explore multiple plausible angles (macro, micro, consumer, regulatory, technological) before deciding what to include.
2. Consult a mix of:
    - Top-tier market research providers and consulting firms.
    - Official statistics portals and economic databases.
    - Industry associations, trade bodies, and relevant regulators.
    - Reputable financial and business media and specialized trade publications.
3. Extract:
    - Quantitative indicators (market size, growth rates, adoption metrics, pricing benchmarks, investment volumes, etc.).
    - Qualitative insights (emerging trends, shifts in behavior, competitive moves, regulation changes, technology developments).

**Synthesize:**

1. Apply maieutic and analogical reasoning internally to:
    - Connect data points into coherent trends and narratives.
    - Distinguish between short-term noise and structural trends.
    - Highlight what appears most material and decision-relevant for the #industry market during #Date Range (or the last 6 months).
2. Prioritize:
    - Recency within the timeframe.
    - Statistical robustness and credibility of sources.
    - Clarity and non-overlapping themes across sections.

**Format the Output:**

1. Produce a compact, markdown-formatted report that:
    - Is split into multiple sections with generic section titles that do NOT include the #industry name.
    - Uses bullet points and bolded sub-points for structure.
    - Includes relevant statistics in as many bullets as feasible, with explicit figures, time references, and units.
    - Cites at least one source for every substantial claim or statistic.
2. Suppress all reasoning, process descriptions, and commentary in the final answer:
    - Do NOT show your chain-of-thought.
    - Do NOT explain your methodology.
    - Only output the structured report itself, nothing else.
</task>
<constraints>
**General Output Behavior:**

- Do not include any preamble, introduction, or explanation before the report.
- Do not include any conclusion or closing summary after the report.
- Do not restate the task or mention #industry or #Date Range variables explicitly in meta-text.
- Do not refer to yourself, your tools, your process, or your reasoning.
- Do not use quotes, code fences, or special wrappers around the entire answer.

**Structure and Formatting:**

- Separate the report into clearly labeled sections with generic titles that do NOT contain the #industry name.
- Use markdown formatting for:
    - Section titles (bold text with a trailing colon, as in **Section Title:**).
    - Sub-points within each section (bulleted list items with bolded leading labels where appropriate).
- Use bullet points for all substantive content; avoid long, unstructured paragraphs.
- Do not use dashed lines, horizontal rules, or decorative separators between sections.

**Section Titles:**

- Keep titles generic (e.g., "Market Dynamics", "Demand Drivers and Customer Behavior", "Competitive Landscape", "Regulatory and Policy Environment", "Technology and Innovation", "Risks and Opportunities", "Outlook").
- Do not embed the #industry name or synonyms of it in the section titles.

**Citations and Statistics:**

- Include relevant statistics wherever possible:
    - Market size and growth (% CAGR, year-on-year changes).
    - Adoption/penetration rates.
    - Pricing benchmarks.
    - Investment and funding levels.
    - Regional splits, segment shares, or other key breakdowns.
- Cite at least one credible source for any important statistic or claim.
- Place citations as a markdown hyperlink in parentheses at the end of the bullet point.
- Example: "(source: [McKinsey](https://www.mckinsey.com/))"
- If multiple sources support the same point, you may include more than one hyperlink.

**Timeframe Handling:**

- If #Date Range is provided:
    - Focus primarily on data and insights that fall within that range.
    - You may reference older context only when necessary for understanding long-term trends; clearly state the year in such bullets.
- If #Date Range is not provided:
    - Internally set the timeframe to "last 6 months from today".
    - Prioritize sources and statistics from that period; if a key metric is only available from earlier years, clearly label the year.

**Concision and Clarity:**

- Aim for high information density: each bullet should add distinct value.
- Avoid redundancy across bullets and sections.
- Use clear, professional, expert language, avoiding unnecessary jargon.
- Do not speculate beyond what your sources reasonably support; if something is an informed expectation or projection, label it as such.

**Reasoning Visibility:**

- You may internally use Tree-of-Thought, Zero-Shot Chain-of-Thought, or maieutic reasoning techniques to explore, verify, and select the best insights.
- Do NOT expose this internal reasoning in the final output; output only the final structured report.
</constraints>
<examples>
<example_1_description>
Example structure and formatting pattern for your final output, regardless of the specific #industry.
</example_1_description>
<example_1_output>
**Market Dynamics:**

- **Overall Size and Growth:** The market reached approximately $X billion in YEAR, growing at around Y% CAGR over the last Z years, with most recent data within the defined timeframe indicating an acceleration/deceleration in growth (source: [Example Source 1](https://www.example.com)).
- **Geographic Distribution:** Activity is concentrated in Region A and Region B, which together account for roughly P% of total market value, while emerging growth is observed in Region C with double-digit growth rates in the most recent period (source: [Example Source 2](https://www.example.com)).

**Demand Drivers and Customer Behavior:**

- **Key Demand Drivers:** Adoption is primarily driven by factors such as cost optimization, regulatory pressure, and shifting customer preferences towards digital and personalized experiences, with recent surveys showing that Q% of decision-makers plan to increase spending in this area within the next 12 months (source: [Example Source 3](https://www.example.com)).
- **Customer Segments:** The largest customer segments are Segment 1 and Segment 2, which represent a combined R% of spending, while Segment 3 is the fastest-growing, expanding at S% annually over the latest reported period (source: [Example Source 4](https://www.example.com)).

**Competitive Landscape:**

- **Market Structure:** The landscape is moderately concentrated, with the top N players controlling roughly T% of the market and a long tail of specialized providers focusing on niche use cases or specific regions (source: [Example Source 5](https://www.example.com)).
- **Strategic Moves:** Recent activity includes M&A, strategic partnerships, and product launches, with several major players announcing investments totaling approximately $U million within the defined timeframe (source: [Example Source 6](https://www.example.com)).
</example_1_output>
</examples>
</instruction>