From c804e3b646ac897ab195b9d7fb201c1c495a31f1 Mon Sep 17 00:00:00 2001 From: Ben Date: Tue, 24 Feb 2026 22:26:08 +0100 Subject: [PATCH 1/2] ci: add cspell spell check workflow and make target Adds a GitHub Actions workflow that runs cspell on pushes to main and PRs. Includes a cspell.json config with project-specific dictionary and a `make spellcheck` target for local use. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/spellcheck.yml | 18 +++++++++++++++ Makefile | 6 ++++- cspell.json | 39 ++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/spellcheck.yml create mode 100644 cspell.json diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml new file mode 100644 index 0000000..039357c --- /dev/null +++ b/.github/workflows/spellcheck.yml @@ -0,0 +1,18 @@ +name: Spell Check + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + spellcheck: + name: Spell Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: streetsidesoftware/cspell-action@9cd41bb518a24fefdafd9880cbab8f0ceba04d28 + with: + config: cspell.json diff --git a/Makefile b/Makefile index 3eecadb..2b3ce86 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ PLUGIN_NAME := opentrace MARKETPLACE := opentrace-marketplace SCOPE := user -.PHONY: install uninstall reinstall validate list marketplace-add marketplace-remove marketplace-reinstall dev +.PHONY: install uninstall reinstall validate list marketplace-add marketplace-remove marketplace-reinstall dev spellcheck ## Install the plugin from the marketplace install: @@ -33,3 +33,7 @@ dev: uninstall marketplace-reinstall install ## List installed plugins list: claude plugin list + +## Run spell check +spellcheck: + npx cspell --config cspell.json "**/*.{md,txt,sh,json}" diff --git a/cspell.json b/cspell.json new file mode 100644 index 0000000..c798049 --- /dev/null +++ b/cspell.json @@ -0,0 +1,39 @@ +{ + "version": "0.2", + "language": "en", + "ignorePaths": [ + ".claude/", + ".git/", + ".idea/", + "node_modules/", + "*.log" + ], + "words": [ + "opentrace", + "codebase", + "submodule", + "submodules", + "guardrail", + "guardrails", + "hookSpecificOutput", + "hookEventName", + "additionalContext", + "systemMessage", + "maxDepth", + "edgeTypes", + "nodeTypes", + "edgeFilter", + "nodeFilter", + "mcpServers", + "pipefail", + "CURDIR", + "jq", + "gitignored", + "uninstall", + "reinstall", + "tooluse", + "PreToolUse", + "PostToolUse", + "SessionStart" + ] +} \ No newline at end of file From 2b28f384bd46e00800a4a4c96efbef64634d6031 Mon Sep 17 00:00:00 2001 From: Ben Date: Tue, 24 Feb 2026 22:28:19 +0100 Subject: [PATCH 2/2] ci: only run spell check on pull requests Co-Authored-By: Claude Opus 4.6 --- .github/workflows/spellcheck.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index 039357c..2420929 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -1,8 +1,6 @@ name: Spell Check on: - push: - branches: [main] pull_request: branches: [main]