界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
数据与研究 · SKILL.md

artifact

artifact

【数据与研究】Create and manage artifact.json for task outputs. Use at the START of every task to define planned deliverables before beginning research.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

Bbuda-ai / bunny-agentApache-2.0

技能说明

GitHub

name: artifact description: Create and manage artifact.json for task outputs. Use at the START of every task to define planned deliverables before beginning research.

Artifact Management

Every task must have an artifact.json that declares all output files.

Setup

mkdir -p "tasks/${CLAUDE_SESSION_ID}/reports"
mkdir -p "tasks/${CLAUDE_SESSION_ID}/notes"

cat > "tasks/${CLAUDE_SESSION_ID}/artifact.json" << 'EOF'
{
  "artifacts": []
}
EOF

Adding Artifacts

Read the current file, append new entries, and write it back. Each entry needs:

FieldRequiredDescription
idYesUnique identifier (e.g. research-report)
pathYesFile path relative to /bunny-agent
mimeTypeYesMIME type of the file
descriptionNoBrief description of the content

Example

{
  "artifacts": [
    {
      "id": "research-report",
      "path": "tasks/${CLAUDE_SESSION_ID}/reports/report.md",
      "mimeType": "text/markdown",
      "description": "Main research report with findings and analysis"
    },
    {
      "id": "source-notes",
      "path": "tasks/${CLAUDE_SESSION_ID}/notes/sources.md",
      "mimeType": "text/markdown",
      "description": "Research sources and citations"
    }
  ]
}

Common MIME Types

TypeExtension
text/markdown.md
text/plain.txt
text/html.html
text/csv.csv
application/json.json
application/pdf.pdf

Rules

  • Always call this skill BEFORE starting research
  • Use ${CLAUDE_SESSION_ID} in paths — it auto-resolves in this file
  • Update artifact.json whenever you create a new output file
  • Every task must produce at least one artifact (typically a Markdown report)
我的收藏