用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/bdambrosio/Cognitive_workbench --skill as-json命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | as-json |
| description | Identify and extract JSON from mixed content, optionally extracting specific fields |
| type | prompt_augmentation |
Interpret note content as JSON, automatically stripping surrounding text, code fences, and other noise. Optionally extract specific fields.
json ... )Accepts a Note containing JSON (clean or embedded):
{"key": "value"}```json\n{"key": "value"}\n```Here's the data:\n{"key": "value"}{"key": "value"}\nAs you can see...Optional:
Extract JSON from LLM response: {"type":"as-json","target":"$llm_response","out":"$parsed"}
Extract first matching field: {"type":"as-json","target":"$response","args":{"field":"title"},"out":"$title"}
Extract all matching fields: {"type":"as-json","target":"$response","args":{"field":"url","all":true},"out":"$all_urls"}
all: true for all matchesExtract first match:
Input: {"results": [{"url": "https://example.com/1"}, {"url": "https://example.com/2"}]}
field: "url"
Output: https://example.com/1
Extract all matches:
Input: {"results": [{"url": "https://example.com/1"}, {"url": "https://example.com/2"}]}
field: "url", all: true
Output: https://example.com/1\nhttps://example.com/2
Strip code fence:
Input: Here's the data:\n\``json\n{"count": 42}\n``` field: "count" Output:42`
Missing field:
Input: {"name": "Alice"}
field: "email"
Output: note-null
Output ONLY the selected information as shown above, no introductory, explanatory, reasoning, code fences, etc.