用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/personamanagmentlayer/pcl --skill standards-expert命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Expert in Persona Control Language (PCL) - language design, compiler architecture, runtime systems, and ecosystem development
Expert system for designing, creating, and validating PCL skills with comprehensive domain knowledge extraction
Expert-level Docker containerization, image optimization, and container orchestration. Use this skill for building efficient Docker images, managing containers, and implementing Docker best practices.
基于 SOC 职业分类
正在显示 SKILL.md
| name | standards-expert |
| version | 1.0.0 |
| description | Expert-level ISO standards, quality management, compliance, and certification |
| category | professional |
| tags | ["iso","standards","quality-management","compliance","certification"] |
| allowed-tools | ["Read","Write","Edit"] |
Expert guidance for ISO standards, quality management systems, compliance, and certification processes.
from dataclasses import dataclass
from datetime import datetime
from typing import List, Optional
from enum import Enum
class ProcessCategory(Enum):
MANAGEMENT = "management"
OPERATIONAL = "operational"
SUPPORT = "support"
@dataclass
class QualityProcess:
process_id: str
name: str
category: ProcessCategory
owner: str
inputs: List[str]
outputs: List[str]
resources: List[str]
kpis: List[str]
risks: List[str]
class ISO9001QMS:
"""ISO 9001 Quality Management System"""
def __init__(self, organization: str):
self.organization = organization
self.processes: Dict[str, QualityProcess] = {}
self.quality_objectives = []
self.risks = []
self.opportunities = []
def define_process():
.processes[process.process_id] = process
():
.quality_objectives.append({
: objective[],
: objective[],
: objective[],
: objective[],
: objective[],
:
})
() -> :
{
: ._plan_phase(process_id),
: ._do_phase(process_id),
: ._check_phase(process_id),
: ._act_phase(process_id)
}
() -> :
process = .processes.get(process_id)
{
: ,
: process.resources process [],
: process.risks process []
}
() -> :
{
: ,
:
}
() -> :
{
: ,
:
}
() -> :
{
: ,
:
}
class RiskLevel(Enum):
LOW = "low"
MEDIUM = "medium"
HIGH = "high"
CRITICAL = "critical"
@dataclass
class InformationAsset:
asset_id: str
name: str
description: str
owner: str
classification: str # public, internal, confidential, restricted
value: int # 1-5 scale
@dataclass
class SecurityRisk:
risk_id: str
asset_id: str
threat: str
vulnerability: str
likelihood: int # 1-5 scale
impact: int # 1-5 scale
risk_level: RiskLevel
controls: List[str]
residual_risk: RiskLevel
class ISO27001ISMS:
"""ISO 27001 Information Security Management System"""
def __init__(self, organization: str):
self.organization = organization
self.assets: Dict[str, InformationAsset] = {}
self.risks: Dict[str, SecurityRisk] = {}
self.controls = {}
def ():
.assets[asset.asset_id] = asset
() -> SecurityRisk:
risk_score = likelihood * impact
risk_score >= :
risk_level = RiskLevel.CRITICAL
risk_score >= :
risk_level = RiskLevel.HIGH
risk_score >= :
risk_level = RiskLevel.MEDIUM
:
risk_level = RiskLevel.LOW
risk = SecurityRisk(
risk_id=,
asset_id=asset_id,
threat=threat,
vulnerability=vulnerability,
likelihood=likelihood,
impact=impact,
risk_level=risk_level,
controls=[],
residual_risk=risk_level
)
.risks[risk.risk_id] = risk
risk
():
risk_id .risks:
risk = .risks[risk_id]
risk.controls.append(control)
reduced_score = (risk.likelihood * risk.impact) * ( - effectiveness/)
reduced_score >= :
risk.residual_risk = RiskLevel.CRITICAL
reduced_score >= :
risk.residual_risk = RiskLevel.HIGH
reduced_score >= :
risk.residual_risk = RiskLevel.MEDIUM
:
risk.residual_risk = RiskLevel.LOW
() -> :
controls = {
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
:
}
{
: .organization,
: controls,
:
}
class AuditType(Enum):
INTERNAL = "internal"
EXTERNAL = "external"
CERTIFICATION = "certification"
SURVEILLANCE = "surveillance"
@dataclass
class AuditFinding:
finding_id: str
audit_id: str
type: str # 'non_conformity', 'observation', 'opportunity'
severity: str # 'major', 'minor'
description: str
clause_reference: str
evidence: str
corrective_action: Optional[str] = None
due_date: Optional[datetime] = None
status: str = 'open'
class AuditManager:
"""Manage quality audits"""
def __init__(self):
self.audits = {}
self.findings: Dict[str, AuditFinding] = {}
def plan_audit(self, audit_id: str, audit_type: AuditType,
scope: List[str], auditors: List[str],
date: datetime) -> Dict:
"""Plan an audit"""
audit = {
: audit_id,
: audit_type.value,
: scope,
: auditors,
: date,
:
}
.audits[audit_id] = audit
audit
():
.findings[finding.finding_id] = finding
():
finding_id .findings:
finding = .findings[finding_id]
finding.corrective_action = action
finding.due_date = due_date
finding.status =
{
: finding_id,
: action,
: responsible,
: due_date
}
():
finding_id .findings:
finding = .findings[finding_id]
finding.status =
{
: finding_id,
: datetime.now(),
: verification
}
() -> :
audit = .audits.get(audit_id)
audit_findings = [f f .findings.values()
f.audit_id == audit_id]
{
: audit,
: (audit_findings),
: ( f audit_findings
f.severity == ),
: ( f audit_findings
f.severity == ),
: ( f audit_findings
f. == ),
: audit_findings
}
@dataclass
class Document:
document_id: str
title: str
version: str
author: str
approver: str
effective_date: datetime
review_date: datetime
status: str # 'draft', 'approved', 'obsolete'
class DocumentControl:
"""Manage controlled documents"""
def __init__(self):
self.documents: Dict[str, List[Document]] = {}
def create_document(self, doc: Document):
"""Create new document"""
if doc.document_id not in self.documents:
self.documents[doc.document_id] = []
self.documents[doc.document_id].append(doc)
def get_current_version(self, document_id: str) -> Optional[Document]:
"""Get current approved version"""
if document_id in self.documents:
versions = [d for d in self.documents[document_id]
if d.status == 'approved']
if versions:
(versions, key= x: x.version)
() -> Document:
current = .get_current_version(document_id)
current:
new_version = ._increment_version(current.version)
new_doc = Document(
document_id=document_id,
title=current.title,
version=new_version,
author=author,
approver=current.approver,
effective_date=datetime.now(),
review_date=datetime.now(),
status=
)
.create_document(new_doc)
new_doc
() -> :
parts = version.split()
parts[-] = ((parts[-]) + )
.join(parts)
❌ Documentation for its own sake ❌ No management involvement ❌ Treating certification as the goal ❌ Ignoring audit findings ❌ No continuous improvement ❌ Poor document control ❌ Insufficient training