shared-secret-crypto

shared-secret-crypto is a skill for Claude Code, Codex from idea2realClaw/myAgent. It costs 79 tokens per session (1,119 once invoked), scanned A, original, MIT.

A guide for decrypting and encrypting passwords, API keys, and tokens protected with a shared secret using CryptoJS AES.

In plain words
What is it for?
Use it when handling ciphertext from the compatible crypto tool, including decrypting a secret for an API or login and encrypting a new secret for later use.
Why use it?
It lets the agent use protected secrets for a follow-up task without normally exposing or saving the plaintext.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when handling ciphertext from the compatible crypto tool, including decrypting a secret for an API or login and encrypting a new secret for later use.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/idea2realclaw/myagent/shared-secret-crypto
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add idea2realClaw/myAgent --skill shared-secret-crypto
Clone the repo
git clone --depth 1 https://github.com/idea2realClaw/myAgent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for shared-secret-crypto

README.md
[![agentmods](https://agentmods.dev/badge/skills/idea2realclaw/myagent/shared-secret-crypto.svg)](https://agentmods.dev/skills/idea2realclaw/myagent/shared-secret-crypto)
Your own site
<a href="https://agentmods.dev/skills/idea2realclaw/myagent/shared-secret-crypto"><img src="https://agentmods.dev/badge/skills/idea2realclaw/myagent/shared-secret-crypto.svg" alt="Measured on agentmods" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,119 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00079 $0.01119
Opus 5 $0.00039 $0.00560
Sonnet 5 $0.00016 $0.00224
Haiku 4.5 $0.00008 $0.00112

Measured 7d ago against content hash e3cfcec59091, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

shared-secret-crypto scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/crypto_secret.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/shared-secret-crypto/SKILL.md · 117 lines

What it actually says

Shared Secret Crypto

概述

封装与 C:\Users\zhuxi\WorkBuddy\Claw\crypto-tool\crypto.html 兼容的 CryptoJS AES(passphrase) 加解密流程。

用于在本地安全处理密码、API Key、Token 等敏感信息:先解密,再立即用于后续任务,默认不把明文写入文件、脚本默认值、配置文件或公开回复。

适用场景

在以下场景触发本 Skill:

  • 用户提供一段密文,并说明是用 crypto.html 或 CryptoJS AES 加密的
  • 用户提到共享密钥、加密密码、加密后的 API Key、加密后的 Token
  • 用户给出以 U2FsdGVkX1 开头的字符串,要求解密后继续登录、发请求、读取邮箱或调用接口
  • 用户要求先把明文加密,再返回密文以便后续安全传递

工作流程

1. 确认任务类型

先判断当前任务属于以下哪一类:

  • 解密并立即使用:例如读取 Gmail、调用 API、登录网站、连接服务
  • 仅解密查看:例如师父要确认密码或检查某个密文内容
  • 加密后返回:例如把新的密码、API Key 或 Token 加密给师父保存

2. 获取共享密钥

优先读取长期记忆中的共享密钥。

  • 若记忆中已有共享密钥,直接使用
  • 若没有,再向用户索取
  • 除非用户明确要求,否则不要在普通回复中重复输出共享密钥全文

3. 优先使用本地脚本处理

优先调用:

C:\Users\zhuxi\.workbuddy\skills\shared-secret-crypto\scripts\crypto_secret.py

示例:

python C:\Users\zhuxi\.workbuddy\skills\shared-secret-crypto\scripts\crypto_secret.py decrypt --cipher "U2FsdGVkX1..." --key "<共享密钥>"
python C:\Users\zhuxi\.workbuddy\skills\shared-secret-crypto\scripts\crypto_secret.py encrypt --text "my-secret-value" --key "<共享密钥>"

4. 解密后立刻执行后续任务

若用户的真实目标不是“看明文”,而是“用明文做事”,则按以下原则处理:

  • 解密后直接继续执行目标操作
  • 只在确有必要时展示明文
  • 默认只回报任务结果,不回显完整密码、API Key 或 Token
  • 若需要写入配置文件或环境变量,先确认用户意图

5. 严格遵守安全边界

  • 不把明文写入脚本默认值
  • 不把明文写入公开帖子、论坛、网页、报告或普通日志
  • 不把明文存入长期记忆,除非用户明确要求记住该明文
  • 若用户只要求“使用”密钥,则只执行任务,不额外泄露密钥内容

快速判断规则

看到这些信号时,直接想到本 Skill

  • crypto.html
  • CryptoJS.AES.encrypt
  • CryptoJS.AES.decrypt
  • U2FsdGVkX1
  • “共享密钥”
  • “加密后的密码”
  • “加密后的 API key”
  • “帮我先解密再用”

常见工作模式

  1. Gmail 邮件场景

    • 先解密应用专用密码
    • 立即登录 IMAP/SMTP
    • 返回收件箱摘要或发送结果
    • 不把应用专用密码写入 gmail.conf,除非用户明确要求落盘
  2. API 调用场景

    • 先解密 API Key / Token
    • 立即发起请求
    • 返回接口结果摘要
    • 默认隐藏完整凭证
  3. 账号登录场景

    • 先解密密码
    • 仅用于本次登录或自动化操作
    • 不把密码写回脚本默认值或公开页面

资源

脚本

  • scripts/crypto_secret.py
    • crypto.html 兼容的 CryptoJS/OpenSSL 风格 AES(passphrase) 加解密脚本
    • 支持 encrypt / decrypt 两个子命令

参考文档

  • references/workflow.md
    • 收录兼容格式说明、常见调用样例、安全注意事项与故障排查
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 117 lines · 79 tokens per session scan A e3cfcec59091

Subscribe to this mod's changes

shared-secret-crypto is a skill published in the GitHub repository idea2realClaw/myAgent (2 stars, last pushed 18d ago), licensed MIT. It adds 79 tokens to every session and 1,119 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens