soc2-expert

soc2-expert is a skill for Claude Code from personamanagmentlayer/pcl. It costs 71 tokens per session (2,775 once invoked), scanned A, original, Apache-2.0.

An expert guide to SOC 2, an audit framework for showing how a service protects data and operates reliable controls. It covers the trust areas auditors examine, including security, availability, privacy, and processing integrity.

In plain words
What is it for?
Use it to define control objectives, prepare for Type I or Type II audits, monitor controls, and handle audit exceptions.
Why use it?
It helps teams prepare evidence and controls for an audit instead of treating compliance as a list of unsupported claims.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to define control objectives, prepare for Type I or Type II audits, monitor controls, and handle audit exceptions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/personamanagmentlayer/pcl/soc2-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add personamanagmentlayer/pcl --skill soc2-expert
Clone the repo
git clone --depth 1 https://github.com/personamanagmentlayer/pcl

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for soc2-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/personamanagmentlayer/pcl/soc2-expert/github.svg)](https://agentmods.dev/skills/personamanagmentlayer/pcl/soc2-expert)
Your own site
<a href="https://agentmods.dev/skills/personamanagmentlayer/pcl/soc2-expert"><img src="https://agentmods.dev/badge/skills/personamanagmentlayer/pcl/soc2-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for soc2-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/personamanagmentlayer/pcl/soc2-expert"><img src="https://agentmods.dev/badge/skills/personamanagmentlayer/pcl/soc2-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,775 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 267
    Data is uploaded to cloud storage (S3 / GCS / Azure Blob). This may be a legitimate backup or exfiltration to an external bucket. Manual review is recommended.
    Fix: Verify the destination bucket is trusted and owned by you. Never upload credentials, secrets, or workspace contents to external or unverified cloud storage.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.02775
Opus 5 $0.00036 $0.01388
Sonnet 5 $0.00014 $0.00555
Haiku 4.5 $0.00007 $0.00278

Measured 4d ago against content hash cb37b809ef93, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

soc2-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

stdlib/security/soc2-expert/SKILL.md · 400 lines

How it starts

The opening of the file, as written. The whole thing — 400 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SOC 2 Expert

You are an expert in SOC 2 (System and Organization Controls 2) compliance, specializing in trust service criteria, audit preparation, controls implementation, and continuous monitoring.

Core Concepts

Trust Service Criteria (TSC)

  • Security (Common Criteria): Protection against unauthorized access
  • Availability: System availability for operation and use
  • Processing Integrity: System processing is complete, valid, accurate, timely
  • Confidentiality: Confidential information is protected
  • Privacy: Personal information is collected, used, retained, disclosed appropriately

SOC 2 Types

  • Type I: Design of controls at a specific point in time
  • Type II: Operating effectiveness of controls over a period (usually 6-12 months)
  • Report Structure: Description criteria, control objectives, auditor opinion
  • Audit Period: Typically 6 months minimum for Type II
  • Scope: Systems, services, and controls in scope
  • Exceptions: Control failures and their impact

Security Common Criteria (CC)

  • CC1: Control Environment
  • CC2: Communication and Information
  • CC3: Risk Assessment
  • CC4: Monitoring Activities
  • CC5: Control Activities
  • CC6: Logical and Physical Access Controls
  • CC7: System Operations
  • CC8: Change Management
  • CC9: Risk Mitigation

Code Examples

Control Implementation Framework

# soc2_controls.py - SOC 2 controls management system
from dataclasses import dataclass
from datetime import datetime
from enum import Enum
from typing import List, Optional

class ControlCategory(Enum):
    CC1_CONTROL_ENVIRONMENT = "CC1"
    CC2_COMMUNICATION = "CC2"
    CC3_RISK_ASSESSMENT = "CC3"
    CC4_MONITORING = "CC4"
    CC5_CONTROL_ACTIVITIES = "CC5"
    CC6_ACCESS_CONTROLS = "CC6"
    CC7_SYSTEM_OPERATIONS = "CC7"
    CC8_CHANGE_MANAGEMENT = "CC8"
    CC9_RISK_MITIGATION = "CC9"

class ControlStatus(Enum):
    DESIGNED = "designed"
    IMPLEMENTED = "implemented"
    OPERATING = "operating"
    NOT_OPERATING = "not_operating"
    REMEDIATED = "remediated"

@dataclass
class Control:
    id: str
    category: ControlCategory
    description: str
    control_owner: str
    frequency: str  # daily, weekly, monthly, quarterly, annual
    evidence_required: List[str]
    status: ControlStatus
    last_tested: Optional[datetime] = None
    exceptions: List[str] = None

    def __post_init__(self):
        if self.exceptions is None:
            self.exceptions = []

class SOC2ControlsManager:
    def __init__(self):
        self.controls = {}
        self.evidence = {}
        self.exceptions = []

    def add_control(self, control: Control):
        """Add a SOC 2 control to the framework."""
        self.controls[control.id] = control

    def test_control(self, control_id: str, test_results: dict):
        """Document control testing for audit."""
        if control_id not in self.controls:
            raise ValueError(f"Control {control_id} not found")

        control = self.controls[control_id]
        control.last_tested = datetime.now()

        if test_results.get('passed'):
            control.status = ControlStatus.OPERATING
        else:
            control.status = ControlStatus.NOT_OPERATING
            self._log_exception(control, test_results.get('reason'))

        self._store_evidence(control_id, test_results)

    def collect_evidence(self, control_id: str, evidence: dict):
        """Collect audit evidence for controls."""
        if control_id not in self.evidence:
            self.evidence[control_id] = []

        evidence['collected_at'] = datetime.now()
        self.evidence[control_id].append(evidence)

    def get_control_effectiveness(self, control_id: str) -> dict:
        """Calculate control operating effectiveness."""
        if control_id not in self.controls:
            return {'effective': False, 'reason': 'Control not found'}

        control = self.controls[control_id]
        evidence_items = self.evidence.get(control_id, [])

        if control.status != ControlStatus.OPERATING:
            return {'effective': False, 'reason': 'Control not operating'}

        if not evidence_items:
            return {'effective': False, 'reason': 'No evidence collected'}

        # Calculate effectiveness based on testing frequency
        required_tests = self._calculate_required_tests(control.frequency)
        actual_tests = len(evidence_items)

        effectiveness_rate = (actual_tests / required_tests) * 100 if required_tests > 0 else 0

        return {
            'effective': effectiveness_rate >= 95,  # 95% threshold
            'rate': effectiveness_rate,
            'required_tests': required_tests,
            'actual_tests': actual_tests
        }

    def generate_audit_report(self) -> dict:
        """Generate SOC 2 audit readiness report."""
        report = {
            'total_controls': len(self.controls),
            'by_category': {},
            'by_status': {},
            'exceptions': len(self.exceptions),
            'evidence_collected': sum(len(items) for items in self.evidence.values()),
            'generated_at': datetime.now().isoformat()
        }

        # Count by category
        for control in self.controls.values():
            category = control.category.value
            report['by_category'][category] = report['by_category'].get(category, 0) + 1

            status = control.status.value
            report['by_status'][status] = report['by_status'].get(status, 0) + 1

        return report

    def _log_exception(self, control: Control, reason: str):
        """Log control exceptions for audit report."""
        exception = {
            'control_id': control.id,
            'category': control.category.value,
            'description': control.description,
            'reason': reason,
            'logged_at': datetime.now(),
            'owner': control.control_owner
        }
        self.exceptions.append(exception)
        control.exceptions.append(exception)

    def _calculate_required_tests(self, frequency: str) -> int:
        """Calculate required test samples based on frequency."""
        # For 12-month audit period
        frequency_map = {
            'daily': 365,
            'weekly': 52,
            'monthly': 12,
            'quarterly': 4,
            'annual': 1
        }
        return frequency_map.get(frequency.lower(), 1)

    def _store_evidence(self, control_id: str, evidence: dict):
        """Store evidence for audit trail."""
        self.collect_evidence(control_id, evidence)

# Example usage
manager = SOC2ControlsManager()

# Add access control
access_control = Control(
    id="CC6.1",
    category=ControlCategory.CC6_ACCESS_CONTROLS,
    description="Logical access is granted based on approved authorization",
    control_owner="Security Team",
    frequency="daily",
    evidence_required=["Access logs", "Approval tickets", "User provisioning records"],
    status=ControlStatus.IMPLEMENTED
)
manager.add_control(access_control)

# Test control
manager.test_control("CC6.1", {
    'passed': True,
    'tester': 'Audit Team',
    'date': datetime.now(),
    'evidence': 'Access logs reviewed'
})

Read the full file on GitHub · 400 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 400 lines · 71 tokens per session scan A cb37b809ef93

Subscribe to this mod's changes

soc2-expert is a skill published in the GitHub repository personamanagmentlayer/pcl (40 stars, last pushed 2d ago), licensed Apache-2.0. It adds 71 tokens to every session and 2,775 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

performing-soc-2-type-ii-audit-preparation

SOC 2 Type II audit preparation involves designing, implementing, and demonstrating the operational effectiveness of controls aligned to the AICPA Trust Services Criteria (TSC) over a defined audit pe.

Njones17/AI-agent-master-cyber-skills-list · 51 tokens

GRC & Compliance

Governance, risk, and compliance — risk assessment and scoring, control mapping across NIST CSF 2.0 / ISO 27001:2022 / SOC 2 / CIS Controls v8, gap analysis, audit evidence preparation, and security policy generation.

Masriyan/Claude-Code-CyberSecurity-Skill · 58 tokens

compliance

Use when scoping which regulatory frameworks bind a business — SOC 2, ISO 27001, HIPAA, PCI DSS, EU AI Act, DORA, NIS2 — building a control register with owners and evidence, or standing up the cadence that keeps it audit-ready. NOT drafting privacy-policy/ROPA/DPA or ToS text (that is gdpr-privacy, terms-conditions)…

ericrisco/rsc-harness · 96 tokens

soc2-gap

Performs a SOC 2 Type II readiness gap analysis against AICPA Trust Services Criteria. Auto-invoked when discussing SOC 2 compliance, audit preparation, or security program maturity. Walks through all Common Criteria (CC1-CC9) plus selected additional criteria, identifies gaps, and produces a remediation roadmap with…

UnitOneAI/SecuritySkills · 78 tokens

compliance-testing

Regulatory compliance testing for GDPR, CCPA, HIPAA, SOC2, PCI-DSS and industry-specific regulations. Use when ensuring legal compliance, preparing for audits, or handling sensitive data.

summarybotng/summarybot-ng · 43 tokens

clawrouter

Hosted-gateway LLM router — save 84% on inference costs. A local proxy that forwards each request to the blockrun.ai gateway, which routes to the cheapest capable model across 76 models from OpenAI, Anthropic, Google, DeepSeek, xAI, Z.AI, and more. 7 free open-weight models included. Also exposes realtime market data…

BlockRunAI/ClawRouter · 222 tokens