From plaited-plaited
Common code pattern genome for agents. Reference implementations of pure utility functions showing preferred coding style, testing patterns, and TypeScript conventions. Use when writing utility functions, implementing deep equality, async helpers, or similar standalone patterns.
npx claudepluginhub joshuarweaver/cascade-code-general-misc-3 --plugin plaited-plaitedThis skill uses the workspace's default tool permissions.
This skill is a **genome** of common code patterns — reference implementations that teach agents how we prefer utility code to be written. Each pattern demonstrates:
Applies Acme Corporation brand guidelines including colors, fonts, layouts, and messaging to generated PowerPoint, Excel, and PDF documents.
Builds DCF models with sensitivity analysis, Monte Carlo simulations, and scenario planning for investment valuation and risk assessment.
Calculates profitability (ROE, margins), liquidity (current ratio), leverage, efficiency, and valuation (P/E, EV/EBITDA) ratios from financial statements in CSV, JSON, text, or Excel for investment analysis.
This skill is a genome of common code patterns — reference implementations that teach agents how we prefer utility code to be written. Each pattern demonstrates:
const declarationsany, use unknown with type guards)Use this when:
deep-equal.ts — Deep equality comparison for any JavaScript values
A recursive comparator that handles all built-in types including circular references. Demonstrates:
Object.is() for primitive comparison (correct NaN and +0/-0 handling)instanceof checks for Date, RegExp, Map, Set, TypedArraysWeakMap for circular reference detection (no memory leaks)Reflect.ownKeys() for thorough object comparison (includes symbols)deep-equal.spec.ts — Test coverage
Shows testing conventions: flat test() blocks (not it()), comment-separated sections for each type category, no conditional assertions.
wait.ts — Promise-based delay utility
A minimal async helper showing our conventions for:
type Wait declared separately from implementation)setTimeout → Promise)| Convention | Pattern |
|---|---|
| Arrow functions | const fn = () => not function fn() |
| Type over interface | type Wait = ... not interface Wait |
No any | Use unknown with type guards |
| Pure functions | No side effects, deterministic output |
test() not it() | Bun test convention |
| No conditional assertions | Assert condition first, then assert value |