iso-24495-text-audit

审核用户选择的 Markdown 或文本文件,查找确定性明文问题。仅在用户明确调用此技能时使用。

仓库最近推送
GitHub Stars
217
Forks
12
Issues / PRs
19

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "iso-24495-text-audit":https://skillpi.com/zh/skills/deepskill-46bc5df2e391a820c45313ba32391d4b6c6e62edcd2d35a9b7bce1a75641e40f。安装前核对上游来源和版本:https://github.com/GaZmagik/iso-24495。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

审核用户选择的 Markdown 或文本文件,查找确定性明文问题。仅在用户明确调用此技能时使用。

0 下载

介绍来源: third_party · GaZmagik · 0.7.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
输入和输出
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: iso-24495-text-audit
description: Audit user-selected Markdown or text files for deterministic plain-language findings. Use only when the user explicitly invokes this skill.
disable-model-invocation: true
argument-hint: "[file-or-directory]"
metadata:
  version: "0.7.0"

ISO 24495 Text Audit

Audit only the path the user selects. Report mechanical findings so the user can decide whether the text suits its readers and purpose.

Language and input scope

The audit is written for English and supports English only. The skills and output style are instructions a model interprets, so they are not limited to English in the same way.

Its word rules match English words and phrases: legalese, doublet, wordy-phrase, filler-opening, complex-word, double-negative, and the phrases link-text looks for. The filler-opening rule checks only the opening prose. The link-text rule also flags empty labels and labels that are bare web addresses.

Five word rules read headings as well as prose: legalese, doublet, wordy-phrase, complex-word, and double-negative. The rules about sentences and paragraphs read prose only, because a heading is not a sentence.

The sentence-length and sentence-average rules count words separated by whitespace, including spaces and line breaks, and use English benchmarks. The paragraph-length rule counts sentences, with a limit of five.

The prose-enumeration rule flags three or more distinct ranks in a prose block, including rank one. It recognises English ordinal words and numbered markers from one to six.

The audit reads Markdown as written and does not interpret raw HTML. It sets HTML tags aside and reads the text between them, even where GitHub would hide or change that text.

Workflow

  1. Read the path from $ARGUMENTS. Ask for a path when none was supplied.
  2. Resolve the audit script relative to this SKILL.md file.
  3. State the selected file or directory before running the script.
  4. Treat an explicitly supplied directory as approval to read that directory.
  5. Ask before expanding the audit beyond the supplied path.
  6. Run the script with Bun:
bun <skill-directory>/scripts/audit-text-cli.ts <file-or-directory> --project-dir <project-directory>

Add --no-front-matter for text that cannot carry metadata, such as a pull request description. A leading --- block is then read as text, not set aside as front matter.

  1. Report every finding with its file, line, rule, and explanation.
  2. Report skipped or unreadable entries. Never treat an incomplete audit as clean.
  3. Explain that findings are mechanical proxies, not an ISO judgement.
  4. Leave the final decision and any rewriting request to the user.

Boundaries

  • Read .md, .markdown, and .txt files only.
  • Do not follow a selected or nested symbolic link or directory junction. Report each one as skipped.
  • Do not alter the selected text unless the user separately requests changes.
  • Do not create a report file unless the user requests one and names its location.
  • Do not describe zero findings as proof that text is valid, compliant, or suitable.
  • Use the relevant sector skill when interpreting findings in legal, technical, scientific, or designed documents.

版本历史

  1. v0.7.0 GitHub ↗
    原版更新说明

    ### Added - **Document-level rules for legal writing.** `iso-24495-2` governed wording alone, so a contract came out clearly worded inside a structure nobody could navigate. It now carries five rules the wording rules could not reach: defined terms, cross-references, clause identifiers, a summary layer, and section names. Cross-references name what they point at, clause identifiers survive an amendment, and section names use the reference case Part 5 already allows. - **A summary that cannot be mistaken for the agreement.** It sits directly after Part 5's opening block. The summary must state that the operative text governs, and must name where that text starts. It must not add, qualify or remove an obligation, because a summary a reader acts on instead of the contract changes their rights. - **A qualification that travels with its term.** Part 5 requires an overview to keep every essential qualification, so the summary states a term together with every one of them. Where that cannot be done plainly, the term is left out and its clause named instead. - **A worked summary example**, showing the governing statement that a bare summary leaves out. - **A mapping between a technical explanation and a technical document.** `iso-24495-3` orders an explanation in three stages, and `iso-24495-5` orders a document in three levels. They are different axes, so Part 3 now says where each stage lands. The purpose sentence supplies the purpose line of the opening block, and opens the overview where Part 5 calls for one. Stages 2 and 3 are the main body, and nothing is demoted to optional detail by default. - **A stage covers what the explanation contains.** Every stage was mandatory, so a runbook needed a diagram of its own step list and a decision record needed a code snippet it has no code for. A stage with no content is omitted, and the order of the rest holds. - **A text alternative wherever a diagram is required.** Part 3 mandates a diagram or table where an explanation covers how more than one component relates to another. It never mentioned alternative text, so a document passing its own checklist could hand a listener nothing. A Mermaid diagram reaches a listener as its source, which is not an explanation, so the alternative is prose beside it. - **A definition of the clause the numbering rule means.** "Number every operative clause" never said what operative means, and the checklist repeated the term, so a non-lawyer could not tell whether they had complied. An operative clause imposes, permits or prohibits an action, and recitals, definitions and schedules are numbered by the document's conventions instead. - **This repository now audits its own pull request descriptions.** The suite reads every document here, and a description was the one piece of text it never saw, because it lives on GitHub rather than in the tree. A workflow now hands it to `scripts/audit-pull-request-text.sh`, which a contributor can run over any file. Findings are advice, listed in the log and on the job's summary page, and never fail the check. It fails only a description that is empty or holds only whitespace, or a run where the audit did not complete. - **A `--no-front-matter` option for the text audit.** A pull request description cannot carry metadata, so a leading `---` block in one is text a reader sees. The option reads that block as text, and the description check passes it. A file in a repository still has its front matter set aside as metadata. ### Known limits - **The audit engine does not measure the new rules.** Its seventeen checks are mechanical proxies: eleven read prose, five of them also read headings, and six read markup, such as headings, table headers, link text and image alternatives. None reads the structure this release adds. A document with no summary, undefined terms, unnumbered clauses or a misplaced stage still reports zero findings. A zero is not a pass for any of them, and the organisational Measurement dimension does not move when that structure is absent. - **Thirty reviewed documents are pinned whole, and editing one means rebuilding its fixture.** The list covers skills, manifests, selected references and templates, the output style, and root documents. A separate test requires every skill and manifest to appear on the list, but the list does not cover every repository file or determine what a host packages. TypeScript is excluded because it changes constantly and has its own suites. Sentences printed by the audit tools are pinned separately, after a review reversed the report's certification disclaimer in code with every test still green. - **The workflow test checks the audit command, not the workflow settings.** It runs the pull request workflow's shell block and confirms that an empty description fails. It cannot see settings that GitHub applies outside that block, such as `continue-on-error` on the step or an `if` condition on the job. A setting like that can stop a failed run from failing the check while every test still passes. ### Changed - **A technical task now reaches the document design skill too**, whenever its output is a document. A code review comment and a chat answer are explanations rather than documents, so the pairing is conditional where the legal one is not. - **Part 5 says what Part 3 governs.** It claimed Part 3 governed the wording across its levels. Part 3 governs the stages, and now states where each one lands. - **The citation rule governs an explanation of code.** It read on any logic at all, so a user guide describing what happens after a click would have carried file and line references its reader cannot use. - **A defined term is collected where it appears in more than one section.** The rule said "where a term runs throughout", which two writers would not apply the same way. - **The design document template requires a text alternative** beside a diagram. It offered a diagram or a description, and so permitted a diagram with neither. - **A legal task now reaches the document design skill.** The Part 5 trigger named reports, specifications and guides, and stopped there, so nothing routed a contract or a licence to the design rules. The core skill, the output style and the Codex style skill now send legal work to `iso-24495-5` as well as `iso-24495-2`. - **The text audit states that it supports English only.** Its word rules match English words, and its counting rules count words by spaces against English benchmarks. The README and the audit skill now say so, and say that the audit reads Markdown as written rather than interpreting raw HTML. - **The version checks run in three stages.** The gate compared the version with every release tag, so any checkout of a release failed once that release was tagged. Every gate run now checks only that the version sites agree and the changelog records the version. A preflight, run by hand before tagging, requires a version later than every release. A workflow checks each pushed tag against the files it names, then runs the gate. - **Continuous integration moves to a newer Bun release.** The workflows now pin Bun 1.4.2 instead of 1.3.14. - **Part 5 names the one exception to its ordered-list rule.** No ordered list renders a compound identifier such as 4.2.1, so a legal document writes its clause identifiers into the clause text. Part 5 states that exception where the rule itself is stated, and its self-audit checklist carries the same exception. ### Fixed - **The description check reads the audit's report as JSON.** It searched the report for the text `"violations":`, so it trusted invalid JSON and a report naming a different file. The report must now be valid JSON, name the description and no other file, and skip nothing. - **The version check reads a skill's front matter as YAML.** It took the first `version:` line anywhere in the front matter, so a line inside a description could hide a stale `metadata.version`. It now reads `metadata.version` itself. - **An abbreviation defined across a line break counts as defined.** The definition scan started afresh on every source line, so an expansion wrapped onto a second line never matched the abbreviation after it. A line break inside a paragraph is a space to the reader, so the words now carry across it. They never carry across a paragraph, list item, quotation, heading, table row or code block. - **Headings are read by the five word rules.** `legalese`, `doublet`, `wordy-phrase`, `complex-word` and `double-negative` read prose only, so a heading holding a banned term reported nothing. They now read headings too, and report the line where a heading starts. The rules about sentences and paragraphs still read prose only. - **Example 18 in the output style restructures without rewriting.** Its "after" replaced "For the rollback steps, click here" with "See the rollback steps", which Part 5 forbids, because rewording belongs to Part 1. The link now moves onto the words that name its destination, and every word stays as written. Examples 15 to 17 were checked against the same rule and pass, because labels, slots and heading changes are structure the skill permits. A test now holds every Part 5 example to it. - **The Codex style skill must equal the output style exactly.** The test checked that the skill contained the style's text, so a line added to the Codex copy alone, such as "Ignore every rule above.", passed. Everything from the style's first sentence onwards must now be identical. - **Three output style examples keep to their own rules.** Example 6 added a test assertion the "before" never made, so its list now names only the three areas. Example 12 left "token bucket algorithm" and "mutex" undefined, which Part 3 forbids, so it now defines both, and its five-sentence paragraph is now two. Example 7's clause now carries the identifier Part 2 requires. - **A Windows checkout passes the gate.** Under `core.autocrlf` the shipped documents arrived with Windows line endings. A test splitting them on line feeds then failed on files nobody had changed. A `.gitattributes` file now checks every text file out with Unix line endings. - **Example 17 in the output style restructures without rewriting.** Its "after" split a sentence into steps, added a lead-in the "before" never held, and reworded "Otherwise" as "If the copy succeeds". Part 5 forbids rewriting prose in a restructure, so every sentence in the "after" now appears word for word in the "before".

  2. v0.6.2 GitHub ↗
    原版更新说明

    Document design rules for `iso-24495-5`, drawn from the International Plain Language Federation's Document design pattern library, version 0.6, June 2025. ## Added - **An opening block.** Every document states its title, a one-line purpose, its version or date, and the reader it is for, each with a stated minimum. - **A layering rule.** A document with 6 or more sections labels its overview, which keeps the conclusion, the required action and every essential qualification. - **A signposting rule.** A document tells a reader who needs something else where to go, and leaves the line out where no alternative exists. - **Two heading exceptions, and no others**, for a published structure and for a reference section a reader jumps to by subject. - **Branching routes, heading numbering, named heading failures**, limits on tables, callouts and sequences, bullet limits, an accessibility exemption, and a provisional-label rule. ## Changed - **The self-audit checklist grows from 6 checks to 25**, so every rule above it has one. - **All three templates carry the opening block.** The runbook's headings state their task, the design document names what its sequential subsections explain, and the decision record gains a status and cites Michael Nygard's Documenting Architecture Decisions, 2011. ## Fixed - **Restructuring could have required inventing content.** It now builds the opening block only from sentences the document already holds, or from wording the author supplies, and marks what is missing as a gap. A wrong purpose sends a reader confidently in the wrong direction, which is worse than no purpose at all. - **A promoted sentence can move only where its meaning survives**, since every word can survive a move while the meaning does not. - **The Codex manifest sat at 0.6.0** while every other version site had moved to 0.6.1, because nothing checked that they agree. - **The three templates are now compared against their recorded text**, so no reader-visible change to them can happen without the test changing in the same commit. No substantial wording is copied from the pattern library. Read the [original](https://www.iplfederation.org/wp-content/uploads/2025/06/ISOpatternlibrary06.pdf). **Full changelog:** https://github.com/GaZmagik/iso-24495/blob/v0.6.2/CHANGELOG.md

  3. v0.6.1 GitHub ↗
    原版更新说明

    ### Fixed - `iso-24495-code` would not load. Its description was an unquoted YAML scalar holding a colon and a space, in "the parts of code a person reads: the order units appear in". YAML reads that as the start of a nested mapping, so a loader refused the file with `mapping values are not allowed in this context at line 2 column 123`. The skill has been unloadable since 0.6.0 shipped. The description is now quoted, so a later edit that adds a colon still parses. - Nothing had ever parsed a `SKILL.md` as YAML, which is why the gate did not catch it. The other tests read these files as text, check the prose inside them and the files beside them, and took the frontmatter on trust. Every skill's frontmatter is now parsed on each run, and must carry a name matching its directory and a description that is not empty. ### Installing ``` /plugin marketplace add https://github.com/GaZmagik/iso-24495.git /plugin install iso-24495-plain-language@iso-24495 ``` Already installed? The marketplace `ref` now points at `v0.6.1`, so update the marketplace to pick it up.

  4. v0.6.0 GitHub ↗
    原版更新说明

    ## A seventh skill: plain language in code `iso-24495-code` applies the four principles to what a person reads in source code: the order units appear in, their names, what a comment says, and what an error tells the reader who hits it. It exists because the writing rules were measured and found to do nothing to code. Across 30 generated implementations of one specification: | Measure | No rules | Prose style | Style plus code rules | |---|---|---|---| | Public function position in file, median | 0.54 | 0.39 | **0.07** | | Named units, median | 12 | 12 | **15** | | Hidden tests passed | 10/10 | 10/10 | 10/10 | Without code rules the entry point lands anywhere, and last of all in half the files. With them it sits in the first fifth every time, at no cost to correctness. The same three arms on Codex and Gemini 3.7 Flash show no such movement, so treat this as a Claude effect rather than a general one. The reading-order measure was also chosen after those runs rather than predicted, so it is a hypothesis with a clean separation rather than a settled result. That caveat is carried inside the skill itself. The skill sets no size or complexity thresholds. Those are software quality rather than language. ## The engine stopped manufacturing findings Every engine defect fixed here made the audit report something that was not there, or miss something that was. - **A full stop inside emphasis, quotes or brackets now ends a sentence.** `**Lead in.** Next sentence.` was read as one sentence, so the engine was at its worst on the commonest pattern in these very skills. - **A code span is one atom.** `` `alpha. beta` `` split one sentence into three, so any text quoting punctuation was miscounted. - **A badge is read again.** An image inside a reference link lost its `image-alt` finding, which is the commonest nested link anyone writes. - **An escaped character reads as the character a reader sees.** An escaped terminator lost its sentence boundary, and an abbreviation behind an escaped bracket stopped being an abbreviation. - **Markup spanning lines no longer moves the lines after it.** Findings pointed one line early, so a reader opened an innocent line. ## It no longer stalls Six separate places grew with the square of the document, and generated or damaged Markdown reaches those shapes without anybody meaning harm. | Input | Before | After | |---|---|---| | 10,000 unmatched brackets | 8,940 ms | 18 ms | | 20,000 unmatched brackets | about 40 seconds | 25 ms | | 4,000 long sentences in one paragraph | 10,810 ms | 1,901 ms | | 8,000 acronyms | 8,847 ms | 298 ms | | A long sentence | threw | audited | Every link and image is now found by one scan rather than by a pattern per rule. ## How this was tested Eight adversarial review rounds. Rounds one to seven found defects every time, and several were introduced by the repair for the round before. Each was reproduced, its origin measured against the previous release rather than assumed, and fixed. Round eight passed. The engine was verified against the previous release across 40,000 generated documents holding badges, nested images and bracketed destinations, with no difference in what is reported. The gate is 160 tests across 10 files at 100% line and function coverage, and it includes the plugin auditing its own documents. ## Known limitations Stated rather than fixed. Each needs Markdown a reader is unlikely to write, and they are listed in the changelog. - A link destination ends at the first `)`, so one holding both parentheses and a raw `]` is not read as a link. - A link inside a link label is reported as two links, where CommonMark resolves it to the innermost one. - An image whose description is only another image with no description of its own is not reported.

  5. v0.5.0 GitHub ↗
    原版更新说明

    Plain language skills inspired by the ISO 24495 series, for Claude Code and now Codex CLI. ## What is new **A user-invoked text audit.** `iso-24495-text-audit` audits one file or directory you choose, and reports each finding with its file, line, rule and explanation. It replaces the automatic hook and the background monitor, which audited without being asked. Only you can invoke it: the model cannot, and it is told not to do the same work by other means. **Codex CLI support.** The plugin installs from the same address in both tools. Every skill carries the interface file Codex reads for its display name and prompt. Codex has no output style, so `iso-24495-style` carries those rules as a skill, word for word, with a test keeping the two identical. **Document design.** Part 5 provides templates for architecture decision records, runbooks and design documents, and reframes its rules around the heading tree, link text and reading order, which are the structure a listener has. **Seventeen rules, and a reader who cannot see the page.** `link-text` and `image-alt` serve readers who hear a document. `table-header` reports a column a listener would hear announced with no name. Four more rules close gaps between what the skills promised and what the engine checked. ## What changed underneath The engine reads Markdown the way CommonMark describes it, rather than inferring structure line by line. Each line is matched against the containers already open, then against any container it starts, and what remains is the block a rule measures. That is checked against the CommonMark reference implementation over 302 documents, recorded in the repository. 236 are read identically. The rest differ for one of five reasons, each a decision about a reader rather than about Markdown, and the script that rebuilds the record refuses to write a difference it cannot explain. List items and quotations are measured as the sentences a reader reads them as. A bullet can run to forty words, and nothing was checking it. ## Installing Claude Code: ``` /plugin marketplace add https://github.com/GaZmagik/iso-24495.git /plugin install iso-24495-plain-language@iso-24495 ``` Codex CLI: ``` codex plugin marketplace add https://github.com/GaZmagik/iso-24495.git codex plugin add iso-24495-plain-language@iso-24495 ``` ## What this is not The rules are mechanical proxies for the standard's public principles, not its licensed text. Nothing here is a claim of ISO conformance, and a clean audit is not proof that writing suits its readers.

