Token导航 LogoToken导航

Agent Skill · 研究检索

explain-code(解释一下代码)

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

explain-code 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 32,076。

总安装 2,590周安装 109GitHub Stars 163下载 907核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/flora131/atomic --skill explain-code

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

explain-code 用于查找、检索和筛选相关信息。适合在 Codex、Claude、Cursor、Gemini CLI 中按来源线索定位候选结果。通过 npx skills add 命令从指定仓库安装并使用。需确认权限范围和维护状态,注意是否触发联网或文件读写。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/explain-code

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/flora131/atomic --skill explain-code;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

explain-code 怎么安装?

在终端执行 npx skills add https://github.com/flora131/atomic --skill explain-code。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

explain-code 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

explain-code 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

explain-code 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

explain-code 用的人多吗?

公开数据是累计安装 2,590 次,近一周安装 109 次,下载 907 次,GitHub 163 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

explain-code 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
explain-code

解释一下代码 · 本页

2,590163接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Analyze and Explain Code Functionality

Available Tools

  • Playwright CLI (playwright-cli): Use to retrieve external documentation, browse web content, and extract data from documentation sites, forums, and GitHub repositories — especially useful for understanding third-party dependencies and their APIs. Invoke via the /playwright-cli skill or run npx playwright-cli commands directly.

<EXTREMELY_IMPORTANT>

  • PREFER to use the playwright-cli (refer to playwright-cli skill) OVER web fetch/search tools

- ALWAYS load the playwright-cli skill before usage with the Skill tool. - ALWAYS ASSUME you have the playwright-cli tool installed (if the playwright-cli command fails, fallback to npx playwright-cli). </EXTREMELY_IMPORTANT>

Web Fetch Strategy (token-efficient order)

When you need external documentation about a library, framework, or API, use the playwright-cli skill (or curl) and apply these techniques in order — stop as soon as you have what you need:

  1. Check /llms.txt first — Many modern docs sites publish an AI-friendly index at /llms.txt (spec: llmstxt.org). Try curl https://<site>/llms.txt before anything else; it often links directly to the most relevant pages in plain text.
  2. Request Markdown via Accept: text/markdown — For any HTML page, try curl <url> -H "Accept: text/markdown" first. Sites behind Cloudflare with Markdown for Agents will return pre-converted Markdown (look for content-type: text/markdown and the x-markdown-tokens header), which is far cheaper than raw HTML.
  3. Fall back to HTML parsing — If neither above yields usable content, navigate the page with playwright-cli to extract the rendered DOM, or curl the raw HTML and parse locally.

Persist useful findings to research/web/: When you fetch a document worth keeping for future sessions (API references, SDK guides, troubleshooting docs), save it to research/web/<YYYY-MM-DD>-<kebab-case-topic>.md with a short header noting the source URL and fetch date. Check this directory first before re-fetching.

Instructions

Follow this systematic approach to explain code: $ARGUMENTS

  1. Code Context Analysis

- Identify the programming language and framework - Understand the broader context and purpose of the code - Identify the file location and its role in the project - Review related imports, dependencies, and configurations

  1. High-Level Overview

- Provide a summary of what the code does - Explain the main purpose and functionality - Identify the problem the code is solving - Describe how it fits into the larger system

  1. Code Structure Breakdown

- Break down the code into logical sections - Identify classes, functions, and methods - Explain the overall architecture and design patterns - Map out data flow and control flow

  1. Line-by-Line Analysis

- Explain complex or non-obvious lines of code - Describe variable declarations and their purposes - Explain function calls and their parameters - Clarify conditional logic and loops

  1. Algorithm and Logic Explanation

- Describe the algorithm or approach being used - Explain the logic behind complex calculations - Break down nested conditions and loops - Clarify recursive or asynchronous operations

  1. Data Structures and Types

- Explain data types and structures being used - Describe how data is transformed or processed - Explain object relationships and hierarchies - Clarify input and output formats

  1. Framework and Library Usage

- Explain framework-specific patterns and conventions - Describe library functions and their purposes - Explain API calls and their expected responses - Clarify configuration and setup code - Use the playwright-cli skill (following the Web Fetch Strategy above) to look up external library documentation when needed

  1. Error Handling and Edge Cases

- Explain error handling mechanisms - Describe exception handling and recovery - Identify edge cases being handled - Explain validation and defensive programming

  1. Performance Considerations

