Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude loads one when your task matches it, or you run it by name.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Frontmatter-driven Test Perspective Library (TPL) validator and query tool. Extracted from kompiro/karasu.
A TPL is a markdown file with YAML frontmatter recording a recurring test-perspective (typically distilled from a past bug) so the same class of defect is caught earlier next time. This package validates a directory of such files, lets you query them by topic/package, and renders the body for a periodic deprecation-review issue.
Published to the public npm registry:
pnpm add -D @kompiro/tpl-tools
For environments without a Node toolchain (other projects, Go/other-language devcontainers, etc.), install the self-contained executable published to GitHub Releases:
curl -fsSL https://raw.githubusercontent.com/kompiro/tpl-tools/main/install.sh | sh
The script detects your OS/arch, downloads the matching binary, verifies its
SHA256, and installs it to ~/.local/bin/tpl. Override with TPL_VERSION
(release tag) or INSTALL_DIR. In a devcontainer, add the one-liner above as a
RUN step in your Dockerfile — alongside the
adr-tools installer if you use both.
This repo is also a Claude Code plugin. Its
test-perspective skill (/tpl-tools:test-perspective) writes, updates and
deprecates TPLs by the rules tpl checks: it reads your config (idFormat,
checklistHeading, indexFile / indexCheck, ...) and runs tpl validate
after each change. The plugin is listed in the kompiro-hane marketplace:
/plugin marketplace add kompiro/hane
/plugin install tpl-tools@kompiro-hane
If you added kompiro-hane before tpl-tools was listed, run
/plugin marketplace update kompiro-hane first, or the install cannot find the
plugin.
The skill does not assume a CLI version: it follows the keys your config has, and names the release that introduced a feature where it relies on one. The npm package and the binaries do not include it.
tpl <subcommand> [options]
init generate a starter tpl.config.json in the target dir (or CWD)
validate validate TPL frontmatter, filenames, cross-refs, the index
regenerate write the topic-grouped TPL index named by "indexFile"
related list active TPLs matching a topic, or a change's files
checklist list checklist items with their markers (guard, judgment, ...)
review-body print the body for a periodic TPL deprecation-review issue
tpl.config.json)tpl reads reference data (the controlled topics vocabulary, the
idFormat, and the optional indexFile, indexCheck, checklistHeading,
sourcePrefixes and testFileInfixes) from a JSON file. Resolution order:
--config <path> (highest priority)tpl.config.json in the working directory, when presentThis lets tpl run standalone (its own tpl.config.json) or reuse a
shared file in a repo that also uses adr-tools
by pointing --config at adr.config.json (extra keys are ignored). Run
tpl init to scaffold one. The generated file's $schema points at the npm
package path, so editor autocompletion resolves when the package is installed.
tpl inittpl init [dir]
Writes a starter tpl.config.json (defining topics and idFormat) to dir
(default: CWD). Refuses to overwrite an existing file.
tpl validatetpl validate [--tpl-dir <path>] [--config <path>] [--packages-root <path>]
[--source-prefix <dir>]...
--tpl-dir — directory of TPL files (default docs/test-perspectives)--config — JSON file holding topics (controlled vocabulary, optional),
idFormat (optional, see below), indexFile and indexCheck (optional, see
tpl regenerate) and checklistHeading (optional, see
Checklist markers) and
sourcePrefixes (optional, see below). Defaults to tpl.config.json in CWD
when present; omit and provide no tpl.config.json to skip topic
validation and use the default id format.--packages-root — directory whose immediate subdirectories are the allowed
values for scope.packages. Omit to skip that check (non-monorepo repos).--source-prefix — repo-relative directory holding source (packages, or a
nested one such as docs/design); repeat for several.
Replaces the config's sourcePrefixes. With neither, the body source-path
check is skipped. See below.validate also checks that each scope.paths glob matches at least one file
(see tpl related).
Exit code 0 = clean, 1 = findings, 2 = usage / I/O error.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
tpl-tools@kompiro-hane is listed by kompiro/hane — review the source before installing
npx claudepluginhub kompiro/hane --plugin tpl-toolsPlugins from other owners that cover similar ground