Typescript Write
Helps with TypeScript, content writing as part of developing backend services and APIs workflows.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add peterfile-typescript-write npx -- -y @trustedskills/peterfile-typescript-write
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"peterfile-typescript-write": {
"command": "npx",
"args": [
"-y",
"@trustedskills/peterfile-typescript-write"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows AI agents to write TypeScript code. It can generate new TypeScript files, add functions or classes to existing files, and modify existing TypeScript code based on instructions. The agent leverages its understanding of TypeScript syntax and semantics to produce functional and readable code.
When to use it
- Generating boilerplate: Quickly create initial project structures or components with basic TypeScript scaffolding.
- Adding functionality: Extend existing TypeScript projects by adding new features, functions, or classes.
- Refactoring code: Modify existing TypeScript code for improved readability, performance, or maintainability.
- Automating repetitive tasks: Generate common TypeScript patterns or snippets to reduce manual coding effort.
Key capabilities
- TypeScript code generation
- Code modification within existing files
- Function and class creation
- Understanding of TypeScript syntax and semantics
Example prompts
- "Write a TypeScript file named
user.tswith a function that validates email addresses." - "Add a new method called
calculateTotalto theCartclass incart.ts." - "Refactor the
processOrderfunction inorder.tsto use async/await."
Tips & gotchas
- Ensure the AI agent has access to any relevant project dependencies or type definitions for accurate code generation.
- The skill's output should always be reviewed and tested thoroughly before deployment, as with any automatically generated code.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.