templates-extended

A collection of ready-made document outlines for specialised technical work, including API documentation. An API is a defined way for software systems to communicate.

In plain words
What is it for?
It helps write API overviews, authentication notes, parameters, response examples, error handling, rate limits, and endpoint descriptions.
Why use it?
It gives developers a consistent structure for documenting APIs and other project-specific information instead of starting from a blank page.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/kfnzero/mantis-mcp-server/templates-extended
Clone the repo
git clone --depth 1 https://github.com/kfnzero/mantis-mcp-server

Made for: Cursor.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,548 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01548
Opus 5 $0.00000 $0.00774
Sonnet 5 $0.00000 $0.00310
Haiku 4.5 $0.00000 $0.00155

Measured 3d ago against content hash 9e793681e7cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

templates-extended scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/Templates/templates-extended.mdc · 310 lines

How it starts

The opening of the file, as written. The whole thing — 310 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Extended Templates

This document contains additional specialized templates for specific contexts beyond the core Memory Bank files.

API Documentation Template

# API Documentation: [API Name]

## Overview
[Brief description of the API's purpose and scope]

## Base URL

[Base URL for the API]


## Authentication
[Authentication methods and requirements]

## Common Parameters
- `[parameter1]`: [Description] - [Required/Optional]
- `[parameter2]`: [Description] - [Required/Optional]

## Response Format
```json
{
  "success": true,
  "data": {},
  "error": null
}

Error Handling

[Description of error response format and common error codes]

Rate Limiting

[Description of rate limiting policies]

Endpoints

[Endpoint 1]

  • URL: [endpoint path]
  • Method: [HTTP Method]
  • Description: [Endpoint description]
Request Parameters
  • [parameter1]: [Description] - [Required/Optional]
  • [parameter2]: [Description] - [Required/Optional]
Request Example
[HTTP request example]
Response Example
[JSON response example]
Error Responses
  • Status Code: [Error code]
    • Condition: [When this error occurs]
    • Response Body: [Error response example]

## Component Documentation Template
```markdown
# Component: [Component Name]

## Purpose
[Description of what the component does and why it exists]

## Props/Parameters
- `[prop1]`: [Type] - [Description] - [Required/Optional]
- `[prop2]`: [Type] - [Description] - [Required/Optional]

## Behavior
[Description of component behavior, including states and interactions]

## Usage Examples
```[language]
[Usage example code]

Internal Structure

[Description of internal component organization]

Dependencies

Styling

[Description of styling approach and customization options]

Accessibility Considerations

[Description of accessibility features and considerations]

Testing

[Description of testing approach for this component]

Read the full file on GitHub · 310 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 310 lines · 1,548 tokens per session scan A 9e793681e7cc

Subscribe to this mod's changes

templates-extended is a cursor rule published in the GitHub repository kfnzero/mantis-mcp-server (10 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,548 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.