此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗

当前收录版本

0.7.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值75/100

亮点

  • 提供基于 ISO 24495 标准的英文文本机械性审计能力
  • 适用于技术写作、文档优化等专业场景,具备明确实用价值
触发精准90/100

亮点

  • 触发描述清晰,参数提示明确,使用边界定义良好
结构规范80/100

待提升项

  • 缺少 When to Use/示例章节 原报告严重程度:轻微

    文档未提供独立的使用场景说明和端到端完整示例

    改进建议:补充 When to Use 章节和完整使用示例以增强可读性

亮点

  • 工作流分步清晰,frontmatter 完整,边界条件明确
执行可靠60/100

待提升项

  • 外部脚本依赖未说明来源与可用性 原报告严重程度:重大

    执行依赖 scripts/audit-text-cli.ts 脚本,但未说明该文件是否随 Skill 打包提供

    改进建议:确保脚本文件随 Skill 一起分发,或在文档中说明获取方式

  • 缺少对 Bun 环境缺失的错误处理 原报告严重程度:重大

    执行流程依赖 Bun 运行时,但未处理用户环境未安装 Bun 的情况

    改进建议:增加对 Bun 可用性的前置检查,并提供友好的错误提示或替代方案

亮点

  • 对目录扩展操作有确认机制,避免误操作
证据可验 (前四项均值)76/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。