跳到正文
cccskills
免费在 GitHub 公开

saving-workspace-context

Automatically persist useful context — research, decisions, learnings, templates — to workspace files so knowledge survives across conversations.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md4.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Saving Workspace Context

You are an agent that builds institutional memory. As you work, watch for information that should outlast this conversation and save it to the workspace so future sessions start smarter.

At the Start of Every Conversation

Load existing context before doing anything else:

  1. Check for a context/ directory — read any files relevant to the current task
  2. Check for a product/project context file (e.g. .agents/product-marketing-context.md, PROJECT.md, or similar) for positioning, goals, and constraints
  3. Check for any domain-specific directories the project uses (e.g. companies/, docs/, research/)
  4. Check for templates or reusable assets that might apply

If the project doesn't have a context/ directory yet, that's fine — create one when you first have something worth saving.

During a Conversation

Watch for information that should be persisted. Save it as soon as you recognize it — don't wait until the end.

SignalWhere to Save
Product details, positioning, ICP changesProject context file (e.g. .agents/product-marketing-context.md)
Research on a company, person, or topiccontext/{topic-slug}.md or a domain-specific directory
Strategy decisions or learningscontext/{topic}.md with dated entries
Reusable templates or boilerplatetemplates/ or a project-appropriate location
A repeatable multi-step workflowNew skill in .cursor/skills/ or .agents/skills/
A persistent constraint or conventionNew rule in .cursor/rules/

How to Save

  • Don't ask permission for small context saves — just do it and mention what you saved
  • Do ask permission before creating new skills or rules (they affect all future conversations)
  • Append, don't overwrite when adding to existing context files — use dated entries
  • Use clear file names — future you (or a future agent) needs to find this by scanning a directory listing

At the End of a Conversation

Before finishing, ask yourself:

  • Did I learn anything about this project that isn't captured in workspace files?
  • Did I do research that would be painful to redo?
  • Did I discover a pattern that should become a skill or rule?
  • Did I create content that could be templated for reuse?

If yes to any, save it before the conversation ends.

File Formats

Context Files (context/{slug}.md)

# {Topic}

## {Date} — {Brief title}

{What was learned, decided, or discovered}

## {Earlier date} — {Earlier entry}

{Previous context}

Keep entries reverse-chronological (newest first). Date your entries so they age gracefully.

Project Context File

A single file capturing the current state of the project's identity:

# {Project Name} — Context

- **What it is:** {one line}
- **Who it's for:** {target audience}
- **Key differentiator:** {why this vs alternatives}
- **Current stage:** {pre-launch / beta / growth / etc.}
- **Current goals:** {what matters right now}

## Positioning

{How we talk about the product}

## Constraints

{Things to always keep in mind}

When to Create a New Skill

Create a skill when you find yourself doing the same multi-step workflow more than once:

  • Researching a topic (check multiple sources, synthesize, save findings)
  • Preparing for a meeting or call (pull context, recent history, prep talking points)
  • Running a campaign or process (select targets, personalize, track progress)

When to Create a New Rule

Create a rule when a persistent constraint should apply across all conversations:

  • Voice/tone guidelines that get refined through feedback
  • Naming conventions or file organization patterns
  • Domain-specific constraints ("never mention X", "always check Y first")

Rules

  • Be proactive — save context without being asked, but mention what you saved
  • Keep files scannable — future agents will skim directory listings to find context
  • Don't save trivial information — if it's easily re-derived, skip it
  • Date everything that accumulates over time
  • Check for existing files before creating new ones to avoid duplicates

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use Cursor's browser aria snapshots to audit a page for accessibility issues — missing labels, broken tab order, contrast, and ARIA misuse.

中文简介正在准备中。当前显示原文说明。

0xAidan/polymarket-bot-test42026年9月4日 更新

Add PostHog analytics to a web application, including event tracking, page views, feature flags, and session replay.

中文简介正在准备中。当前显示原文说明。

0xAidan/polymarket-bot-test42026年9月4日 更新

Generate OpenAPI/Swagger documentation for an API, including endpoint schemas, request/response types, and interactive docs UI.

中文简介正在准备中。当前显示原文说明。

0xAidan/polymarket-bot-test42026年9月4日 更新

Add authentication to a web application using NextAuth.js (Auth.js), including OAuth providers, session management, and protected routes.

中文简介正在准备中。当前显示原文说明。

0xAidan/polymarket-bot-test42026年9月4日 更新

Dockerize an application with a production-ready Dockerfile, docker-compose setup, and .dockerignore.

中文简介正在准备中。当前显示原文说明。

0xAidan/polymarket-bot-test42026年9月4日 更新

Set up Playwright end-to-end testing in a project, including test configuration, example tests, and CI integration.

中文简介正在准备中。当前显示原文说明。

0xAidan/polymarket-bot-test42026年9月4日 更新

查看 0xAidan 的全部技能

报告此技能的问题