Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
HTML agent-skillsai-agentsarchitecture-diagramclaude-codeclaude-skillscodexcoding-agentsdeepseek-harnessdeveloper-toolsdiagramsdiagrams-as-codedsh-pluginflowchartllmmermaidopencodesequence-diagramsoftware-architecturesystem-designvisualization
ci: verify contributor cards on dev before production activation
tt-a1i9464f6816f73
diff --git a/.github/workflows/contributor-cards.yml b/.github/workflows/contributor-cards.ymlindex 51a07f59..ce505089 100644--- a/.github/workflows/contributor-cards.yml+++ b/.github/workflows/contributor-cards.yml@@ -6,7 +6,7 @@ on:- 'tools/contributor-cards/**'- '.github/workflows/contributor-cards.yml'push:- branches: [main]+ branches: [main, dev]paths:- 'tools/contributor-cards/**'- '.github/workflows/contributor-cards.yml'diff --git a/tools/contributor-cards/README.md b/tools/contributor-cards/README.mdindex 666b3a76..89dc384e 100644--- a/tools/contributor-cards/README.md+++ b/tools/contributor-cards/README.md@@ -31,7 +31,9 @@ Each PR has one filename and one comment marker. Unchanged images do not create- Automatic publication after a human-authored PR merges into `main` in `tt-a1i/archify`.- **Run workflow** with a merged PR number for preview or backfill. **Publish** defaults to false; enable it to post/update the reply.- A downloadable workflow artifact retained for seven days; published PNGs live in the data branch independently of that retention.-- Scoped unit/browser checks when this tool or its workflow changes.+- Scoped unit/browser checks on PRs and pushes to `dev` or `main` when this tool or its workflow changes.++During dev integration, use the local CLI preview and the scoped CI checks. Merging into `dev` does not send a card. The manual Actions renderer and automatic publication become usable after the tool is promoted to the default branch.Privileged runs explicitly check out the default branch, never the PR head or merge ref. PR text is read as JSON, validated and HTML-escaped; it is never interpolated into shell commands or JavaScript. Exported HTML has a restrictive content policy, and Chrome blocks network requests during rendering. Checkout does not persist credentials. Job permissions are limited to repository content and PR comments. Per-PR concurrency prevents duplicate replies; publication handles races between different PRs.diff --git a/tools/contributor-cards/test/workflow.test.mjs b/tools/contributor-cards/test/workflow.test.mjsindex d57ed45a..4763b962 100644--- a/tools/contributor-cards/test/workflow.test.mjs+++ b/tools/contributor-cards/test/workflow.test.mjs@@ -4,7 +4,8 @@ import fs from 'node:fs/promises';const workflow = await fs.readFile(new URL('../../../.github/workflows/contributor-cards.yml', import.meta.url), 'utf8');// Security contract checks guard future edits to the privileged event path.test('privileged automation reads the default branch and does not interpolate PR text into shell', () => {- assert.match(workflow, /pull_request_target:\s+types: \[closed\]/);+ assert.match(workflow, /push:\s+branches: \[main, dev\]/);+ assert.match(workflow, /pull_request_target:\s+types: \[closed\]\s+branches: \[main\]/);assert.match(workflow, /github\.event\.pull_request\.merged == true/);assert.match(workflow, /ref: \$\{\{ github\.event\.repository\.default_branch \}\}/);assert.doesNotMatch(workflow, /pull_request\.head|refs\/pull|pull_request\.merge_commit_sha/);