agentleFS
GUOJIE-HONGGUOJIE-HONG/skills/ptns/SKILL.md

ptns

Skill1 starsChanged 56 days agoMITView on GitHub

Prompt to new session — hand the current progress to a fresh session as one short prompt, delivered by session-to-session message on Claude Code, or as a copyable block elsewhere.

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 10 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write a handoff prompt: another session starts with nothing but these words.

    line 9
  2. Distinctive:

    If the user passed an argument, it names the focus of the next session.

    line 11
  3. Very specific:

    Leave out what the next session can find in one lookup (git log, file contents, --help).

    line 25
  4. Distinctive:

    Write it in the language the user is using.

    line 29
  5. Distinctive:

    Keep paths, symbols, and commands exact.

    line 32
  6. Distinctive:

    Keep it short: every line is something the next session would otherwise have to rediscover or ask.

    line 33
  7. Distinctive:

    Start with the working directory the next session should be in.

    line 34
  8. Distinctive:

    Do not ask the user which agent they are on.

    line 46
  9. Very specific:

    Call ListAgents to list the sessions that can be reached.

    line 50
  10. Very specific:

    Ask which one to send to, using AskUserQuestion when there are 2–4 choices.

    line 52
  11. Distinctive:

    If the list is empty, say so in one line and fall back to 3b.

    line 53
  12. Very specific:

    After the user answers, SendMessage the handoff prompt to the chosen session, using the name exactly as ListAgents printed it.

    line 54
  13. Distinctive:

    Never send before the user has answered, and never guess the target session.

    line 57
  14. Distinctive:

    Put the whole prompt in one fenced code block so it copies in one go.

    line 61

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Prompt to New Session

Write a handoff prompt: another session starts with nothing but these words. Write for that cold reader.

If the user passed an argument, it names the focus of the next session; shape the prompt around it.

1. Gather the state

Collect from this conversation, and check the environment for anything it can confirm:

  • The goal, in one sentence.
  • What is done, and how each piece was verified. Mark anything unverified as unverified.
  • The current state: branch, uncommitted changes, anything running or half-finished.
  • The next step, concrete enough to start on.
  • Decisions made and the reason for each, so the next session does not reopen them.
  • Dead ends already tried, and gotchas found the hard way.
  • The exact files, symbols, and commands the next step touches.

Leave out what the next session can find in one lookup (git log, file contents, --help). Keep what it cannot: the reasons, the dead ends, the unwritten conventions.

2. Write the prompt

Write it in the language the user is using.

  • Address the next session directly, in the imperative ("Continue…", "Next, …").
  • Keep paths, symbols, and commands exact.
  • Keep it short: every line is something the next session would otherwise have to rediscover or ask.
  • Start with the working directory the next session should be in.
  • End with the next step and how to tell it is done.

Done when a cold reader could start the next step without asking a single question.

3. Deliver it

First decide which agent is running this skill:

  • Claude Code — the ListAgents and SendMessage tools exist. Follow 3a.
  • Anything else (Codex, agy, or any agent without those tools) — follow 3b.

Do not ask the user which agent they are on; check the tools you actually have.

3a. Claude Code — send it to a live session

  1. Call ListAgents to list the sessions that can be reached.
  2. Show the user the reachable sessions as a short numbered list: name, kind, and working directory when known. Leave out this session itself.
  3. Ask which one to send to, using AskUserQuestion when there are 2–4 choices. Always include a "Do not send — just show me the prompt" option; if the user picks it, fall back to 3b.
  4. If the list is empty, say so in one line and fall back to 3b.
  5. After the user answers, SendMessage the handoff prompt to the chosen session, using the name exactly as ListAgents printed it.
  6. Reply with one line naming which session it went to. Do not reprint the whole prompt.

Never send before the user has answered, and never guess the target session.

3b. Other agents — hand over a copyable block

Put the whole prompt in one fenced code block so it copies in one go.

Reply with the code block and nothing else, unless something the prompt depends on is uncertain; then add one line after the block naming it.

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.