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

c4-codec4 代码

Agent Skill

c4-code 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

5,180

周安装

218

GitHub Stars

35,737

下载量

1,814
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill c4-code

简介

c4-code 用于查找、检索和筛选相关信息,支持关键词驱动的任务场景。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。
  • 通过 npx skills add 命令从 GitHub 仓库安装,便于集成到现有工作流。
  • 安装前应检查权限范围和仓库维护状态,防止意外网络请求或文件操作。
  • c4-code 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

C4 Code Level: [Directory Name]

Use this skill when

  • Working on c4 code level: [directory name] tasks or workflows
  • Needing guidance, best practices, or checklists for c4 code level: [directory name]

Do not use this skill when

  • The task is unrelated to c4 code level: [directory name]
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • If detailed examples are required, open resources/implementation-playbook.md.

Overview

  • Name: [Descriptive name for this code directory]
  • Description: [Short description of what this code does]
  • Location: [Link to actual directory path]
  • Language: [Primary programming language(s)]
  • Purpose: [What this code accomplishes]

Code Elements

Functions/Methods

  • functionName(param1: Type, param2: Type): ReturnType

- Description: [What this function does] - Location: [file path:line number] - Dependencies: [what this function depends on]

Classes/Modules

  • ClassName

- Description: [What this class does] - Location: [file path] - Methods: [list of methods] - Dependencies: [what this class depends on]

Dependencies

Internal Dependencies

  • [List of internal code dependencies]

External Dependencies

  • [List of external libraries, frameworks, services]

Relationships

Optional Mermaid diagrams for complex code structures. Choose the diagram type based on the programming paradigm. Code diagrams show the internal structure of a single component.

Object-Oriented Code (Classes, Interfaces)

Use classDiagram for OOP code with classes, interfaces, and inheritance:

---
title: Code Diagram for [Component Name]
---
classDiagram
    namespace ComponentName {
        class Class1 {
            +attribute1 Type
            +method1() ReturnType
        }
        class Class2 {
            -privateAttr Type
            +publicMethod() void
        }
        class Interface1 {
            <<interface>>
            +requiredMethod() ReturnType
        }
    }

    Class1 ..|> Interface1 : implements
    Class1 --> Class2 : uses
### Functional/Procedural Code (Modules, Functions)

For functional or procedural code, you have two options:

**Option A: Module Structure Diagram** - Use `classDiagram` to show modules and their exported functions:

title: Module Structure for [Component Name]


classDiagram namespace DataProcessing { class validators { <<module>> +validateInput(data) Result~Data, Error~ +validateSchema(schema, data) bool +sanitize(input) string } class transformers { <<module>> +parseJSON(raw) Record +normalize(data) NormalizedData +aggregate(items) Summary } class io { <<module>> +readFile(path) string +writeFile(path, content) void } }

transformers --> validators : uses transformers --> io : reads from


**Option B: Data Flow Diagram** - Use `flowchart` to show function pipelines and data transformations:

title: Data Pipeline for [Component Name]


flowchart LR subgraph Input A[readFile] end subgraph Transform B[parseJSON] C[validateInput] D[normalize] E[aggregate] end subgraph Output F[writeFile] end

A -->|raw string| B B -->|parsed data| C C -->|valid data| D D -->|normalized| E E -->|summary| F


**Option C: Function Dependency Graph** - Use `flowchart` to show which functions call which:

title: Function Dependencies for [Component Name]


flowchart TB subgraph Public API processData[processData] exportReport[exportReport] end subgraph Internal Functions validate[validate] transform[transform] format[format] cache[memoize] end subgraph Pure Utilities compose[compose] pipe[pipe] curry[curry] end

processData --> validate processData --> transform processData --> cache transform --> compose transform --> pipe exportReport --> format exportReport --> processData


### Choosing the Right Diagram

| Code Style                       | Primary Diagram                  | When to Use                                             |
| -------------------------------- | -------------------------------- | ------------------------------------------------------- |
| OOP (classes, interfaces)        | `classDiagram`                   | Show inheritance, composition, interface implementation |
| FP (pure functions, pipelines)   | `flowchart`                      | Show data transformations and function composition      |
| FP (modules with exports)        | `classDiagram` with `<<module>>` | Show module structure and dependencies                  |
| Procedural (structs + functions) | `classDiagram`                   | Show data structures and associated functions           |
| Mixed                            | Combination                      | Use multiple diagrams if needed                         |

**Note**: According to the [C4 model](https://c4model.com/diagrams), code diagrams are typically only created when needed for complex components. Most teams find system context and container diagrams sufficient. Choose the diagram type that best communicates the code structure regardless of paradigm.

## Notes

[Any additional context or important information]

Example Interactions

Object-Oriented Codebases

  • "Analyze the src/api directory and create C4 Code-level documentation"
  • "Document the service layer code with complete class hierarchies and dependencies"
  • "Create C4 Code documentation showing interface implementations in the repository layer"

Functional/Procedural Codebases

  • "Document all functions in the authentication module with their signatures and data flow"
  • "Create a data pipeline diagram for the ETL transformers in src/pipeline"
  • "Analyze the utils directory and document all pure functions and their composition patterns"
  • "Document the Rust modules in src/handlers showing function dependencies"
  • "Create C4 Code documentation for the Elixir GenServer modules"

Mixed Paradigm

  • "Document the Go handlers package showing structs and their associated functions"
  • "Analyze the TypeScript codebase that mixes classes with functional utilities"

Key Distinctions

  • vs C4-Component agent: Focuses on individual code elements; Component agent synthesizes multiple code files into components
  • vs C4-Container agent: Documents code structure; Container agent maps components to deployment units
  • vs C4-Context agent: Provides code-level detail; Context agent creates high-level system diagrams

Output Examples

When analyzing code, provide:

  • Complete function/method signatures with all parameters and return types
  • Clear descriptions of what each code element does
  • Links to actual source code locations
  • Complete dependency lists (internal and external)
  • Structured documentation following C4 Code-level template
  • Mermaid diagrams for complex code relationships when needed
  • Consistent naming and formatting across all code documentation

## Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

38.34%
按下载量换算695

Claude

26.94%
按下载量换算489

Cursor

18.32%
按下载量换算332

Gemini CLI

9.9%
按下载量换算180

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills