AgentSkillsCN

minis

Minis 集成技能,可用于与基于 GitHub 个人资料构建的 AI 人格克隆进行交互。 当用户希望与开发者 Minis(AI 人格克隆)聊天、创建 Minis,或为其撰写评价时,可使用此技能。它不仅提供了 Minis API 的相关知识,还介绍了如何在终端中与 Minis 进行交互。

SKILL.md
--- frontmatter
name: minis
description: |
  Minis integration skill for interacting with AI personality clones built from GitHub profiles.
  This skill should be used when a user wants to chat with, create, or get reviews from developer
  minis (AI personality clones). It provides knowledge of the Minis API and how to interact with
  minis in the terminal.
allowed-tools:
  - Bash(curl:*)
  - Bash(git diff:*)
  - Bash(git status:*)
  - Bash(git log:*)

Minis - Developer Personality Clones in Your Terminal

Minis creates AI personality clones from GitHub profiles. Each mini captures a developer's coding values, communication style, and personality patterns from their public GitHub activity.

Minis API Reference

The Minis backend runs at http://localhost:8000. All endpoints are under /api/.

Create a Mini

code
POST http://localhost:8000/api/minis
Content-Type: application/json
{"username": "<github_username>"}

Returns 202 with a MiniSummary. The pipeline runs in the background. Status values: processing, ready, failed, pending.

List All Minis

code
GET http://localhost:8000/api/minis

Returns an array of MiniSummary objects.

Get Mini Details

code
GET http://localhost:8000/api/minis/<username>

Returns a MiniDetail with fields: username, display_name, avatar_url, bio, spirit_content, system_prompt, values_json, metadata_json, status.

Chat with a Mini

code
POST http://localhost:8000/api/minis/<username>/chat
Content-Type: application/json
{"message": "...", "history": [{"role": "user", "content": "..."}, {"role": "assistant", "content": "..."}]}

Returns a Server-Sent Events (SSE) stream with event: chunk containing text deltas and event: done when complete.

Pipeline Status Stream

code
GET http://localhost:8000/api/minis/<username>/status

SSE stream of pipeline progress events during mini creation.

Health Check

code
GET http://localhost:8000/api/health

Working with Minis

Fetching Mini Personality

To use a mini's personality for code review or conversation, first fetch the mini details:

bash
curl -s http://localhost:8000/api/minis/<username> | jq .

The system_prompt field contains the full personality prompt. The values_json field contains structured engineering values, communication style, and personality patterns.

Collecting Chat Responses from SSE

The chat endpoint returns SSE. To collect the full response:

bash
curl -s -N -X POST http://localhost:8000/api/minis/<username>/chat \
  -H "Content-Type: application/json" \
  -d '{"message": "...", "history": []}' | \
  grep '^data: ' | sed 's/^data: //' | grep -v '^$' | tr -d '\n'

Error Handling

  • 404: Mini not found. Suggest creating it with /mini-create.
  • 409: Mini is not ready yet (still processing). Check status.
  • Connection refused: Backend is not running. Start with mise run dev-backend or cd backend && uv run uvicorn app.main:app --reload --port 8000.