An agent skill that teaches coding agents to write TypeScript as if it were Go:
- Simple
- Explicit
- No magic
Install the skill:
npx skills add revett/typescript-as-goThis installs into the current project and works with Claude Code, Cursor, Codex, and 75+ other
agents. Add -g to install it globally.
Then add the following to your AGENTS.md:
## Code Style
It is critically important that you abide by all the rules set out in the
`typescript-as-go` skill when writing Typescript, no exceptions.To update the skill to the latest version:
npx skills update typescript-as-goI wrote Go (by hand) for ~10 years before LLMs arrived and found it easy to follow due to how restricted it is as a language. By design it is boring, as there are such few ways to implement something.
Contrasting that with Typescript, it is a language that allows for a far greater amount of magic, which makes reading code slower for me personally. Given that reading and reviewing code is now of far greater importance, my theory is that simpler code that achieves the same desired outcome, is a good thing.
See CHANGELOG.md for a list of all notable changes to the skill.
- Thanks to the writers of Effective Go
