Effect TS
tellahq/opensession
Write idiomatic Effect v4 TypeScript verified against the pinned effect@4.0.0-rc.112 source.
AWS CDK testing patterns including snapshot tests, fine-grained assertions with Template.fromStack(), and normalization strategies.
$ npx skills add macalbert/envilder --skill typescript-cdk-testing -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install macalbert/envilder typescript-cdk-testing --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/macalbert/envilder.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/typescript-cdk-testing .claude/skills/typescript-cdk-testing && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "typescript-cdk-testing" agent skill from https://github.com/macalbert/envilder/tree/main/.github/skills/typescript-cdk-testing into .claude/skills/typescript-cdk-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typescript-cdk-testing", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/macalbert/envilder/tree/main/.github/skills/typescript-cdk-testingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add macalbert/envilder --skill typescript-cdk-testing -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install macalbert/envilder typescript-cdk-testing --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/macalbert/envilder.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/typescript-cdk-testing .agents/skills/typescript-cdk-testing && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "typescript-cdk-testing" agent skill from https://github.com/macalbert/envilder/tree/main/.github/skills/typescript-cdk-testing into .agents/skills/typescript-cdk-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typescript-cdk-testing", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add macalbert/envilder --skill typescript-cdk-testing -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install macalbert/envilder typescript-cdk-testing --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/macalbert/envilder.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/typescript-cdk-testing .cursor/skills/typescript-cdk-testing && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "typescript-cdk-testing" agent skill from https://github.com/macalbert/envilder/tree/main/.github/skills/typescript-cdk-testing into .cursor/skills/typescript-cdk-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typescript-cdk-testing", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/macalbert/envilder.git --path .github/skills/typescript-cdk-testing--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add macalbert/envilder --skill typescript-cdk-testing -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install macalbert/envilder typescript-cdk-testing --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/macalbert/envilder.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/typescript-cdk-testing .gemini/skills/typescript-cdk-testing && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "typescript-cdk-testing" agent skill from https://github.com/macalbert/envilder/tree/main/.github/skills/typescript-cdk-testing into .gemini/skills/typescript-cdk-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typescript-cdk-testing", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install macalbert/envilder typescript-cdk-testingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add macalbert/envilder --skill typescript-cdk-testing -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/macalbert/envilder.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/typescript-cdk-testing .github/skills/typescript-cdk-testing && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "typescript-cdk-testing" agent skill from https://github.com/macalbert/envilder/tree/main/.github/skills/typescript-cdk-testing into .github/skills/typescript-cdk-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typescript-cdk-testing", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add macalbert/envilder --skill typescript-cdk-testing -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install macalbert/envilder typescript-cdk-testing --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/macalbert/envilder.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/typescript-cdk-testing .opencode/skills/typescript-cdk-testing && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "typescript-cdk-testing" agent skill from https://github.com/macalbert/envilder/tree/main/.github/skills/typescript-cdk-testing into .opencode/skills/typescript-cdk-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typescript-cdk-testing", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
typescript-cdk-testingAWS CDK testing patterns including snapshot tests, fine-grained assertions with Template.fromStack(), and normalization strategies.
Typescript Cdk Testing is an agent skill from macalbert/envilder. AWS CDK testing patterns including snapshot tests, fine-grained assertions with Template.fromStack(), and normalization strategies. Use when writing or reviewing CDK infrastructure tests.
Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA, covering Database schema design and Test strategy. It works with TypeScript and Amazon Web Services. The repository describes itself as: One secret mapping for local dev, CI/CD, and runtime. Envilder resolves cloud secrets from your own vaults without SaaS middlemen, duplicated config, or .env drift. The licence is MIT.
Read from SKILL.md and the folder at commit b6a0327. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pnpmFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pnpm, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Typescript Cdk Testing loads about 1.6k tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 328 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from macalbert/envilder at commit b6a0327, republished under its MIT licence (© macalbert). 328 words, ~1,638 tokens.
.claude/skills/typescript-cdk-testing/SKILL.md (or your agent's skills folder).Testing patterns for AWS CDK infrastructure in the Envilder project (src/iac/).
Tests live in tests/iac/ and run with Vitest.
Tests mirror the source structure:
tests/iac/
├── bin/
│ └── main.test.ts CDK app entry point test
├── lib/
│ ├── stacks/
│ │ ├── cloudfrontUrlRewrite.test.ts
│ │ ├── staticWebsiteStack.test.ts
│ │ └── __snapshots__/
│ └── utils/
│ └── cloudFormationUtils.test.ts
├── package.json
├── tsconfig.json
└── vitest.d.ts~80% of CDK tests use snapshot testing to detect unintended infrastructure drift:
import { App } from "aws-cdk-lib";
import { Template } from "aws-cdk-lib/assertions";
describe("StaticWebsiteStack", () => {
it("Should_MatchSnapshot_When_StackIsSynthesized", () => {
// Arrange
const app = new App();
const stack = new StaticWebsiteStack(app, "TestStack", config);
// Act
const template = Template.fromStack(stack);
// Assert
expect(template).toMatchSnapshot("staticWebsiteStackTest");
});
});Remove non-deterministic values before snapshotting:
function normalizeTemplate(template: Template): object {
const json = template.toJSON();
for (const resource of Object.values(json.Resources ?? {})) {
if (resource.Properties?.Code?.S3Key) {
resource.Properties.Code.S3Key = "NORMALIZED";
}
if (resource.Properties?.SourceObjectKeys) {
resource.Properties.SourceObjectKeys = ["NORMALIZED"];
}
}
return json;
}Normalize these properties:
S3Key: Lambda deployment artifact hashSourceObjectKeys: Asset hashesFn::Join with account-specific valuesWhen infrastructure changes are intentional:
pnpm test -- -uRules:
~20% of tests verify specific resource properties:
import { Template, Match } from "aws-cdk-lib/assertions";
describe("LambdaStack", () => {
it("Should_HaveCorrectTimeout_When_ApiLambdaIsCreated", () => {
// Arrange
const app = new App();
const stack = new LambdaStack(app, "TestStack", config);
const template = Template.fromStack(stack);
// Act & Assert
template.hasResourceProperties("AWS::Lambda::Function", {
Timeout: 30,
MemorySize: 1024,
Runtime: "provided.al2023",
});
});
it("Should_HaveDeadLetterQueue_When_SqsIsCreated", () => {
// Arrange
const app = new App();
const stack = new SqsStack(app, "TestStack", config);
const template = Template.fromStack(stack);
// Act & Assert
template.hasResourceProperties("AWS::SQS::Queue", {
RedrivePolicy: Match.objectLike({
maxReceiveCount: 3,
}),
});
});
});| Method | Purpose |
|---|---|
template.hasResourceProperties(type, props) | Resource exists with properties |
template.hasResource(type, props) | Resource exists with full config |
template.resourceCountIs(type, count) | Exact count of resource type |
template.hasOutput(logicalId, props) | Stack output exists |
Match.objectLike({...}) | Partial match on nested objects |
Match.arrayWith([...]) | Array contains expected elements |
Match.stringLikeRegexp(pattern) | String matches regex |
Match.not(matcher) | Negation of any matcher |
Match.absent() | Property should not exist |
| Scenario | Pattern |
|---|---|
| New stack or construct | Snapshot: captures full baseline |
| Specific security property (e.g., encryption) | Assertion: explicit check won't be missed |
| Resource count verification | Assertion: resourceCountIs |
| Cross-resource references | Assertion: verify Ref/Fn::GetAtt |
| Infrastructure refactor (same output) | Snapshot: confirms no drift |
| Config-driven resource creation | Snapshot + assertion for critical properties |
Follow the project Should_{Behavior}_When_{Condition} convention:
it("Should_MatchSnapshot_When_StackIsSynthesized", ...)
it("Should_HaveCorrectTimeout_When_ApiLambdaIsCreated", ...)
it("Should_CreateDeadLetterQueue_When_SqsHasMaxReceiveCount", ...)
it("Should_RestrictPublicAccess_When_S3BucketIsCreated", ...)Use realistic config objects that match the config-driven infrastructure pattern:
const testConfig: BackendStackConfig = {
lambdas: [{ name: "TestLambda", timeoutSeconds: 30, memorySizeMbs: 1024 }],
sqs: [{ name: "test-queue", maxReceiveCount: 3, deadLetter: true }],
s3: [{ bucketNameSuffix: "test-bucket" }],
fargates: [{ name: "TestService", cpu: 256, memoryLimitMiB: 512 }],
};# Run all CDK tests
cd tests/iac && pnpm test
# Update snapshots (after intentional changes only)
cd tests/iac && pnpm test -- -u
# Run specific test file
cd tests/iac && pnpm test -- lib/stacks/staticWebsiteStack.test.ts
# Filter by test name
cd tests/iac && pnpm test -- -t "Should_MatchSnapshot"| Anti-Pattern | Correct Approach |
|---|---|
| Snapshot without normalization | Normalize non-deterministic values (S3Key, hashes) |
| Testing CDK internals (construct tree) | Test the synthesized CloudFormation template |
| Hardcoded account/region in tests | Use test-specific App with mock env |
| Updating snapshots without reviewing diff | Always review what changed and why |
| Only snapshot tests for security-critical props | Add explicit assertions for encryption, IAM, SG rules |
© macalbert, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .github/skills/typescript-cdk-testing of macalbert/envilder.
Open the folder on GitHubat commit b6a0327
Typescript Cdk Testing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Typescript Cdk Testing this skillmacalbert/envilder | 138 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Effect TStellahq/opensession | 392 | — | ~3.7k | Automated safety check: Pass | MIT | |
| Data Strategyidavidov13/agentic-playwright | 223 | — | ~3.4k | Automated safety check: Pass | MIT | |
| Javascript Testing Patternsdavila7/claude-code-templates | 32k | 12 repos | ~336 | Automated safety check: Pass | MIT | |
| Mutation Testing Triagetrailofbits/skills | 7.4k | — | ~3.2k | Automated safety check: Pass | CC-BY-SA-4.0 | |
| Testing Strategiesancoleman/ai-design-components | 526 | — | ~3.8k | Automated safety check: Pass | MIT |
tellahq/opensession
Write idiomatic Effect v4 TypeScript verified against the pinned effect@4.0.0-rc.112 source.
idavidov13/agentic-playwright
Test data strategy for the Playwright scaffold — Faker + Zod factories for dynamic happy-path data, static TS files (.ts with as const exports — never .json) for domain-specific curated invalid…
davila7/claude-code-templates
Comprehensive guide for implementing robust testing strategies in JavaScript/TypeScript applications using modern testing frameworks and best practices.
trailofbits/skills
Triages survived mutants and unnecessary test statements using Trailmark call-graph data, sorting them into false positives, missing unit tests and fuzzing targets.
ancoleman/ai-design-components
Strategic guidance for choosing and implementing testing approaches across the test pyramid.
softspark/ai-toolkit
Testing strategy: pyramid, AAA, mocks/fakes/stubs, flaky tests, coverage.
macalbert/envilder
Five independent analysis perspectives for code review: correctness, architecture, security, conventions, and complexity.
macalbert/envilder
Index of Architecture Decision Records (ADRs) for cross-cutting technical decisions.
macalbert/envilder
Git commit messages, PR workflow, and branching strategy using Conventional Commits and Semantic Versioning.
macalbert/envilder
Mandatory testing conventions including the narrow diagnostic exception for testing test-only code, AAA pattern, test naming, and assertions across all stacks (.NET, TypeScript, Python).
macalbert/envilder
Workflow for maintaining changelogs, READMEs, and documentation files.
macalbert/envilder
Audit and synchronize documentation across website, READMEs, and docs/.
Works with
Categories
AWS CDK testing patterns including snapshot tests, fine-grained assertions with Template.fromStack(), and normalization strategies. Typescript Cdk Testing is an agent skill from macalbert/envilder.fromStack(), and normalization strategies.
Typescript Cdk Testing fits situations like: reviewing CDK infrastructure tests; tasks that involve Database schema design; tasks that involve Test strategy.
Run `npx skills add macalbert/envilder --skill typescript-cdk-testing -a claude-code`. Or copy the skill folder (.github/skills/typescript-cdk-testing in macalbert/envilder) into .claude/skills/typescript-cdk-testing in your project. Claude Code loads it when a task matches its description.
Run `npx skills add macalbert/envilder --skill typescript-cdk-testing -a codex`. Or copy the skill folder (.github/skills/typescript-cdk-testing in macalbert/envilder) into .agents/skills/typescript-cdk-testing in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add macalbert/envilder --skill typescript-cdk-testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/typescript-cdk-testing, .gemini/skills/typescript-cdk-testing, .github/skills/typescript-cdk-testing and .opencode/skills/typescript-cdk-testing in your project.
Going by SKILL.md and its folder, Typescript Cdk Testing needs the command-line tools its instructions call (pnpm).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Typescript Cdk Testing is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.6k tokens (SKILL.md is roughly 6.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Typescript Cdk Testing: Effect TS (tellahq/opensession, 392 stars), Data Strategy (idavidov13/agentic-playwright, 223 stars), Javascript Testing Patterns (davila7/claude-code-templates, 32k stars) and Mutation Testing Triage (trailofbits/skills, 7.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
macalbert (a GitHub user) maintains it in macalbert/envilder, which has 138 GitHub stars. The repository holds 30 skills in this directory. The repository was last updated on October 5, 2026.
Source: macalbert/envilder on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.