pin message
by jianwei pan
Bookmark conversation history — save, search, show, and delete pinned Q&A turns in Claude Code and Codex CLI.
Free
pin message
Example session with this skill installed
/pin_search
- Read your context and instructions
- Compiled the pin message
I've searched your session history for "CORS configuration" and found the relevant turn. I have pinned it to your local storage as PIN #4.
Pinned Message Added
| Field | Value |
|---|---|
| PIN ID | #4 |
| Timestamp | 2026-11-21 14:15 |
| Session UUID | a19d9146-82bc-4491 |
| Question | How do I configure CORS for a FastAPI backend running on a non-standard port? |
| Storage Path | ~/.claude/pin_message.md |
## [PIN #4] 2026-11-21 14:15 | session a19d9146
<!-- pin-uuid: 5f2e4a12-91cd-4b3a-9e1b-cc82910471f2 -->
**Q:** How do I configure CORS for a FastAPI backend running on a non-standard port?
**A:**
To allow cross-origin requests from your frontend, use the `CORSMiddleware`.
```python
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
app = FastAPI()
origins = [
"http://localhost:3000",
"http://127.0.0.1:3000",
]
app.add_middleware(
CORSMiddleware,
allow_origins=origins,
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
**Next steps**
- Run `/pin_show 4` anytime to dump this snippet back into your chat context.
- Use `/pin_delete 4` if you no longer need this reference.
Connects securely to your tools. The creator never sees your data.
About this skill
Conversation history grows too fast to manage. Critical debug insights, config snippets, and architectural decisions get buried in the scrollback. This skill lets you bookmark specific Q&A turns from your AI CLI sessions into a persistent local file for instant retrieval.
What it does
- Persistent Bookmarking saves the exact user question and agent response to a local markdown file.
- Session-Wide Search lists recent questions so you can cherry-pick specific turns to save after the fact.
- Instant Recall retrieves pinned items by index number or keyword search without leaving the terminal.
- Cross-Platform Storage maintains a unified pin file shared between Claude Code and Codex CLI.
- Atomic Management handles deletions and renumbering of pins with concurrency protection.
How it works
- Trigger the save command using
/pinto capture the most recent turn. - Search older history using
/pin_searchfollowed by a query to find and bookmark past responses. - Review your saved library using
/pin_showto output specific bookmarks directly into your current context. - Prune your collection with
/pin_deleteto remove outdated snippets and auto-renumber the index.
Frameworks & tools
Built for Claude Code and Codex CLI. Uses a Python 3 engine for deterministic parsing of .jsonl transcripts but includes a manual fallback mode for environments without a Python runtime.
Why this beats prompting it yourself
Prompting an agent to "remember this" usually only lasts for the current session's context window. This skill provides a durable, file-based memory that persists across terminal restarts and different projects, ensuring you never lose a hard-won solution.
Use cases
- Save debug insights that solved a complex race condition or environment bug.
- Store config snippets like obscure regex patterns or deployment commands.
- Archive architectural decisions to maintain a record of why a specific pattern was chosen.
- Track follow-up plans generated during a brainstorming session.
Known limitations
Pinned content is stored in a single flat markdown file. Large volumes of pins may become difficult to navigate via terminal list pickers.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 13 days ago
- Free with an Agensi account
- Software
Python
Git
Permissions
What's inside
Creator
jianwei pan
Frequently Asked Questions
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.