thai-docx-skill

Projects that follow the best practices below can voluntarily self-certify and show that they've achieved an Open Source Security Foundation (OpenSSF) best practices badge.

There is no set of practices that can guarantee that software will never have defects or vulnerabilities; even formal methods can fail if the specifications or assumptions are wrong. Nor is there any set of practices that can guarantee that a project will sustain a healthy and well-functioning development community. However, following best practices can help improve the results of projects. For example, some practices enable multi-person review before release, which can both help find otherwise hard-to-find technical vulnerabilities and help build trust and a desire for repeated interaction among developers from different companies. To earn a badge, all MUST and MUST NOT criteria must be met, all SHOULD criteria must be met OR be unmet with justification, and all SUGGESTED criteria must be met OR unmet (we want them considered at least). If you want to enter justification text as a generic comment, instead of being a rationale that the situation is acceptable, start the text block with '//' followed by a space. Feedback is welcome via the GitHub site as issues or pull requests There is also a mailing list for general discussion.

We gladly provide the information in several locales, however, if there is any conflict or inconsistency between the translations, the English version is the authoritative version.
If this is your project, please show your baseline badge status on your project page! The baseline badge status looks like this: Baseline badge level for project 14687 is baseline-2 Here is how to embed the baseline badge:
You can show your baseline badge status by embedding this in your markdown file:
[![OpenSSF Baseline](https://www.bestpractices.dev/projects/14687/baseline)](https://www.bestpractices.dev/projects/14687)
or by embedding this in your HTML:
<a href="https://www.bestpractices.dev/projects/14687"><img src="https://www.bestpractices.dev/projects/14687/baseline"></a>


These are the Baseline Level 2 criteria. These are criteria version v2026.08.28.

Baseline Series: Baseline Level 1 Baseline Level 2 Baseline Level 3

        

 Basics

  • General

    Note that other projects may use the same name.

    An Agent Skill that makes Word files with Thai text render correctly, in Claude, ChatGPT, Codex, Copilot and more.

    Please use SPDX license expression format; examples include "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause", "GPL-2.0+", "LGPL-3.0+", "MIT", and "(BSD-2-Clause OR Ruby)". Do not include single quotes or double quotes.
    If there is more than one language, list them as comma-separated values (spaces optional) and sort them from most to least used. If there is a long list, please list at least the first three most common ones. If there is no language (e.g., this is a documentation-only or test-only project), use the single character "-". Please use a conventional capitalization for each language, e.g., "JavaScript".
    The Common Platform Enumeration (CPE) is a structured naming scheme for information technology systems, software, and packages. It is used in a number of systems and databases when reporting vulnerabilities.

    thai-docx is an Agent Skill: its scripts run inside an AI assistant's sandbox or on the user's computer. It has no run-time dependencies and never reaches the network. Two implementations, Python and JavaScript, give byte-identical output.

 Controls 19/19 ●

  • Controls


    When a CI/CD task is executed with no permissions specified, the CI/CD system MUST default the task's permissions to the lowest permissions granted in the pipeline. [OSPS-AC-04.01]
    Configure the project's settings to assign the lowest available permissions to new pipelines by default, granting additional permissions only when necessary for specific tasks.

    The repository's default GITHUB_TOKEN permission is read-only, and every workflow also declares permissions: contents: read at the top level, so a job without its own permissions block gets read access to the contents only: https://github.com/sayam/thai-docx-skill/blob/main/.github/workflows/gates.yml



    When an official release is created, that release MUST be assigned a unique version identifier. [OSPS-BR-02.01]
    Assign a unique version identifier to each release produced by the project, following a consistent naming convention or numbering scheme. Examples include SemVer, CalVer, or git commit id.

    Each release has a unique Semantic Version tag (v0.1.0 to v0.3.4), and release tags cannot be moved or deleted (ruleset release-tags). tools/package_skill.py --tag refuses a tag unless SKILL.md, the Python package, the JavaScript file, the changelog and CITATION.cff all state that version: https://github.com/sayam/thai-docx-skill/releases



    When an official release is created, that release MUST contain a descriptive log of functional and security modifications. [OSPS-BR-04.01]
    Ensure that all releases include a descriptive change log. It is recommended to ensure that the change log is human-readable and includes details beyond commit messages, such as descriptions of the security impact or relevance to different use cases. To ensure machine readability, place the content under a markdown header such as "## Changelog".

    Each GitHub release describes its changes for users, and its section of CHANGELOG.md (Keep a Changelog) lists what was added, changed and fixed, each fix with the test that holds it, and, under Security, every security fix; 0.3.1 lists three, and 0.3.2, 0.3.3 and 0.3.4 have no such section: https://github.com/sayam/thai-docx-skill/blob/v0.3.4/CHANGELOG.md#034---2026-10-09



    When a build and release pipeline ingests dependencies, it MUST use standardized tooling where available. [OSPS-BR-05.01]
    Use a common tooling for your ecosystem, such as package managers or dependency management tools to ingest dependencies at build time. This may include using a dependency file, lock file, or manifest to specify the required dependencies, which are then pulled in by the build system.

    CI and the release workflow install development dependencies only with pip install --require-hashes -r requirements/dev.txt and npm ci from tests/js/package-lock.json; GitHub Actions are pinned by commit SHA and the OSV-Scanner image by digest. The release archive itself needs no dependencies: https://github.com/sayam/thai-docx-skill/blob/main/.github/workflows/release.yml



    When an official release is created, that release MUST be signed or accounted for in a signed manifest including each asset's cryptographic hashes. [OSPS-BR-06.01]
    Sign all released software assets at build time with a cryptographic signature or attestations, such as GPG or PGP signature, Sigstore signatures, SLSA provenance, or SLSA VSAs. Include the cryptographic hashes of each asset in a signed manifest or metadata file.

    The release workflow creates a Sigstore-signed SLSA build-provenance attestation over the archive's SHA-256 digest (actions/attest-build-provenance), checks that it verifies and that a tampered copy does not, and only then attaches the archive together with the signed attestation bundle (thai-docx-X.Y.Z.intoto.jsonl): https://github.com/sayam/thai-docx-skill/releases/tag/v0.3.4



    When the project has made a release, the project documentation MUST include a description of how the project selects, obtains, and tracks its dependencies. [OSPS-DO-06.01]
    It is recommended to publish this information alongside the project's technical & design documentation on a publicly viewable resource such as the source code repository, project website, or other channel.

    CONTRIBUTING.md, "Dependencies": no run-time dependencies (ADR 0008); a development tool is taken only with an OSI-approved licence compatible with MIT and active maintenance; obtained only through the hash-pinned requirements/dev.txt, package-lock.json with npm ci --ignore-scripts, SHA-pinned actions and digest-pinned images; updated by hand in a pull request of its own, with Dependabot alerts on; checked on every push and pull request by the required deps job (OSV-Scanner): https://github.com/sayam/thai-docx-skill/blob/main/.github/CONTRIBUTING.md#dependencies



    The project documentation MUST include instructions on how to build the software, including required libraries, frameworks, SDKs, and dependencies. [OSPS-DO-07.01]
    It is recommended to publish this information alongside the project's contributor documentation, such as in CONTRIBUTING.md or other developer task documentation. This may also be documented using Makefile targets or other automation scripts.

    CONTRIBUTING.md, "Set up", gives the commands to install the hash-pinned development tools (pip, npm ci) and run the gates, the suite, lint and coverage; python3 tools/bundle_js.py rebuilds the JavaScript file from js/, and python3 tools/package_skill.py builds the release archive. The skill needs Python 3.11 or newer, or Node.js 22 or newer, and no libraries (README, "Requirements"): https://github.com/sayam/thai-docx-skill/blob/main/.github/CONTRIBUTING.md#set-up



    The project documentation MUST include a list of project members with access to sensitive resources. [OSPS-GV-01.01]
    Document project participants and their roles through such artifacts as members.md, governance.md, maintainers.md, or similar file within the source code repository of the project. This may be as simple as including names or account handles in a list of maintainers, or more complex depending on the project's governance.

    GOVERNANCE.md, "Access", lists who holds each sensitive resource: Sayam Sriphua (@sayam) alone holds repository admin, rulesets, merge, releases, security advisories and private reports, and the Zenodo and bestpractices.dev entries; the Scorecard results are published by a workflow with no personal access: https://github.com/sayam/thai-docx-skill/blob/main/GOVERNANCE.md#access



    The project documentation MUST include descriptions of the roles and responsibilities for members of the project [OSPS-GV-01.02]
    Document project participants and their roles through such artifacts as members.md, governance.md, maintainers.md, or similar file within the source code repository of the project.

    GOVERNANCE.md, "Roles", describes the maintainer, the code owner, the contributor and the security reporter, and what each is responsible for: https://github.com/sayam/thai-docx-skill/blob/main/GOVERNANCE.md#roles



    The project documentation MUST include a guide for code contributors that includes requirements for acceptable contributions. [OSPS-GV-03.02]
    Extend the CONTRIBUTING.md or CONTRIBUTING/ contents in the project documentation to outline the requirements for acceptable contributions, including coding standards, testing requirements, and submission guidelines for code contributors. It is recommended that this guide is the source of truth for both contributors and approvers.

    CONTRIBUTING.md sets the requirements for an acceptable contribution: coding standards (PEP 8 via ruff, ESLint's recommended rules), both implementations with byte-identical output, a test that fails without the change, goldens changed only on purpose, SPDX lines, a decision record for a design change, evidence for a new gate, synthetic content only, and Conventional Commits signed off; it also lists what a review checks: https://github.com/sayam/thai-docx-skill/blob/main/.github/CONTRIBUTING.md#what-a-pull-request-carries



    The version control system MUST require all code contributors to assert that they are legally authorized to make the associated contributions on every commit. [OSPS-LE-01.01]
    Include a DCO in the project's repository, requiring code contributors to assert that they are legally authorized to commit the associated contributions on every commit. Use a status check to ensure the assertion is made. A CLA also satisfies this requirement. Some version control systems, such as GitHub, may include this in the platform terms of service.

    Every commit carries a Developer Certificate of Origin 1.1 sign-off (git commit -s, ADR 0013). The required commits check rejects a pull request with any commit lacking it, and GitHub requires sign-off for commits made on the web: https://github.com/sayam/thai-docx-skill/blob/main/.github/CONTRIBUTING.md#commits



    When a commit is made to the primary branch, any automated status checks for commits MUST pass or be manually bypassed. [OSPS-QA-03.01]
    Configure the project's version control system to require that all automated status checks pass or require manual acknowledgement before a commit can be merged into the primary branch. It is recommended that any optional status checks are NOT configured as a pass or fail requirement that approvers may be tempted to bypass.

    The ruleset checks on main requires scans, commits, tests, lint, deps, pr-description and tests-newest to pass on a branch up to date with main, plus CodeQL code-scanning results, before a pull request can merge; it has no bypass actor: https://github.com/sayam/thai-docx-skill/rules?ref=refs%2Fheads%2Fmain



    Prior to a commit being accepted, the project's CI/CD pipelines MUST run at least one automated test suite to ensure the changes meet expectations. [OSPS-QA-06.01]
    Automated tests should be run prior to every merge into the primary branch. The test suite should be run in a CI/CD pipeline and the results should be visible to all contributors. The test suite should be run in a consistent environment and should be run in a way that allows contributors to run the tests locally. Examples of test suites include unit tests, integration tests, and end-to-end tests.

    Every push and pull request runs the whole pytest suite (598 tests at v0.3.4) on Python 3.11 with Node.js 22 under coverage, failing below 97% with branches counted and failing on a coverage data file it cannot read, then plants every mutant in tools/mutants.yaml and fails unless its test kills it (tests), and runs the suite again on Python 3.13 with Node.js 24 (tests-newest); both are required before merge, and CONTRIBUTING.md gives the same commands to run locally: https://github.com/sayam/thai-docx-skill/blob/main/.github/workflows/gates.yml



    When the project has made a release, the project documentation MUST include design documentation demonstrating all actions and actors within the system. [OSPS-SA-01.01]
    Include designs in the project documentation that explains the actions and actors. Actors include any subsystem or entity that can influence another segment in the system. Ensure this is updated for new features or breaking changes.

    docs/architecture.md, "Actors and what they do", names every actor — the user, the AI agent, the client app and its sandbox, the Python and JavaScript scripts, the file system, office applications, contributors and the maintainer, CI, code scanning, Scorecard, the release workflow and Zenodo — and what each does, followed by the five commands and the modules each runs: https://github.com/sayam/thai-docx-skill/blob/main/docs/architecture.md#actors-and-what-they-do



    When the project has made a release, the project documentation MUST include descriptions of all external software interfaces of the released software assets. [OSPS-SA-02.01]
    Document all software interfaces (APIs) of the released software assets, explaining how users can interact with the software and what data is expected or produced. Ensure this is updated for new features or breaking changes.

    Every external interface is documented: the commands, their JSON output and exit codes (SKILL.md and docs/architecture.md), every flag and default (references/settings.md, generated from the settings registry), finding codes (references/check.md), repair (references/repair.md), profile commands and file format (references/profiles.md), accepted Markdown (references/markdown.md) and the JavaScript API (references/sandbox.md); tests hold the documents to what the commands do: https://github.com/sayam/thai-docx-skill/tree/main/skills/thai-docx/references



    When the project has made a release, the project MUST perform a security assessment to understand the most likely and impactful potential security problems that could occur within the software. [OSPS-SA-03.01]
    Performing a security assessment informs both project members as well as downstream consumers that the project understands what problems could arise within the software. Understanding what threats could be realized helps the project manage and address risk. This information is useful to downstream consumers to demonstrate the security acumen and practices of the project. Ensure this is updated for new features or breaking changes.

    docs/assurance-case.md §5 assesses the most likely and most harmful security problems in order, each with its countermeasure and tests, on top of the requirements R1–R8 and threats T1–T11; it was brought up to date for 0.3.4, whose one change to it is in T11 (profile list shows a file's stem that is not a name, and every title, as check shows a name, and lists at most 100 rows of each place, the rest counted and unread); the security fixes of 0.3.1 are listed in CHANGELOG.md, and 0.3.2 to 0.3.4 list none. A probe-by-probe review of every requirement is recorded for 0.1.1 (docs/evidence/2026-09-18-security-review.md), and the page states that one covering the boundaries 0.3.0 moved is still owed: https://github.com/sayam/thai-docx-skill/blob/main/docs/assurance-case.md#5-security-assessment



    The project documentation MUST include a policy for coordinated vulnerability disclosure (CVD), with a clear timeframe for response. [OSPS-VM-01.01]
    Create a SECURITY.md file at the root of the directory, outlining the project's policy for coordinated vulnerability disclosure. Include a method for reporting vulnerabilities. Set expectations for how the project will respond and address reported issues.

    SECURITY.md: report privately through GitHub; acknowledgement within 3 days, an assessment within 14 days, a fix or mitigation before disclosure and in a release within a time set by its CVSS v4 severity (critical 7 days, high 14, medium 30, low 90), and coordinated disclosure no later than 90 days after the report, with credit if wanted: https://github.com/sayam/thai-docx-skill/blob/main/.github/SECURITY.md#what-to-expect



    The project documentation MUST provide a means for private vulnerability reporting directly to the security contacts within the project. [OSPS-VM-03.01]
    Provide a means for security researchers to report vulnerabilities privately to the project. This may be a dedicated email address, a web form, VCS specialized tools, email addresses for security contacts, or other methods.

    GitHub private vulnerability reporting is enabled on the repository and is the channel SECURITY.md gives; a report reaches only the maintainer, the security contact: https://github.com/sayam/thai-docx-skill/security/advisories/new



    The project documentation MUST publicly publish data about discovered vulnerabilities. [OSPS-VM-04.01]
    Provide information about known vulnerabilities in a predictable public channel, such as a CVE entry, blog post, or other medium. To the degree possible, this information should include affected version(s), how a consumer can determine if they are vulnerable, and instructions for mitigation or remediation.

    SECURITY.md, "How fixed vulnerabilities are published": a vulnerability reported to the project is published as a GitHub Security Advisory once fixed, naming the affected and fixed versions and crediting the reporter; every fixed vulnerability, reported or found by the project's own review before a release, is listed under ### Security in CHANGELOG.md for the release that fixes it, with the test that holds it fixed (0.3.1 lists three, all found by the project's own review; 0.3.2, 0.3.3 and 0.3.4 have no such section): https://github.com/sayam/thai-docx-skill/blob/main/.github/SECURITY.md#how-fixed-vulnerabilities-are-published



You can use tools and AI systems to propose changes via a simple URL, such as https://www.bestpractices.dev/en/projects/14687/choose/edit?osps_ac_01_01_status=Met&osps_ac_01_01_justification=GitHub+enforced. See our automation proposals system for how to do that. This data is available under the Community Data License Agreement – Permissive, Version 2.0 (CDLA-Permissive-2.0). This means that a Data Recipient may share the Data, with or without modifications, so long as the Data Recipient makes available the text of this agreement with the shared Data. Please credit Sayam and the OpenSSF Best Practices badge contributors.

Project badge entry owned by: Sayam.
Entry created on 2026-09-17 06:23:30 UTC, last updated on 2026-10-10 02:15:15 UTC. Last achieved passing badge on 2026-09-17 15:10:41 UTC.