Sampling Plan Draft

Draft a sampling plan with visible calculations, or check the sizing and selection of an existing one.

Free, with limits. These skills produce AI-assisted drafts and reviews. A person who knows the program should check every output against the source documents before it is shared. The examples are fictional and written by hand; they are not real client work or test output.

Claude Code is the checked route. One skill was also checked by browser upload on a paid plan. Anthropic's help page says Free plans can use uploaded skills too, once code execution is turned on; we did not test a Free account. No M&E Studio signup or API key is needed; your Claude account and its limits are separate.

What You Will Get

  • Editable Markdown artifact

What to Provide

  • What you need to learn and the intended population
  • What is known about the sampling frame
  • Subgroups, precision needs, timing and resources, if known

Supply readable files or text. Missing evidence stays explicit; a draft or recommendation is not an approved commitment.

Start the Job

In Code use /me-workspace:sampling-plan-draft with explicit files. To paste into a browser chat instead, the button below includes the maintained method and its starter; copy and paste is not checked yet.

Read the Starter

Start: Draft a sampling plan

Use this to turn a sampling purpose, population and frame description into a source-linked design draft. It does not select respondents or establish causal attribution.

Minimum inputs: What you need to learn; the indicator/question and intended population/unit; what is known about the sampling frame. Add reporting subgroups, precision or power requirements, timing, mode, resources and permissions if available. Unknowns can remain explicit.

Code starter:

Use /me-workspace:sampling-plan-draft on [explicit files or scoped folder]. Draft sampling-plan.md using the supplied purpose, population, frame and constraints. Separate source facts from proposed choices. Show applicable sizing arithmetic or a calculation specification with missing parameters. Do not invent precision, power, response rates or approvals. Save and inspect the actual Markdown file.

Browser: Upload readable attachments and the individual skill package, or paste SKILL.md with the same request using attachment names. Do not paste machine paths. If file creation is unavailable, request editable Markdown and record that no download was produced. The Code route was checked; browser upload was checked on a paid plan for one skill only.

Open examples/input.md for a fictional ordinary case, examples/incomplete.md for conflicting constraints and examples/unsuitable.md for a boundary case. examples/output.md is a manually authored illustration for the ordinary case, not observed model output. An editable outline is in template.md.

Before using a draft, check population/frame coverage, calculation assumptions, subgroup precision, selection feasibility and decisions needing approval. Save original sources, actual draft and a short handover before pausing. The free files do not supply a Claude account or guarantee completion within provider limits.

Try a Fictional Example

These examples are fictional and written by hand. The output shows the structure to expect. It is not a test result and must not be used as source evidence.

Fictional Input

Fictional input: Orchard Training

Source: planning note v1, 2026-09-04. This is fictional.

The team wants a descriptive estimate of the proportion of the 1,000 eligible adult trainees in the January-June 2026 cohort who currently use a taught practice. Each trainee is one unit. The supplied frame is stated to have one current record and phone contact for every eligible trainee; the team still needs to verify that claim before selection. No subgroup estimates or causal impact claims are requested.

The study lead specifies a two-sided 95% normal-approximation planning confidence level (z=1.96), absolute margin of five percentage points and p=0.5 as a planning parameter, not a prior measured prevalence. Single-stage simple random sampling without replacement is intended. The lead requests finite population correction for N=1,000 and planning invitation inflation for an expected 80% eligible response rate. These parameters are planning requirements, not observations or guaranteed achieved precision.

The capacity envelope is 360 distinct invitations. Contact policy, staff assignments, contact attempts, dates, consent, data access and pilot criteria have not been supplied. The user requests a draft and transparent arithmetic, not actual selection or an invented implementation budget.

Download Fictional Input

Illustrative Output

Illustrative sampling draft: Orchard Training

Fictional, manually authored illustration of examples/input.md, not a Claude execution result. Draft only. No respondent selected and no consent or field permission confirmed.

Scope and sources

Planning note v1, 2026-09-04 supplies a descriptive current-practice proportion for the January-June cohort, N=1,000 eligible adults, individual unit, no domain estimates and no causal claim. Its complete/current phone-frame statement is supplied, not independently verified. Check unique IDs, eligibility, duplicate records and contact coverage before selection.

Proposed approach and arithmetic

Follow the requested single-stage SRS without replacement, conditional on frame verification. The supplied planning parameters are z=1.96, p=0.5, absolute e=0.05 and response fraction r=0.8. p and r are design assumptions, not measured results.

