ai-instructions: Skill for Cursor

.cursor/skills/handoff/SKILL.md

handoff is a skill for Cursor from lsampaioweb/ai-instructions. It costs 133 tokens per session (1,356 once invoked), scanned A, original, MIT.

A set of rules for building REST web endpoints in Spring Boot, a Java framework for web services. It defines controller names, request and response records, HTTP status codes, validation, and URL handling.

In plain words
What is it for?
Use it when creating or changing REST controllers, request objects, response objects, and endpoint behaviour.
Why use it?
It keeps API responses and error handling consistent across features. It also separates HTTP details from business rules and catches invalid request data early.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is lsampaioweb/ai-instructions's own configuration. It tells Cursor how to work on ai-instructions itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-instructions configures →

Reuse

Borrowing it

Nothing to install: this file belongs to lsampaioweb/ai-instructions. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/lsampaioweb/ai-instructions/main/.cursor/skills/handoff/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/lsampaioweb/ai-instructions

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for handoff

README.md
[![agentmods](https://agentmods.dev/badge/skills/lsampaioweb/ai-instructions/handoff/github.svg)](https://agentmods.dev/skills/lsampaioweb/ai-instructions/handoff)
Your own site
<a href="https://agentmods.dev/skills/lsampaioweb/ai-instructions/handoff"><img src="https://agentmods.dev/badge/skills/lsampaioweb/ai-instructions/handoff/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for handoff

Your own site · 80×15
<a href="https://agentmods.dev/skills/lsampaioweb/ai-instructions/handoff"><img src="https://agentmods.dev/badge/skills/lsampaioweb/ai-instructions/handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 133 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,356 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00133 $0.01356
Opus 5.5 $0.00053 $0.00542
Sonnet 5.5 $0.00027 $0.00271
Haiku 4.5 $0.00013 $0.00136

Measured 1mo ago against content hash 87d3f03f20f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

handoff 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 1mo 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/skills/handoff/SKILL.md · 102 lines

How it starts

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

Handoff

Long threads die two deaths: the context window fills up, or the human walks away for a week. Either way, restarting from nothing costs hours of re-explaining, and worse, silently loses decisions, so the next session relitigates settled questions and repeats rejected approaches. A good handoff document is the difference between "continue" and "start over".

The core insight: a handoff is a state snapshot, not a story. The next reader does not need to know what happened in what order; they need to know where things stand, what's been ruled out, and what's next. The number one failure mode of conversation summaries is chronological narration ("First we discussed X, then we explored Y..."), which buries the actionable state under a play-by-play nobody needs.

Step 1: Identify the recipient

The document differs by who receives it. Infer from context or ask one question:

  • New AI session (most common): optimized for pasting into a fresh chat. Includes working preferences, exact constraints, and ends with a paste-ready opening prompt.
  • Human colleague: more background on why the work exists, less instruction-style framing, no opening prompt.
  • Future self: leans on reminders of intent ("you chose X because the client hated Y") since they'll half-remember everything.

Step 2: Mine the conversation for what actually transfers

Re-read the whole thread and extract, in priority order:

  1. Decisions and their reasons. Not just "we chose PostgreSQL" but "chose PostgreSQL over SQLite because of concurrent writes". Without the reason, the next session reopens the decision.
  2. Dead ends. Approaches tried and rejected, and why. This is the most valuable and most-omitted section of any handoff: it is the only thing standing between the next session and re-exploring every failed path. If something was rejected for a fixable reason, say so.
  3. Corrections the user made. Every time the user pushed back ("shorter", "not that tone", "the deadline is Friday not Monday"), that correction is a preference paid for once and must never be paid for again. Sweep the thread specifically for these; they hide in throwaway lines.
  4. Constraints stated once. A requirement mentioned in message 3 and never repeated still governs everything. Recency is not importance. This is exactly what naive summaries lose.
  5. Artifact state. Every file, draft, or deliverable produced: its name, where it lives, and its status (final / draft / superseded). When there were multiple versions, only the current one and what distinguishes it. Never make the reader guess which version is live.
  6. Open items. What is in progress, what is blocked and on what, and the single concrete next step.

Read the full file on GitHub · 102 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. 1mo ago First seen · 102 lines · 133 tokens per session scan A 87d3f03f20f9

Subscribe to this mod's changes

handoff is a skill published in the GitHub repository lsampaioweb/ai-instructions (1 stars, last pushed 5d ago), licensed MIT. It adds 133 tokens to every session and 1,356 once invoked, about $0.0005 per session on Opus 5.5. 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-09-20.

Related

handoff compared with skills from other repositories

handoff next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
handofflsampaioweb/ai-instructionsSkill15d agoMITA133Cursor
wxjava-api-contributorbinarywang/WxJavaSkill33k4d agoApache-2.0A68Codex
azure-communication-callautomation-javamicrosoft/skillsSkill3.2kyesterdayMITA49Claude Code
azure-communication-chat-javamicrosoft/skillsSkill3.2kyesterdayMITA41Claude Code
azure-communication-common-javamicrosoft/skillsSkill3.2kyesterdayMITA35Claude Code
azure-communication-sms-javamicrosoft/skillsSkill3.2kyesterdayMITA36Claude Code
java-coding-standardshashgraph-online/awesome-codex-pluginsSkill1.5kyesterdayApache-2.0A35Claude Code, Codex