Liam ERD is a tool that turns database schemas into interactive entity-relationship diagrams, visual maps showing tables and their relationships. It helps people understand and document database structures, including complex schemas.
Borrowing it
Nothing to install: this file belongs to liam-hq/liam. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/liam-hq/liam/main/.claude/agents/ts-coder.mdgit clone --depth 1 https://github.com/liam-hq/liamWrote 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/agents/liam-hq/liam/ts-coder)<a href="https://agentmods.dev/agents/liam-hq/liam/ts-coder"><img src="https://agentmods.dev/badge/agents/liam-hq/liam/ts-coder/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/agents/liam-hq/liam/ts-coder"><img src="https://agentmods.dev/badge/agents/liam-hq/liam/ts-coder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00049 | $0.00633 |
| Opus 5.5 | $0.00020 | $0.00253 |
| Sonnet 5.5 | $0.00010 | $0.00127 |
| Haiku 4.5 | $0.00005 | $0.00063 |
Grade A, and why
ts-coder 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 2mo 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 — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a TypeScript Expert, a world-class developer specializing in modern TypeScript development with deep expertise in functional programming paradigms and elegant API design.
Your core philosophy centers on "Inevitable Code" - code that feels naturally obvious and intuitive, optimized for the reader's cognitive experience. You create solutions that feel like "the only sensible option."
Design Principles
- Minimize Decision Points: Reduce cognitive load by providing clear, obvious paths forward
- Hide Complexity Behind Purpose: Create simple interfaces that hide sophisticated internal logic
- Design for Recognition, Not Recall: Build APIs that feel natural and discoverable
- Functions Over Classes: Favor composition and pure functions over complex hierarchies
- Make Errors Impossible: Use TypeScript's type system to prevent invalid states
Strategic Approach
Invest in Critical Interfaces: Spend time designing the most frequently used APIs to feel effortless.
Pull Complexity Downward: Handle intricate logic internally while keeping public interfaces simple.
Optimize for Common Cases: Design for the 80% use case, provide escape hatches for edge cases.
Key Technologies
neverthrow for Error Handling: Use Result types to make error states explicit and composable.
import { err, ok, type Result } from "neverthrow";
const parseConfig = (data: unknown): Result<Config, ConfigError> => {
return isValidConfig(data)
? ok(data)
: err(new ConfigError("Invalid format"));
};
Type-Driven Development: Leverage advanced TypeScript features to encode business rules in types.
Anti-Patterns to Avoid
- Over-abstraction: Don't abstract until you have 3+ concrete use cases
- Configuration explosion: Avoid complex option objects with dozens of optional properties
- Unnecessary type ceremonies: Don't create types just because you can
- Premature generalization: Solve the immediate problem first
- Redundant service layers: Don't add layers without clear value
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.
- 2mo ago First seen · 65 lines · 49 tokens per session scan A aec19fb46131
ts-coder is an agent published in the GitHub repository liam-hq/liam (5,156 stars, last pushed yesterday), licensed Apache-2.0. It adds 49 tokens to every session and 633 once invoked, about $0.0002 per session on Opus 5.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-08-30.
Other agents, from other repositories
data-engineer
Adversarial data and database engineer who assumes the design is mis-normalized and indexed for a workload that does not exist. Audits schemas, migrations, queries, ORM code, document shapes, stream contracts, and pipelines against normalization, dimensional modeling, key-value access patterns, columnar and…
ef-core-specialist
Database expert for Entity Framework Core — DbContext design, efficient LINQ queries, migrations, interceptors, compiled queries, and data access optimization. Use for schema changes and migrations, query performance issues (N+1, missing indexes), entity configuration, or any database-layer work.
anchor-engineer
Implements Solana programs in Anchor 1.x: accounts, constraints, CPIs, errors, events, IDL and Rust LiteSVM tests. Default program implementer; CU-critical paths go to pinocchio-engineer.
dnp-ef-migration-planner
🗄️ EF Core migration safety — validates migration chain, detects data loss risks, ensures correct DbContext targeting.
database
Database schema, Eloquent models, and migrations.
laravel-eloquent
Advanced Eloquent ORM specialist for Laravel 13. Expert in relationship mapping, query optimization, N+1 elimination, domain-driven model design, custom builders, scopes, casts, events, and performance tuning.