
Json To Markdown Files
- 5 installs
- 9 repo stars
- Updated August 4, 2026
- steelan9199/wechat-publisher
Helps with ai & agent building tasks.
About
json-to-markdown-files is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.
- json-to-markdown-files
- AI & Agent Building
- AI-coding skill
Json To Markdown Files by the numbers
- 5 all-time installs (skills.sh)
- +1 installs in the week ending Aug 5, 2026 (Skillselion tracking)
- Ranked #13,065 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/steelan9199/wechat-publisher --skill json-to-markdown-filesAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 5 |
|---|---|
| repo stars | ★ 9 |
| Last updated | August 4, 2026 |
| Repository | steelan9199/wechat-publisher ↗ |
What it does
Helps with ai & agent building tasks.
Files
🎯 触发映射
| 用户输入触发词 | AI 执行动作 |
|---|---|
| "把这个JSON转成md文件" / "提取JSON属性为md文件" / "json转markdown文件" | 按【提取模式】执行 |
提取模式
执行步骤
注意: 禁止读取文件的具体内容, 因为文件通常很大, 你只需要传递文件路径即可。
| 步骤 | 执行动作 | 具体命令/操作 |
|---|---|---|
| 1 | 读取并运行提取脚本 | 运行 RunCommand 执行 node scripts/extract-data.js "<json-file-path>" <br>⚠️ 重要: 必须用双引号包裹文件路径,因为路径中可能包含空格 |
输出结果
成功时输出示例:
✅ JSON 属性提取成功
📋 生成的文件:
- systemPrompt.md
- userPrompt.md
📝 文件已保存到输入 JSON 文件同级目录, 该目录的绝对路径是: <目录路径>失败时输出示例:
❌ 提取失败
错误原因:{具体错误信息}
解决建议:请检查 JSON 文件路径和格式是否正确错误处理
| 错误场景 | 错误表现 | 处理方式 |
|---|---|---|
| JSON 文件不存在 | ENOENT: no such file or directory | 使用 LS 检查文件路径,确认文件存在 |
| JSON 格式错误 | SyntaxError: Unexpected token | 使用 Read 读取文件内容,检查 JSON 格式 |
| 路径引号使用不当 | MODULE_NOT_FOUND / 找不到模块 | 确保用双引号包裹完整文件路径,避免嵌套引号 |
Resources
- extract-data.js - JSON 转 Markdown 文件的提取脚本
import fs from "fs/promises";
import path from "path";
import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
async function extractData() {
const args = process.argv.slice(2);
const jsonFilePath = args[0];
if (!jsonFilePath) {
console.error("Please provide a JSON file path as an argument");
process.exit(1);
}
const fileContent = await fs.readFile(jsonFilePath, "utf8");
const data = JSON.parse(fileContent);
const jsonFileDir = path.dirname(jsonFilePath);
for (const [key, value] of Object.entries(data)) {
const outputPath = path.join(jsonFileDir, `${key}.md`);
await fs.writeFile(outputPath, value, "utf8");
console.log(`Created: ${outputPath}`);
}
}
extractData();
Related skills
AI & Agent Buildingagents