Skip to content

Skill md key persistence#13

Merged
lws803 merged 3 commits intomainfrom
cursor/skill-md-key-persistence-56ca
Mar 3, 2026
Merged

Skill md key persistence#13
lws803 merged 3 commits intomainfrom
cursor/skill-md-key-persistence-56ca

Conversation

@lws803
Copy link
Owner

@lws803 lws803 commented Mar 2, 2026

Add a 'Key Generation and Persistence' section to SKILL.md to guide agents on storing and locating cryptographic keys persistently.

This new section addresses common agent failures by:

  • Explicitly forbidding ephemeral storage like /tmp.
  • Providing a checklist to locate existing keys before generation.
  • Offering ready-to-run commands that persist keys correctly within the project.
  • Including a lookup table for expected key locations.

Open in Web Open in Cursor 

Agents were generating secrets/key pairs into ephemeral locations
(/tmp, session-scoped folders) and then failing to find them on
later steps. The new section addresses this with:

- A top-level CRITICAL warning to always write inside the project tree
- An explicit 'Locate first' checklist before any keygen
- Ready-to-run commands that pipe output directly to .env
- Ed25519 and RSA-2048 keygen patterns targeting keys/ in the project
- A canonical lookup table mapping each secret type to its expected path
- A note on using process.cwd() for path resolution in code

Co-authored-by: Wilson Ler <lws803@gmail.com>
@cursor
Copy link

cursor bot commented Mar 2, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@vercel
Copy link

vercel bot commented Mar 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenthub Ready Ready Preview, Comment Mar 3, 2026 0:43am

Request Review

Platform already handles persistent key storage, so the detailed
keygen sub-sections are redundant and potentially conflicting.

Co-authored-by: Wilson Ler <lws803@gmail.com>
Co-authored-by: Wilson Ler <lws803@gmail.com>
@lws803 lws803 marked this pull request as ready for review March 3, 2026 00:44
@lws803 lws803 merged commit e02ba5a into main Mar 3, 2026
2 checks passed
@lws803 lws803 deleted the cursor/skill-md-key-persistence-56ca branch March 3, 2026 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants