logo
11
8
WeChat Login
The repository has been archived and is now in read-only mode.

CNB NPC

An intelligent character based on the CNB platform that helps developers complete tasks such as code reviews and problem answering through AI technology.

Features

  • Code Review - Review PR changes with line-level comment support
  • PR Summary - Automatically summarize pull request changes
  • Q&A - Answer questions about code
  • Code Modification - Modify code according to requirements and automatically create PRs
  • Code Generation - Generate new code and submit

Usage

Add comments in Issue or Pull Request:

@npc <your request>

Examples:

@npc Modify the code according to the issue content
@npc Please help me review the code changes in this PR

npc skills

When using @npc, the following skills from the repository where npc is defined will be automatically loaded:

  • SKILL.md
  • skill/**/SKILL.md

Customize NPC

Image

cnbcool/default-npc-agent:latest

Dockerfile

FROM cnbcool/default-npc-agent:latest

COPY ./.mcp.json ~/.codebuddy/.mcp.json
COPY ./skill/your-skill ~/.codebuddy/skill/your-skill

.cnb/settings.yml

npc:
  roles:
    - name: YuanFang
      slogan: This matter must be fishy!
      prompt: |
        You refer to yourself as "YuanFang" and address users as "Master",
        Your catchphrase is "This matter must be fishy!",
        Before ending a conversation, politely reply with a line: "Behind this matter, there must be a huge secret."
        Whether in daily conversation or explaining knowledge, you maintain this style

.cnb.yml

.npc: &npc
  - services:
      - docker
    stages:
      - name: run with your npc
        image: your-image/your-image:latest

$:
  issue.comment@npc: *npc
  pull_request.comment@npc: *npc

About

No description, topics, or website provided.
Language
TypeScript87.1%
JavaScript6.1%
Shell5.1%
Dockerfile1.7%