Agent skill

Tsp Model

by shep-ai in shep-ai/shep

A skill your agent uses when creating, modifying, or documenting TypeSpec domain models.

MITAuto-check passedDevelopment

Install Tsp Model

skills CLI
$ npx skills add shep-ai/shep --skill tsp-model -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install shep-ai/shep tsp-model --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/shep-ai/shep.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/tsp-model .claude/skills/tsp-model && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
tsp-model
GitHub stars
264
Token cost
~1.1k tokens
SKILL.md length
190 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when creating, modifying, or documenting TypeSpec domain models.

  • Works in 4 steps: Module JSDoc at file top with @module,… → Model JSDoc with property table and JSON… → Property JSDoc with @example tags → …
  • Documenting TypeSpec domain models
  • SKILL.md covers Directory Structure, File Conventions, Required Template and Base Types, plus 5 more sections
  • Calls pnpm

What it does

Tsp Model is an agent skill from shep-ai/shep. Use when creating, modifying, or documenting TypeSpec domain models. Triggers include adding new entities, value objects, enums, extending base types, or when asked to create a "tsp model", "domain model", "entity", or work with files in the tsp/ directory. Part of the Shep autonomous SDLC platform — https://shep.bot

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. The repository describes itself as: Ship features 10x faster. Built In Auto: Memory, K8S Agent & Security (SDD+SDLC) . 😇. The licence is MIT.

When your agent uses it

  • Documenting TypeSpec domain models
  • Include adding new entities
  • Extending base types
  • Asked to create a tsp model

Example prompts

  • “tsp model”
  • “domain model”
  • “entity”
  • “/tsp-model”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Module JSDoc at file top with @module, relationships, @see links
  2. Model JSDoc with property table and JSON examples
  3. Property JSDoc with @example tags
  4. @doc() decorator on every model and property (for OpenAPI)

What it can do on your machine

Read from SKILL.md and the folder at commit 0304cfc. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pnpm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Tsp Model loads about 1.1k tokens when it runs. Until then it costs about 82 tokens; SKILL.md has 190 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~82
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from shep-ai/shep at commit 0304cfc, republished under its MIT licence (© shep-ai). 190 words, ~1,082 tokens.

