Skip to content
Agentmart
Submit a tool

ordine-manage-codesnippet

Use when 需要为 Best Practice 添加、更新或删除 Code Snippets(代码片段),提供正确/错误用法的具体代码示例。触发词:管理代码片段、添加code snippet、创建示例代码、编辑代码示例。

Skill by forge-town

IndexedMIT★ 28
Write a review

Chalk Labs

Need help deploying ordine-manage-codesnippet?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/forge-town-ordine-manage-codesnippet

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when 需要为 Best Practice 添加、更新或删除 Code Snippets(代码片段),提供正确/错误用法的具体代码示例。触发词:管理代码片段、添加code snippet、创建示例代码、编辑代码示例。

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ordine-manage-codesnippet

What's inside

Skill name
ordine-manage-codesnippet
Description
Use when 需要为 Best Practice 添加、更新或删除 Code Snippets(代码片段),提供正确/错误用法的具体代码示例。触发词:管理代码片段、添加code snippet、创建示例代码、编辑代码示例。
License
MIT
Instructions
59 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network

Files (1)

  • SKILL.md

SKILL.md (first lines)

# 管理 Code Snippets

## 概述

Code Snippet 是 Best Practice 的子资源,提供详细的代码示例(正确用法、错误用法、边界情况等)。通过 `bestPracticeId` 关联到所属的 Best Practice。

## 通过 CLI

> CLI 当前不直接支持 Code Snippet CRUD。使用 REST API 操作。

## 通过 REST API

### 查看某个 Best Practice 的所有代码片段

```bash
curl -s "http://localhost:9433/api/code-snippets?bestPracticeId=bp_classname_convention" | python3 -m json.tool
```

### 添加/更新代码片段(PUT = upsert)

```bash
curl -X PUT http://localhost:9433/api/code-snippets \
  -H "Content-Type: application/json" \
  -d '{
    "id": "cs_cn_good",
    "bestPracticeId": "bp_classname_convention",
    "title": "✅ 正确用法 — cn() 函数",
    "code": "import { cn } from \"@/lib/utils\"\n\nexport function Button({ variant, className }) {\n  return (\n    <button className={cn(\n      \"px-4 py-2 rounded\",\n      variant === \"primary\" && \"bg-blue-500 text-white\",\n      className\n    )} />\n  )\n}",
    "language": "tsx",
    "sortOrder": 0
  }'
```

### 删除代码片段

```bash
curl -X DELETE "http://localhost:9433/api/code-snippets?id=cs_cn_good"
```

## 数据结构

| 字段 | 类型 | 说明 |
|---|---|---|
| `id` | `string` | 唯一标识 |
| `bestPracticeId` | `string` | 所属 Best Practice ID(必填) |
| `title` | `string \| null` | 片段标题(如 "✅ 正确用法") |
| `code` | `string` | 代码内容 |
| `language` | `string \| null` | 代码语言:`typescript`, `tsx`, `bash`, `json` 等 |
| `sortOrder` | `number` | 排序序号(0 开始) |

## 编写原则

- 至少提供一个 Good 示例和一个 Bad 示例
- `title` 用 ✅/❌ emoji 标识正误
- 代码必须语法正确、可直接使用
- 按 sortOrder 排序:Good 在前,Bad 在后
- `language` 字段便于前端语法高亮

From forge-town/ordine, MIT.

More from forge-town/ordine

Signals

Stars
28
Forks
2
Open issues
0
Last commit (this folder)
Apr 21, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
Website
ordine.ai
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from forge-town

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get ordine-manage-codesnippet running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying ordine-manage-codesnippet?

CallGet help
Cite this page

ordine-manage-codesnippet skill. Agent Mart. https://agentmart.dev/skills/forge-town-ordine-manage-codesnippet (last updated 2026-10-24)