AgentSkillsCN

bank

按主题分类存储可复用的内容(想法、代码片段、大纲、代码模式),并在写作或编码时加以利用。当用户希望将有价值的内容保存下来以备日后复用、调取已存储的内容,或浏览可用的主题时,可使用此技能。

SKILL.md
--- frontmatter
name: bank
description: Banks and retrieves reusable content (ideas, snippets, outlines, code patterns) organized by topic. Use when writing or coding to store valuable content for future reuse, retrieve previously banked content, or browse available topics.

Content Bank

Bank and retrieve reusable content for writing and coding—ideas, snippets, outlines, and code patterns—organized by topic.

Capabilities

CapabilityDescriptionDetails
StoreSave reusable content into the bankSee storing.md
RetrieveSearch and get previously banked contentSee retrieving.md
ListBrowse topics and contentSee listing.md

When to Use

Proactively offer to store when detecting:

  • Well-crafted paragraphs with standalone value
  • Structural patterns that could template future writing
  • Useful code patterns worth preserving
  • Legacy code being replaced that has reuse value

Proactively offer to retrieve when:

  • Starting a new piece where relevant banked content may exist
  • Facing a problem that might have a banked solution

Auto-Initialization

Before any store/retrieve/list operation, check if content-bank/topics.md exists. If not, create it with the initial template to set up the content bank structure.

Content Bank Structure

code
content-bank/
├── topics.md           # Topic index
└── {topic}/            # One folder per topic (kebab-case)
    ├── ideas.md        # Concepts and themes
    ├── snippets.md     # Reusable fragments
    └── outlines.md     # Structural frameworks

Entry Format

markdown
### {Title}
- **Type**: writing | code
- **Source**: {file path, URL, or "original"}
- **Why useful**: {one sentence on reuse value}
- **Tags**: {comma-separated keywords}
- **Content**:
  > {text content or code block}

Quick Reference

  • Store: Bank this about {topic}
  • Retrieve: Find {topic} or What do I have on {keywords}?
  • List: Show topics or Browse {topic}