Download SKILL.mdSave it as .claude/skills/tsp-model/SKILL.md (or your agent's skills folder).
name
tsp-model
description
Use when creating, modifying, or documenting TypeSpec domain models. Triggers include adding new entities, value objects, enums, extending base types, or when asked to create a "tsp model", "domain model", "entity", or work with files in the tsp/ directory. Part of the Shep autonomous SDLC platform — https://shep.bot
metadata.version
1.0.0
metadata.author
Shep AI (https://shep.bot)
metadata.homepage
https://shep.bot
metadata.repository
https://github.com/shep-ai/shep

TypeSpec Domain Model Generation

Generate TypeSpec domain models following this project's conventions for Clean Architecture entities.

Directory Structure

tsp/
├── common/           # Base types, scalars, enums
│   ├── base.tsp      # BaseEntity, SoftDeletableEntity, AuditableEntity
│   ├── scalars.tsp   # UUID scalar type
│   ├── ask.tsp       # Askable interface pattern
│   └── enums/        # One file per enum
├── domain/           # Domain entities
│   ├── entities/     # One file per entity
│   └── value-objects/# Embedded value objects
├── agents/           # Agent system models
└── deployment/       # Deployment configuration models

File Conventions

One model per file - Each entity/enum/value-object gets its own file.

Naming:

  • Files: kebab-case.tsp (e.g., action-item.tsp)
  • Models: PascalCase (e.g., ActionItem)
  • Enums: PascalCase with values in PascalCase (e.g., TaskStatus.InProgress)

Required Template

Every .tsp file MUST follow this structure:

typespec
/**
 * @module Shep.Domain.Entities.<EntityName>
 *
 * Brief description of the entity's purpose.
 *
 * ## Entity Relationships (if applicable)
 * ASCII diagram showing relationships
 *
 * @see docs/concepts/<relevant-doc>.md
 * @see <related-entity>.tsp
 */
import "../../common/base.tsp";
import "../../common/scalars.tsp";
// other imports...

/**
 * Entity Name
 *
 * Detailed description.
 *
 * ## Properties
 *
 * | Property | Type | Required | Description |
 * |----------|------|----------|-------------|
 * | ...      | ...  | ...      | ...         |
 *
 * @example
 * ```json
 * { ... }
 * ```
 */
@doc("One-line description for OpenAPI")
model EntityName extends BaseEntity {
  /**
   * Property description.
   * @example "example value"
   */
  @doc("One-line property description")
  propertyName: PropertyType;
}

Base Types

Choose the right base:

Base TypeUse When
BaseEntityStandard entity with id, createdAt, updatedAt
SoftDeletableEntityEntity that can be soft-deleted (adds deletedAt)
AuditableEntityEntity needing audit trail (adds createdBy, updatedBy)

Enum Definition Pattern

typespec
/**
 * @module Shep.Common.Enums.<EnumName>
 */
/**
 * Enum description
 */
@doc("One-line enum description")
enum EnumName {
  @doc("Description of this value")
  ValueOne,

  @doc("Description of this value")
  ValueTwo,
}

Documentation Requirements

  1. Module JSDoc at file top with @module, relationships, @see links
  2. Model JSDoc with property table and JSON examples
  3. Property JSDoc with @example tags
  4. @doc() decorator on every model and property (for OpenAPI)

Validation Commands

After creating/modifying TypeSpec:

bash
pnpm tsp:compile    # Verify compilation
pnpm tsp:format     # Format TypeSpec files

Quick Reference

TaskLocationExample
New entitytsp/domain/entities/<name>.tspfeature.tsp
New enumtsp/common/enums/<name>.tsplifecycle.tsp
New value objecttsp/domain/value-objects/<name>.tspgantt.tsp
Agent modeltsp/agents/<name>.tspfeature-agent.tsp

Common Mistakes

  • Missing @doc() decorators - Required for OpenAPI generation
  • Forgetting index.tsp exports - Add to directory's index.tsp
  • Wrong import paths - Use relative paths from current file
  • Missing examples - Always include @example with realistic JSON

© shep-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/tsp-model of shep-ai/shep.

Open the folder on GitHubat commit 0304cfc

Compare with similar skills

Tsp Model next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Tsp Model compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tsp Model this skillshep-ai/shep264—~1.1kAutomated safety check: PassMIT
Vercel Composition Patternssupabase/supabase111k58 repos~726Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 58 repos~726 tokens
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed

More from shep-ai/shep

  • React Flow

    shep-ai/shep

    React Flow (@xyflow/react) for workflow visualization with custom nodes and edges.

    264 GitHub stars~2.8k tokensUpdated yesterday
    Auto-check passed
  • Shep Workstreams

    shep-ai/shep

    A skill your agent uses when a large body of work (a version milestone, an epic, a roadmap, a set of PRDs/design docs) needs to be broken into parallel workstreams and executed with the shep CLI.

    264 GitHub stars~2.5k tokensUpdated yesterday
    Auto-check passed
  • A skill your agent uses when making architectural decisions, planning features, designing new components, reviewing PRs, or validating that proposed changes align with Clean Architecture principles.

    264 GitHub stars~808 tokensUpdated yesterday
    Auto-check passed
  • Cross-validate documentation and artifacts across the codebase for consistency, conflicts, and contradictions.

    264 GitHub stars~2k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Tsp Model

What does Tsp Model do?

A skill your agent uses when creating, modifying, or documenting TypeSpec domain models. Tsp Model is an agent skill from shep-ai/shep. Use when creating, modifying, or documenting TypeSpec domain models.

When should I use Tsp Model?

Tsp Model fits situations like: documenting TypeSpec domain models; include adding new entities; extending base types; asked to create a tsp model.

How do I install Tsp Model in Claude Code?

Run `npx skills add shep-ai/shep --skill tsp-model -a claude-code`. Or copy the skill folder (.claude/skills/tsp-model in shep-ai/shep) into .claude/skills/tsp-model in your project. Claude Code loads it when a task matches its description.

How do I install Tsp Model in Codex?

Run `npx skills add shep-ai/shep --skill tsp-model -a codex`. Or copy the skill folder (.claude/skills/tsp-model in shep-ai/shep) into .agents/skills/tsp-model in your project. Codex loads it when a task matches its description.

Can I use Tsp Model in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add shep-ai/shep --skill tsp-model -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tsp-model, .gemini/skills/tsp-model, .github/skills/tsp-model and .opencode/skills/tsp-model in your project.

What does Tsp Model need to run?

Going by SKILL.md and its folder, Tsp Model needs the command-line tools its instructions call (pnpm).

Does Tsp Model access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Tsp Model safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Tsp Model use?

Tsp Model is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Tsp Model use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Tsp Model?

Skills that share tags, products or a category with Tsp Model: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 297k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Tsp Model?

shep-ai (a GitHub organization) maintains it in shep-ai/shep, which has 264 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 8, 2026.

Source: shep-ai/shep on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.