control-sampling

Designs sampling plans for control testing and outputs structured memos documenting methodology and rationale.

Updated May 9, 2026
One-click install
npx skills add https://github.com/anotb/second-line-financial-services --skill control-sampling
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: control-sampling
Source: https://github.com/anotb/second-line-financial-services/tree/main/plugins/capability-plugins/compliance-testing/skills/control-sampling
Command: npx skills add https://github.com/anotb/second-line-financial-services --skill control-sampling

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pypdf, pdfplumber, pdf2image, jsonschema, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill helps you design and document a sampling plan for control testing, ensuring a defensible and effective testing process.

Core Features & Use Cases

  • Sampling Design: Define the testable population, select a sampling method, size the sample, and set a tolerable deviation rate.
  • Documentation: Generate a sampling memo that documents the rationale and provides a referenceable artifact for the test plan or workpaper.
  • Use Case: When scoping a control test, use this Skill to design a sample method, size the sample, and document the rationale for a reviewer to defend in front of an examiner.

Quick Start

Use the control-sampling skill to design a sample for a control test on the population 'account-opening packets opened in the period'.

Frequently Asked Questions about control-sampling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design a sampling plan for control testing?▼

To design a control testing sampling plan, you define the testable population, select a sampling method, size the sample, and set a tolerable deviation rate. This ensures a defensible testing process by structuring these parameters into a documented rationale.

What is a tolerable deviation rate in audit sampling?▼

A tolerable deviation rate in audit sampling is the maximum acceptable rate of control failures. Setting this rate is a core component of sampling design, allowing you to size the sample appropriately and establish a defensible threshold for control testing.

How do I document a sampling memo for an audit workpaper?▼

You document a sampling memo for an audit workpaper by generating a structured artifact that records the population definition, sampling method, sample size, and rationale. This provides a referenceable document for reviewers to defend before an examiner.

Can I use this to sample account-opening packets for a control test?▼

Yes, you can use this to sample account-opening packets for a control test. You simply define the specific population, such as packets opened in a period, and the design process will size the sample and document the testing rationale for that group.

Do I need pypdf and pdfplumber to document control testing samples?▼

You need pypdf and pdfplumber dependencies to process source documents when documenting control testing samples. These libraries, along with jsonschema, support the extraction and validation required to output a structured memo conforming to a schema.

What is the best way to structure a population definition for risk management sampling?▼

The best way to structure a population definition for risk management sampling is to clearly identify the complete set of testable items, such as all transactions in a period. This clear boundary ensures the sample size and deviation rate calculations remain statistically defensible.