QuantitySubstitutionValue
Infinite-population completions1.96^2 * 0.5 * 0.5 / 0.05^2384.16
Finite-population completions384.16 / (1 + 383.16/1,000)277.740825...
Required completionsceil(277.740825...)278
Invitationsceil(278 / 0.8)348
Invitation envelope360 - 34812 invitations of headroom

348 invitations fit the supplied count envelope. This is not a costed or staffed feasibility finding. Expected response is not a guarantee; achieved precision, nonresponse bias and the chosen confidence method need checking. There is no subgroup precision claim.

Selection, contacts and analysis

Proposed: after permissions/frame checks, freeze the eligible frame and select 348 distinct IDs uniformly without replacement using a documented reproducible generator. Record actual seed, frame hash/version, date and selection code at execution; none exist yet. Do not publish personal identifiers in the report. Contact attempts, spacing and refusal/ineligibility dispositions require an agreed protocol. Do not substitute conveniently available trainees for refusals. Any reserve list must use a predeclared random order with preserved dispositions; more invitations cannot ensure absence of response bias.

Initial inclusion probability would be 348/1,000 and base invitation weight 1,000/348. Final respondent weights and any adjustments require actual dispositions and justified response assumptions; they are not simply evidence that respondents represent everyone. Report completed eligible n, item nonresponse and design-appropriate estimates/uncertainty after collection.

Conditions before fieldwork

Confirm frame coverage/uniqueness, data access and consent; agree contact/withdrawal/retention rules; allocate actual staff and dates; pilot frame contactability and instrument interpretation. Proposed pilot criteria need the study lead's decision. If the frame claim fails, revisit scope and sizing instead of retaining the all-trainee inference. No new targets, costs, roles or approvals are asserted.

Completion and change record

Calculation and invitation count independently checked for this illustration. Required source fields remain visible. This is one unapproved design draft; no previous version or field result is claimed. Handover would include the source note, this draft, pending decisions and the next task: frame/access verification.

Download Illustrative Output

Read the Maintained Method

name: sampling-plan-draft description: Draft an M&E sampling plan, or check an existing one's sizing and selection, from purpose, population, frame and constraints, with transparent calculations and unresolved decisions. Use when a survey or evaluation needs a sample design.

Sampling plan drafting

Purpose and trigger

Use when a practitioner needs a prospective sampling plan for monitoring, a baseline, a survey or an evaluation. The output is an editable Markdown design draft, not a claim that respondents were selected or data collected. For a supplied plan, use the same method to check design consistency without replacing the user's approved choices. This file owns the method; supporting examples illustrate it.

Status: Checked in Claude Code. Anthropic's help page says Free and paid plans can use uploaded skills once code execution is turned on; we checked browser upload on a paid plan only. The files are free; Claude account access and usage limits are separate. No API key or site signup is required by these instructions.

Dates: Never write today's date, the system date, or words such as "passed", "late" or "stale" about a supplied date in the artifact. Supplied dates govern; if a date's status matters, write "status unknown from supplied files".

Minimum input and intake

Supply the decision or study purpose, indicator or question, target population/unit and what is known about the sampling frame. Include precision or comparison requirements, proposed mode, geography/time, required subgroups, resources and access if available. A short description is acceptable; a complete TOR is not mandatory.

  • Browser: upload readable source attachments. Do not request machine paths or search folders. If an attachment cannot be read, ask for accessible text and identify what remains unassessed.
  • Code: use explicit files or the user's scoped folder. List candidate files when discovery is needed. Do not search unrelated folders; already named files need no repeated approval.
  • Record filenames, versions/dates and page/section/table or row references. Show supplied facts, unresolved conflicts, assumptions and proposed design choices separately. Missing in the input does not mean nonexistent or unapproved elsewhere.
  • No identifiable M&E sampling purpose: return a suitability note and stop. With purpose but missing population/frame, produce a bounded design outline and exact decisions needed; do not calculate a representative sample.

Reproducible sequence

  1. Define the claim and population. Name the estimand or qualitative question; eligibility/exclusions, counting and selection units, geography, reference dates and intended inference population. Distinguish enrolled people, households, records and encounters. State whether the job is descriptive estimation, comparison/change detection, causal evaluation or qualitative explanation. Random sampling alone does not identify a causal effect; causal identification and random assignment are different design questions.
  2. Assess the frame. Describe its source/date, unique IDs, coverage, omissions, duplicates, eligibility errors, contactability and access. A larger sample cannot repair coverage bias. A phone list excludes people without listed working phones unless corrected. Offer frame repair or an explicitly narrower population as proposed options, not a silent scope change. Do not expose actual personal identifiers in the plan.
  3. Choose an approach with rationale. Compare a census, simple random, stratified, systematic, cluster/multistage or nonprobability approach as relevant. Known nonzero inclusion probabilities and implementable selection are needed for design-based population inference. Probability sampling can start from area frames; a missing name list is not automatically a reason to use convenience sampling. Systematic selection needs random start, a valid interval/procedure and a periodicity check. Purposive qualitative selection needs explicit inclusion/variation/access logic; do not attach a survey margin of error to it. Census attempts can still have nonresponse and measurement error.
  4. Size only the applicable design. Use the rules below and reproduce inputs, formula, substitutions, rounding, units and source of each parameter. Distinguish completed eligible responses from invitations/contacts. Independently recompute supplied and proposed arithmetic using an available calculator, or step-by-step manual substitution when none is available; state how it was checked and show discrepancies from the original. Do not merely repeat a supplied result. If a calculation cannot actually be verified, label it unchecked and leave the sizing verdict unresolved. Never fabricate a tool run or certified precision. Missing design inputs mean scenarios or a sizing specification, not a confirmed number.
  5. Specify selection and field rules. Explain each selection stage, frame freeze/cleaning, reproducible randomization procedure and seed to be recorded at execution, without claiming it already happened. Define contact attempts/spacing, consent/refusal and ineligibility recording, no pressure to participate, and a predeclared reserve-list procedure if used. Do not replace refusals with whoever is available. Preserve original selection and disposition records. Distinguish invitation inflation, differential response and coverage; extra invitations do not remove response bias.
  6. Check analysis and feasibility. Identify design weights and inclusion probabilities, nonresponse adjustment assumptions, survey-design-aware variance and required domain precision. Do not promise small subgroups are precise because total n is sufficient or because each exceeds 30. For clustered/panel designs name PSU/strata/repeated-unit effects and dependencies. Compare contacts, completed responses, cluster counts, timing and effort against supplied resources only. A budget cap can require redesign or reduced precision, not false certification of an underpowered design.
  7. Plan validation and handoff. Propose a pilot/frame audit, what it would check, decision criteria and who must authorize changes. Label all proposed roles, dates, thresholds and permissions. Include limitations, alternatives, unresolved decisions, conditions before fieldwork and a change record. Do not report hypothetical pilot findings as observations.

Sizing rules and boundaries

Single proportion, simple random sampling without replacement

Only when the request is a two-sided approximate confidence interval for one proportion under simple random sampling:

n0 = z^2 * p * (1-p) / e^2

If a known finite eligible population N is relevant and the sampling fraction warrants correction, use n = n0 / (1 + (n0 - 1)/N). Otherwise retain n0 and explain why. Round required completions up once after adjustment; then invitations = ceil(required completions / r) for a supplied or explicitly hypothetical response fraction r. These approximations assume the chosen confidence method is suitable; rare outcomes or boundary proportions may require another interval/design.

  • z, p, absolute margin e, N and response fraction r need sources or explicit scenario labels. For example, e=0.05 means five percentage points, not five percent of p. p=0.5 maximizes p(1-p) for an absolute-margin single-proportion scenario; it is not a universal conservative setting for rare outcomes, relative precision, means or power.
  • Do not silently use 95%, five percentage points, 80% power, a design effect or an 80% response rate as approved inputs. If the user asks for a scenario, label every assumed parameter and keep it separate from confirmed requirements. If the frame is unreconciled or a required design input (such as response rate, eligibility rate or intraclass correlation) is missing and the user did not ask for scenarios, present the calculation table as a checklist of required inputs and do not compute sample sizes.
  • Validate 0<p<1, 0<e<1, 0<r<=1, positive z, integer N>0 and compatible units. An invitation count exceeding N is infeasible under a without-replacement eligible frame: report it and revise requirements/design, rather than quietly capping it and retaining the promised precision.
  • This expression does not size a mean, rare-event detection, paired change, clustered comparison, impact study, LQAS classification or subgroup domain. Do not reuse it for those purposes.

Other designs

  • Comparison/power: require outcome type, comparison design, effect/MDE, variance or baseline rates, significance/test direction, power, allocation, repeated measures/attrition and clustering as applicable. Supply a design-specific calculation specification and seek statistical review where necessary; do not certify power from a generic proportion formula.
  • Cluster/multistage: identify clusters, stages, selection probabilities and within-cluster correlation/design-effect evidence. A design effect is estimator/design specific. 1 + (m-1)*ICC is a simplified equal-cluster approximation, not a universal formula. Unknown ICC, unequal sizes or too few feasible clusters remain design problems; multiplying n by an arbitrary default does not solve them. Finite corrections and nonresponse must be applied at the appropriate stage, with statistical review for complex designs.
  • Stratified/domain estimates: size and allocate for the actual reporting domains and precision requirements. Proportional allocation can leave small domains unusable; oversampling changes weights. Report tradeoffs without inventing subgroup targets.
  • Qualitative: specify purposive criteria, variation, recruitment, initial proposed range if requested, analysis-informed stopping/review rules and limits. Do not promise saturation at a fixed interview count or represent frequency as population prevalence.

Output structure

For drafting mode, use the structure below. For an existing-plan consistency check, keep scope and source register, compare the supplied choices/calculations to the same design rules and return evidence-linked issues plus proposed corrections. Do not silently replace the plan or call proposed changes approved. A missing plan means no full check verdict.

Write one Markdown artifact with:

  1. Scope, decision/use and status (draft, supplied approval or unresolved).
  2. Source/evidence register, supplied facts and conflicts.
  3. Population, frame quality, intended inference and exclusions.
  4. Recommended approach and alternatives, explicitly proposed.
  5. Calculation table or unresolved sizing specification; assumptions and verified arithmetic.
  6. Stage-by-stage selection, contacts/nonresponse and data protection.
  7. Analysis/weights/domain precision and limitations.
  8. Feasibility, pilot, unresolved decisions and conditions before fieldwork.
  9. Completion check and change record.

When checking an existing plan, additionally retain ## Critical Issues, ## Important Issues and ## Minor Improvements, even when an item is None identified or Not assessable. Do not conflate this targeted consistency check with a completed independent review of every sampling criterion.

Completion and resumption

  • Every requested indicator/domain is covered or explicitly unresolved.
  • Frame limitations and inference claims agree; sampling and causal identification are separate.
  • Completions/invitations, periods, assumptions and arithmetic reconcile. No invented targets, observations, costs, references, permissions or commitments.
  • Proposed selection can be implemented; privacy, access, nonresponse, weights and field validation are addressed or flagged.
  • Inspect the actual saved artifact if file tools are available. A chat summary does not replace a promised file. Without file creation, return editable Markdown and state no downloadable file was created.
  • On interruption save actual drafts, calculations, source/version register and a short handover listing next stage and decisions. On resume compare inherited claims against original sources; classify each as confirmed, contradicted or unconfirmed. Preserve unknown status instead of converting it into absence or approval. Recalculate affected results after any changed parameter and record the change.

Public methodological context

This is a bounded design aid, not a replacement for design-specific statistical work. General sampling, frames and nonsampling error are covered in the UN Statistics Division's Designing Household Survey Samples: Practical Guidelines. Complex survey analysis must reflect the design; see the CDC's NHANES variance estimation tutorial. These references are background, not claims that a user's proposed design meets their requirements. Do not invent page citations or claim to have opened a source unless actually read.

Files for This Job

The individual ZIP can be uploaded to claude.ai as a custom skill; that was checked for one skill only. It is not a Claude Code plugin. Install and Plugin ZIPs

Evidence and Limits

Checked in Claude Code on fictional cases, including incomplete and unsuitable inputs, with the outputs reviewed by a second model. A browser upload check has passed for one skill (Evaluation Questions) on a paid plan. The Anthropic help page says Free plans can use uploaded skills; we did not test a Free account. Practitioner feedback is not checked yet.

Check the actual output against your source documents, especially numbers, missing data, proposed owners and approval status. Treat the result as an AI-assisted draft. Markdown and text tables are the checked output; Word, PDF and spreadsheet output are not promised. Keep each method's rating rules distinct from site rubric scores.

Source revision 5a6819f · Checked 2026-10-26

Back to All Jobs and Workflows