agentleFS
tacticlaunchtacticlaunch/mcp-linear/.github/skills/add-mcp-tool/SKILL.md

add-mcp-tool

Skill146 starsChanged 7 months agoMITView on GitHub

Add or update an MCP tool in the mcp-linear repository. Use this when implementing new Linear capabilities or exposing an existing service method through the MCP surface.

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 4 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this workflow when adding a tool to mcp-linear.

    line 6
  2. Very specific:

    Check whether the capability already exists in LinearService.

    line 15
  3. Distinctive:

    Add or update the tool definition with explicit required fields, enums, nullability, and numeric constraints.

    line 18
  4. Distinctive:

    Add or update the handler so it validates, delegates, and logs failures.

    line 19
  5. Very specific:

    Add or update the type guard in src/tools/type-guards.ts.

    line 20
  6. Very specific:

    Add focused tests in src/__tests__.

    line 23
  7. Very specific:

    Run npm test and npm run build.

    line 24
  8. Distinctive:

    Prefer SDK methods first.

    line 28
  9. Distinctive:

    If you use direct GraphQL because the SDK is stale or missing support, document why.

    line 29

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Use this workflow when adding a tool to mcp-linear.

Goal

Implement a Linear capability end-to-end so the MCP surface, runtime behavior, and docs stay aligned.

Workflow

  1. Inspect the existing domain files under src/tools/definitions, src/tools/handlers, and src/services/linear-service.ts to find the closest pattern.
  2. Check whether the capability already exists in LinearService.
  3. Inspect @linear/sdk before writing new GraphQL.
  4. Implement or update the service method so it returns normalized plain objects.
  5. Add or update the tool definition with explicit required fields, enums, nullability, and numeric constraints.
  6. Add or update the handler so it validates, delegates, and logs failures.
  7. Add or update the type guard in src/tools/type-guards.ts.
  8. Register the tool in both index files.
  9. Update TOOLS.md.
  10. Add focused tests in src/__tests__.
  11. Run npm test and npm run build.

Project-specific reminders

  • Prefer SDK methods first.
  • If you use direct GraphQL because the SDK is stale or missing support, document why.
  • Keep handlers thin.
  • Be exact about nullable update semantics and output schema fidelity.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.