Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计通过

optimise-claudeoptimise Claude 命令行

Agent Skill

optimise-claude 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

870

周安装

37

GitHub Stars

公开资料未说明

下载量

305
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:optimise-claude(optimise Claude 命令行)
来源仓库:https://github.com/ralphcrisostomo/nuxt-development-skills
仓库路径:skills/optimise-claude
安装命令:
npx skills add https://github.com/ralphcrisostomo/nuxt-development-skills --skill optimise-claude
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ralphcrisostomo/nuxt-development-skills --skill optimise-claude

简介

optimise-claude 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理时使用。

  • 适用于 Claude 模型微调、提示工程优化与推理链改进等开发场景。
  • 可分析对话历史中的失败案例并生成优化指令模板。
  • 安装命令:npx skills add https://github.com/ralphcrisostomo/nuxt-development-skills --skill optimise-claude;需保留原始训练集分布。
  • 过度优化可能导致过拟合,应平衡泛化能力与专项表现。

SKILL.md

Optimise Claude

Audit AI instruction files for size, relevance, and structure. CLAUDE.md loads every session — bloated files cause Claude to ignore your actual instructions. SKILL.md lines cost tokens on every invocation. Keeping both lean reduces latency, cost, and instruction-following failures.

Scope

All operations scoped to project root ($PWD). Never modify files outside the repository.

When to Use

  • CLAUDE.md is long and Claude ignores rules or asks questions already answered in it
  • SKILL.md files exceed ~120 lines
  • Frontmatter or section order is non-canonical
  • Multiple skills contain duplicated content
  • AGENTS.md has inline instruction blocks >30 lines that should be skills

Workflow

Run phases sequentially. Skip any that don't apply.

Phase 1 — Inventory & Triage

  1. List every CLAUDE.md (root, parent dirs, child dirs), SKILL.md under .agents/skills/, and AGENTS.md
  2. Record: file, line count, has frontmatter (y/n), canonical sections (y/n)
  3. Flag violations per file type (see criteria below)
  4. Output triage table sorted by line count descending
| File | Lines | Type | Violations |
|------|------:|------|------------|

Phase 2 — Audit CLAUDE.md

For each CLAUDE.md, apply the litmus test per line: "Would removing this cause Claude to make mistakes?" If not, cut it.

Keep:

  • Bash commands Claude can't guess
  • Code style rules that differ from defaults
  • Testing instructions and preferred test runners
  • Repo etiquette (branch naming, PR conventions)
  • Architectural decisions specific to the project
  • Dev environment quirks (required env vars)
  • Common gotchas or non-obvious behaviors

Remove:

  • Anything Claude can figure out by reading code
  • Standard language conventions Claude already knows
  • Detailed API docs (link instead)
  • Information that changes frequently
  • Long explanations or tutorials
  • File-by-file codebase descriptions
  • Self-evident practices like "write clean code"

Restructure:

  • Migrate domain-specific workflows and on-demand knowledge to skills (SKILL.md)
  • Split large CLAUDE.md using @path/to/import syntax for logical sections
  • Use emphasis (IMPORTANT, YOU MUST) sparingly — only for rules Claude repeatedly violates
  • If a rule is critical with zero exceptions, suggest converting to a hook instead

Phase 3 — Reduce SKILL.md Token Usage

For each flagged skill:

  • Trim prose to imperative bullets
  • Collapse verbose examples to minimal code fences
  • Remove redundant explanations covered by parent AGENTS.md or CLAUDE.md
  • Remove blank lines between list items
  • Target <=120 lines; if still over, move detail to references/ files with clear pointers
  • For multi-domain skills, split into variant reference files (read only the relevant one)

Phase 4 — Fix Structure & Frontmatter

  • YAML frontmatter: name matches directory (kebab-case), description starts with "Use when"
  • Section order: H1 title → When to Use → Rules/Instructions → Quick Reference → Validation
  • Remove empty or placeholder sections
  • Use imperative voice throughout

Phase 5 — Cross-Skill Deduplication

  1. Identify repeated content blocks across skills (>5 similar lines)
  2. Move shared content to root CLAUDE.md, AGENTS.md, or a shared skill
  3. Replace duplicates with one-line pointer: "See <skill-name> for..."
  4. Reword overlapping description fields so each skill has a unique trigger

Phase 6 — Extract Bloated AGENTS.md Blocks

  1. Scan AGENTS.md for inline instruction blocks >30 lines
  2. Create a new skill at .agents/skills/<name>/SKILL.md
  3. Replace original block with slim pointer + Quick Reference
  4. If a skill sync script exists, run it

Output Format

## Optimisation Report

| File | Before | After | Delta |
|------|-------:|------:|------:|
| ...  |    250 |   110 |  -140 |

Total files audited: N
Total lines saved: N
Content migrated to skills: N

Validation

  • Every CLAUDE.md line passes the "would removing cause mistakes?" test
  • No SKILL.md exceeds 120 lines
  • Every SKILL.md has valid YAML frontmatter with name and description
  • No two skills share >5 identical lines
  • No AGENTS.md has inline instruction blocks >30 lines without a skill pointer
  • Domain-specific content lives in skills, not CLAUDE.md

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.3%
按下载量换算105

Claude

28.37%
按下载量换算87

Cursor

18.6%
按下载量换算57

Gemini CLI

9.93%
按下载量换算30

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills