cc-usage
查看 Claude Code 的 token 用量统计。按日期×模型维度拆分,支持按天数、项目过滤。触发词:"/cc-usage"、"看看用量"、"token 消耗"、"用量统计
Free to get · One-click to use
查看 Claude Code 的 token 用量统计。按日期×模型维度拆分,支持按天数、项目过滤。触发词:"/cc-usage"、"看看用量"、"token 消耗"、"用量统计
为 GitHub 项目添加 token count badge,自动计算代码库的 token 数量并生成可视化 SVG badge。 当用户需要:展示项目代码规模、添加 token 统计 badge、衡量代码库对 LLM 上下文窗口的占用比例时触发。 适用于任何希望展示代码库规模的 GitHub 项目,支持自定义文件匹配模式、上下文窗口大小和 badge 样式。 --- # Repo Tokens Count Skill 为 GitHub 项目添加自动化的 token 统计 badge,显示代码库规模及其相对于 LLM 上下文窗口的占比。 ## 功能 - 自动计算代码库的 token 数量 - 生成彩色 SVG badge(绿色/黄绿/黄色/红色根据占比自动调整) - 支持自定义统计的文件范围和排除规则 - 支持自定义 LLM 上下文窗口大小 - 通过 GitHub Actions 自动更新 ## 使用方式 用户使用示例: ``` 为当前项目添加 token count badge ``` 或 ``` 给 https://github.com/user/repo 添加 token badge,统计 src 目录下的 ts 文件 ``` ## 工作流程 ### 1. 分析项目结构 - 检查项目类型和主要语言 - 识别源代码目录结构 - 确认 README.md 位置 ### 2. 创建 GitHub Actions Workflow 在 `.github/workflows/tokens.yml` 创建 workflow: ```yaml
skill-sample/ ├─ SKILL.md ⭐ Required: skill entry doc (purpose / usage / examples / deps) ├─ manifest.sample.json ⭐ Recommended: machine-readable metadata (index / validation / autofill) ├─ LICENSE.sample ⭐ Recommended: license & scope (open source / restriction / commercial) ├─ scripts/ │ └─ example-run.py ✅ Runnable example script for quick verification ├─ assets/ │ ├─ example-formatting-guide.md 🧩 Output conventions: layout / structure / style │ └─ example-template.tex 🧩 Templates: quickly generate standardized output └─ references/ 🧩 Knowledge base: methods / guides / best practices ├─ example-ref-structure.md 🧩 Structure reference ├─ example-ref-analysis.md 🧩 Analysis reference └─ example-ref-visuals.md 🧩 Visual reference
More Agent Skills specs Anthropic docs: https://agentskills.io/home
├─ ⭐ Required: YAML Frontmatter (must be at top) │ ├─ ⭐ name : unique skill name, follow naming convention │ └─ ⭐ description : include trigger keywords for matching │ ├─ ✅ Optional: Frontmatter extension fields │ ├─ ✅ license : license identifier │ ├─ ✅ compatibility : runtime constraints when needed │ ├─ ✅ metadata : key-value fields (author/version/source_url...) │ └─ 🧩 allowed-tools : tool whitelist (experimental) │ └─ ✅ Recommended: Markdown body (progressive disclosure) ├─ ✅ Overview / Purpose ├─ ✅ When to use ├─ ✅ Step-by-step ├─ ✅ Inputs / Outputs ├─ ✅ Examples ├─ 🧩 Files & References ├─ 🧩 Edge cases ├─ 🧩 Troubleshooting └─ 🧩 Safety notes
Skill files are scattered across GitHub and communities, difficult to search, and hard to evaluate. SkillWink organizes open-source skills into a searchable, filterable library you can directly download and use.
We provide keyword search, version updates, multi-metric ranking (downloads / likes / comments / updates), and open SKILL.md standards. You can also discuss usage and improvements on skill detail pages.
Quick Start:
Import/download skills (.zip/.skill), then place locally:
~/.claude/skills/ (Claude Code)
~/.codex/skills/ (Codex CLI)
One SKILL.md can be reused across tools.
Everything you need to know: what skills are, how they work, how to find/import them, and how to contribute.
A skill is a reusable capability package, usually including SKILL.md (purpose/IO/how-to) and optional scripts/templates/examples.
Think of it as a plugin playbook + resource bundle for AI assistants/toolchains.
Skills use progressive disclosure: load brief metadata first, load full docs only when needed, then execute by guidance.
This keeps agents lightweight while preserving enough context for complex tasks.
Use these three together:
Note: file size for all methods should be within 10MB.
Typical paths (may vary by local setup):
One SKILL.md can usually be reused across tools.
Yes. Most skills are standardized docs + assets, so they can be reused where format is supported.
Example: retrieval + writing + automation scripts as one workflow.
Some skills come from public GitHub repositories and some are uploaded by SkillWink creators. Always review code before installing and own your security decisions.
Most common reasons:
We try to avoid that. Use ranking + comments to surface better skills: