testing-and-ci

testing-and-ci is an agent for Claude Code from solana-foundation/templates. It costs 0 tokens per session (379 once invoked), scanned A, original, MIT.

A testing and continuous-integration guide for the Solana template repository, covering generation, linting, validation, installation, and automated template tests.

In plain words
What is it for?
Use it to validate template changes, regenerate metadata, check formatting and required files, test fresh installations, and understand the repository workflows.
Why use it?
It helps contributors choose the right checks for a change and understand what the repository’s CI system will run.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/solana-foundation/templates/testing-and-ci
Clone the repo
git clone --depth 1 https://github.com/solana-foundation/templates

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for testing-and-ci

README.md
[![agentmods](https://agentmods.dev/badge/agents/solana-foundation/templates/testing-and-ci.svg)](https://agentmods.dev/agents/solana-foundation/templates/testing-and-ci)
Your own site
<a href="https://agentmods.dev/agents/solana-foundation/templates/testing-and-ci"><img src="https://agentmods.dev/badge/agents/solana-foundation/templates/testing-and-ci.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 379 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00379
Opus 5 $0.00000 $0.00189
Sonnet 5 $0.00000 $0.00076
Haiku 4.5 $0.00000 $0.00038

Measured 6d ago against content hash 741d471c2fea, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

testing-and-ci scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/agents/testing-and-ci.md · 32 lines

What it actually says

Testing And CI

Use the smallest validation that proves the change, then run broader checks when touching shared tooling or generated metadata.

Local Commands

  • pnpm generate updates generated template metadata.
  • pnpm lint checks template metadata, duplicate names, og-image.png, and formatting.
  • pnpm format applies Prettier.
  • pnpm validate checks generated metadata shape.

Template Checks

For a changed template, prefer validating from a fresh install path when practical. CI uses create-solana-dapp to instantiate templates, install dependencies, and run npm run ci.

Non-community templates tested by CI need a ci script. If a community template has no ci script, make sure its README setup commands still match its actual package scripts.

CI Files

  • .github/workflows/validate-templates.yml checks metadata generation and validation.
  • .github/workflows/test-templates.yml runs template tests across package managers and non-community template paths.
  • .github/actions/create-solana-dapp/action.yml contains the shared template creation and install flow.
  • .github/actions/setup/action.yml controls Node, package manager, Solana, Anchor, Rust, and other tool setup.

Interpreting Failures

  • Metadata failures usually mean pnpm generate was not run or a template package.json is missing fields.
  • Image failures usually mean og-image.png is missing, too large, or not 1200x630.
  • npm run ci failures usually mean a tested template is missing a ci script or its CI script no longer matches the template.
  • Package manager failures can come from dependency engine constraints, lockfile differences, or template package scripts.
  • Do not assume an unrelated CI failure is caused by the current PR without reproducing or isolating it.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 32 lines · 0 tokens per session scan A 741d471c2fea

Subscribe to this mod's changes

testing-and-ci is an agent published in the GitHub repository solana-foundation/templates (106 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 379 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.