GaZmagik/iso-24495 / skills/iso-24495-4
iso-24495-4
VerifiedProvisional task skill for organisational plain language implementation (based on ISO/CD 24495-4, committee draft). Activates for plain language gap analysis, policy drafting, review workflow design, and organisational readiness for the future published standard. Does not activate for ordinary writing, rewriting, or reviewing of individual documents.
scripts/score-maturity.ts
View on GitHub// Deterministic maturity scoring. Converts a structured answers file into
// levels so the score cannot drift between agent sessions. The agent and the
// human gather evidence; this script only applies the catalogue.
import { MATURITY_MODEL } from "./lib/types.ts";
import type { Maturity } from "./lib/types.ts";
import { readFileSync, writeFileSync } from "node:fs";
export interface Answers {
organisation?: string;
dimensions: Record<string, Record<string, boolean>>;
}
export function scoreMaturity(answers: Answers): Maturity {
const maturity: Maturity = { dimensions: {}, overall: 0 };
let overall = Number.POSITIVE_INFINITY;
for (const [dimension, levels] of Object.entries(MATURITY_MODEL)) {
const given = answers.dimensions?.[dimension] ?? {};
let level = 0;
while (level < levels.length && levels[level].every((c) => given[c] === true)) {
level++;
}
const missing = level < levels.length
? levels[level].filter((c) => given[c] !== true)
: [];
maturity.dimensions[dimension] = { level, missing };
overall = Math.min(overall, level);
}
maturity.overall = Number.isFinite(overall) ? overall : 0;
return maturity;
}
export function runCli(
argv: string[],
stdout: (text: string) => void,
stderr: (text: string) => void,
): number {
const path = argv[2];
if (!path) {
stderr("Usage: bun score-maturity-cli.ts <answers.json> [--json <out-file>]");
return 2;
}
const jsonFlag = argv.indexOf("--json");
if (jsonFlag !== -1 && !argv[jsonFlag + 1]) {
stderr("score-maturity: --json requires an output file");
return 2;
}
try {
const maturity = scoreMaturity(JSON.parse(readFileSync(path, "utf8")));
if (jsonFlag !== -1) {
writeFileSync(argv[jsonFlag + 1], JSON.stringify(maturity, null, 2));
}
stdout("| Dimension | Level | Blocking criteria |");
stdout("|-----------|-------|-------------------|");
for (const [dimension, result] of Object.entries(maturity.dimensions)) {
stdout(`| ${dimension} | ${result.level} | ${result.missing.join(", ") || "-"} |`);
}
stdout(`\nOverall (weakest dimension): ${maturity.overall}`);
return 0;
} catch (error) {
stderr(`score-maturity: ${error instanceof Error ? error.message : String(error)}`);
return 1;
}
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |