Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/pantheon-org/tekhnenpx agentmods add skills/pantheon-org/tekhne/cdk-nagWrote 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.
[](https://agentmods.dev/skills/pantheon-org/tekhne/cdk-nag)<a href="https://agentmods.dev/skills/pantheon-org/tekhne/cdk-nag"><img src="https://agentmods.dev/badge/skills/pantheon-org/tekhne/cdk-nag/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/pantheon-org/tekhne/cdk-nag"><img src="https://agentmods.dev/badge/skills/pantheon-org/tekhne/cdk-nag.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 3 findings, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium MCP Rug Pull · line 45 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 53 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 61 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00051 | $0.01105 |
| Opus 5 | $0.00026 | $0.00553 |
| Sonnet 5 | $0.00010 | $0.00221 |
| Haiku 4.5 | $0.00005 | $0.00111 |
Grade A, and why
cdk-nag 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 9d 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.
How it starts
The opening of the file, as written. The whole thing — 158 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CDK Nag
When to Use
Use this skill when CDK infrastructure must be validated against security/compliance guardrails.
When Not to Use
Do not use this skill for Terraform-only repositories without AWS CDK constructs.
Core Principles
- Run compliance checks early in development.
- Prefer fixing insecure resources over suppressing findings.
- Use suppressions only with explicit, reviewable rationale.
- Keep CI enforcement consistent with risk profile.
Deterministic Workflow
- Add relevant cdk-nag rule packs to the app.
- Synthesize stacks and collect findings.
- Fix failing resources where feasible.
- Checkpoint: If findings remain after step 3, categorize each as fix / suppress / defer before proceeding. Do not advance until every finding has an owner and decision.
- Add minimal, scoped suppressions when justified.
- Re-run synth and CI checks before merge.
Quick Commands
Install cdk-nag
npm install --save-dev cdk-nag
Expected result: cdk-nag dependency available for CDK app.
Run synth to surface findings
npx cdk synth
Expected result: nag findings shown during synthesis.
Run synth for one stack
npx cdk synth MyStack
Expected result: targeted findings for the selected stack.
Run tests and synth in CI style
npm test && npx cdk synth
Expected result: failing status when tests or nag checks fail.
Evaluate this skill quality
sh skills/agentic-harness/skill-quality-auditor/scripts/evaluate.sh cdk-nag --json
Expected result: updated skill score and grade.
Code Examples
Add a rule pack to a CDK app
import { App, Aspects } from 'aws-cdk-lib';
import { AwsSolutionsChecks } from 'cdk-nag';
const app = new App();
// Apply the AWS Solutions rule pack to every stack in the app
Aspects.of(app).add(new AwsSolutionsChecks({ verbose: true }));
Expected result: all stacks synthesized with the AwsSolutionsChecks pack applied; findings printed to stdout during cdk synth.
What ships with it
27 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- .audits/2026-02-21/analysis.md 8.0 KB
- .audits/2026-02-21/audit.json 132 B
- .audits/2026-02-21/remediation-plan.md 210 B
- .audits/2026-02-22/analysis.md 8.0 KB
- .audits/2026-02-22/audit.json 132 B
- .audits/2026-02-22/remediation-plan.md 210 B
- .audits/2026-02-23/analysis.md 8.0 KB
- .audits/2026-02-23/audit.json 134 B
- .audits/2026-02-23/remediation-plan.md 206 B
- .audits/2026-03-02/analysis.md 1.0 KB
- .audits/2026-03-02/audit.json 406 B
- .audits/2026-03-02/remediation-plan.md 2.0 KB
- .audits/latest 10 B
- .tessl-plugin/plugin.json 365 B
- CHANGELOG.md 736 B
- evals/scenario-01.md 2.2 KB
- evals/scenario-02.md 3.0 KB
- evals/scenario-03.md 3.3 KB
- evals/scenario-04.md 2.5 KB
- evals/scenario-05.md 2.4 KB
- references/implementation-guide.md 6.0 KB
- references/integration-patterns.md 14 KB
- references/rule-evolution.md 8.9 KB
- references/rule-packs.md 6.4 KB
- references/suppression-guide.md 9.0 KB
- references/troubleshooting.md 10 KB
- skill.json 2.2 KB
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.
- 9d ago First seen · 158 lines · 51 tokens per session scan A 58df2e80d187
cdk-nag is a skill published in the GitHub repository pantheon-org/tekhne (10 stars, last pushed yesterday), licensed MIT. It adds 51 tokens to every session and 1,105 once invoked, about $0.0003 per session on Opus 5. 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-09-03.
Other skills, from other repositories
ci-cd-and-automation
Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.
google-cloud-slo-alert-configuration
Configures PromQL-based Service Level Objective (SLO) alerting policies for Google Cloud resources registered in App Hub or individually specified. Generates Terraform output. Use when the user asks to configure an SLO or Service Level Objective. Don't use for standard alerting policies.
chinese-git-workflow
A reference for configuring Git with Chinese code-hosting services such as Gitee, Coding.net, GitLab China, and CNB, including SSH, HTTPS, credentials, CI, and repository mirroring.
kotlin-tooling-gradle-to-kotlin-toolchain-project
Load when migrating or converting an entire Gradle Kotlin project (build.gradle(.kts), wrapper, libs.versions.toml, buildSrc) to the Kotlin Toolchain, including rewriting CI and replacing Gradle plugins that have no native Toolchain equivalent. Skip for porting one Gradle plugin or general Toolchain work once Gradle…
comet-github-ci-triage
A workflow for diagnosing failed GitHub Actions checks on a Comet pull request. GitHub Actions runs automated builds and tests; a pull request is a proposed code change waiting to be reviewed and merged.
review-tooling
Detect what dev tooling infrastructure a project has and flag gaps across linters, formatters, pre-commit hooks, test runners, and CI/CD pipelines. Returns structured findings without applying changes. Use when the user asks to "review tooling", "check project tooling", "what tooling is missing", "review dev…