- Identify performance-critical sections - Explain optimization techniques being used - Describe complexity and scalability implications - Point out potential bottlenecks or inefficiencies

  1. Security Implications

- Identify security-related code sections - Explain authentication and authorization logic - Describe input validation and sanitization - Point out potential security vulnerabilities

  1. Testing and Debugging

- Explain how the code can be tested - Identify debugging points and logging - Describe mock data or test scenarios - Explain test helpers and utilities - Use playwright-cli to reproduce browser interactions and validate frontend behavior when applicable

  1. Dependencies and Integrations

- Explain external service integrations - Describe database operations and queries - Explain API interactions and protocols - Clarify third-party library usage

Explanation Format Examples:

For Complex Algorithms:

This function implements a depth-first search algorithm:

1. Line 1-3: Initialize a stack with the starting node and a visited set
2. Line 4-8: Main loop - continue until stack is empty
3. Line 9-11: Pop a node and check if it's the target
4. Line 12-15: Add unvisited neighbors to the stack
5. Line 16: Return null if target not found

Time Complexity: O(V + E) where V is vertices and E is edges
Space Complexity: O(V) for the visited set and stack

For API Integration Code:

This code handles user authentication with a third-party service:

1. Extract credentials from request headers
2. Validate credential format and required fields
3. Make API call to authentication service
4. Handle response and extract user data
5. Create session token and set cookies
6. Return user profile or error response

Error Handling: Catches network errors, invalid credentials, and service unavailability
Security: Uses HTTPS, validates inputs, and sanitizes responses

For Database Operations:

This function performs a complex database query with joins:

1. Build base query with primary table
2. Add LEFT JOIN for related user data
3. Apply WHERE conditions for filtering
4. Add ORDER BY for consistent sorting
5. Implement pagination with LIMIT/OFFSET
6. Execute query and handle potential errors
7. Transform raw results into domain objects

Performance Notes: Uses indexes on filtered columns, implements connection pooling
  1. Common Patterns and Idioms

- Identify language-specific patterns and idioms - Explain design patterns being implemented - Describe architectural patterns in use - Clarify naming conventions and code style

  1. Potential Improvements

- Suggest code improvements and optimizations - Identify possible refactoring opportunities - Point out maintainability concerns - Recommend best practices and standards

  1. Related Code and Context

- Reference related functions and classes - Explain how this code interacts with other components - Describe the calling context and usage patterns - Point to relevant documentation and resources

  1. Debugging and Troubleshooting

- Explain how to debug issues in this code - Identify common failure points - Describe logging and monitoring approaches - Suggest testing strategies

Language-Specific Considerations:

JavaScript/TypeScript:

  • Explain async/await and Promise handling
  • Describe closure and scope behavior
  • Clarify this binding and arrow functions
  • Explain event handling and callbacks

Python:

  • Explain list comprehensions and generators
  • Describe decorator usage and purpose
  • Clarify context managers and with statements
  • Explain class inheritance and method resolution

Java:

  • Explain generics and type parameters
  • Describe annotation usage and processing
  • Clarify stream operations and lambda expressions
  • Explain exception hierarchy and handling

C#:

  • Explain LINQ queries and expressions
  • Describe async/await and Task handling
  • Clarify delegate and event usage
  • Explain nullable reference types

Go:

  • Explain goroutines and channel usage
  • Describe interface implementation
  • Clarify error handling patterns
  • Explain package structure and imports

Rust:

  • Explain ownership and borrowing
  • Describe lifetime annotations
  • Clarify pattern matching and Option/Result types
  • Explain trait implementations

Remember to:

  • Use clear, non-technical language when possible
  • Provide examples and analogies for complex concepts
  • Structure explanations logically from high-level to detailed
  • Include visual diagrams or flowcharts when helpful
  • Tailor the explanation level to the intended audience
  • Use the playwright-cli skill (following the Web Fetch Strategy above) to look up external library documentation when encountering unfamiliar dependencies, and for live browser inspection when static code analysis is not enough

平台分布

Codex

37.57%
按下载量换算341

Claude

29.88%
按下载量换算271

Cursor

19.47%
按下载量换算177

Gemini CLI

8.22%
按下载量换算75

安全审计

Gen Agent Trust Hub

可疑

Socket

可疑

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills