agentsclimarketplace

Good skill

Skill rohitg00/skillkit/packages/core/src/eval/__tests__/fixtures/good-skill

Supercharge AI coding agents with portable skills. Install, translate & share skills across Claude Code, Cursor, Codex, Copilot & 40 more

Install
npx -y skills add rohitg00/skillkit --skill good-skill

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

Enforces TypeScript best practices and modern patterns

SKILL.md

1.3 KB, as published. Nobody here has run it

TypeScript Best Practices

When to Use

Use this skill when:

  • Writing new TypeScript code
  • Reviewing TypeScript pull requests
  • Refactoring JavaScript to TypeScript

Triggers

Activated when editing .ts or .tsx files in the project.

Rules

Always

  • Always use const for variables that won't be reassigned
  • Always use explicit return types on exported functions
  • Always prefer interface over type for object shapes

Never

  • Never use any — use unknown instead
  • Never use var — use const or let
  • Never ignore TypeScript errors with @ts-ignore

Examples

// Good: explicit return type
export function calculateTotal(items: Item[]): number {
  return items.reduce((sum, item) => sum + item.price, 0);
}
// Good: discriminated union
type Result<T> =
  | { success: true; data: T }
  | { success: false; error: Error };

Boundaries

  • Do not modify tsconfig.json without explicit permission
  • Do not add new dependencies without checking existing utilities
  • Focus only on TypeScript patterns, not runtime behavior

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.