josealvaradoo/battery-api/typescript

Claude Code and agent skill by josealvaradoo/battery-api

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Define how to write a good typescript code.

Install

npx vskill@latest install josealvaradoo/battery-api/typescript

SKILL.md

Web Scraping Skill

Define rules for writing a well and clean typescript code following the best practices.

When to use

Use this skill when you need write code using typescript.

How to use

When asked to edit code or write new code:

  1. Never use any.
  2. Create type or interface when it's necessary.
  3. Type every function structures: arguments and returns.
  4. Don't repeat yourself. Do use union |, interceptions &, extensions extends, picks Pick<>, omits Omit<>, etc...
Examples
typescript
// A bad code
const foo = (arg: any) => {};
// A good code
interface FooArg {
name: string;
}
const foo = (arg: FooArg): void => {};
typescript
// A bad code
type User = { name: string };
type Admin = { name: string; role: string };
// A good code
type User = { name: string };
type Admin = User & { role: string };
typescript
// A bad code
type SuperAdmin = { name: string; role: string; power: boolean };
type Admin = { name: string; role: string };
// A good code
type SuperAdmin = { name: string; role: string; power: boolean };
type Admin = Omit<SuperAdmin, "power">;

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/josealvaradoo/battery-api/typescript/badge)](https://verified-skill.com/skills/josealvaradoo/battery-api/typescript)

Something wrong with this skill or its page? Tell us.