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

reverse-engineering-specs逆向工程规格

Agent Skill

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

总安装

857

周安装

35

GitHub Stars

1

下载量

274
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:reverse-engineering-specs(逆向工程规格)
来源仓库:https://github.com/pixel-process-ug/superkit-agents
仓库路径:skills/reverse-engineering-specs
安装命令:
npx skills add https://github.com/pixel-process-ug/superkit-agents --skill reverse-engineering-specs
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/pixel-process-ug/superkit-agents --skill reverse-engineering-specs

简介

reverse-engineering-specs 用于查找逆向工程相关的技术规格与标准文档,适合在 Codex、Claude、Cursor、Gemini CLI 中支撑协议分析或硬件研究。

  • 提供常见格式解析、寄存器映射与通信协议逆向方法参考。
  • 通过关键词或设备类型触发检索,返回结构化技术要点。
  • 使用前应确认数据来源可靠性,避免依赖过时或不完整规范。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Reverse Engineering Specifications

Overview

For brownfield/legacy projects without documentation, this skill generates implementation-free specifications by exhaustively analyzing existing code. The output is a complete behavioral description that drives autonomous development on top of the existing codebase — enabling safe refactoring, feature addition, and modernization.

Key principle: Document actual behavior, including bugs. Bugs are "documented features" until explicitly marked for fixing.

This is a RIGID skill. Every code path must be traced. No assumptions, no skipping.

Phase 1: Exhaustive Code Investigation

[HARD-GATE] Every code path must be traced. No assumptions, no skipping.

Deploy parallel subagents via the Agent tool (up to 500, with subagent_type="Explore") to analyze:

Analysis TargetWhat to DocumentPriority
Entry pointsAll ways the system can be invoked (HTTP, CLI, events, cron)P0
Code pathsEvery branch, loop, conditional, early returnP0
Data flowsInput → transformation → output for every pipelineP0
State mutationsEvery place state is read, written, or deletedP0
Error handlingTry/catch blocks, error codes, fallback behaviorsP0
Side effectsExternal calls, file I/O, database writes, event emissionsP1
ConfigurationEnvironment variables, config files, feature flagsP1
DependenciesExternal services, libraries, APIs consumedP1
ConcurrencyAsync operations, race conditions, locking mechanismsP2
Implicit behaviorConvention-based routing, middleware chains, decoratorsP2

Investigation Strategy Decision Table

Codebase SizeStrategySubagent Count
Small (<50 files)Single-pass full scan5-10
Medium (50-500 files)Module-by-module scan50-100
Large (500+ files)Entry-point-first, then depth scan200-500

STOP after investigation — present a summary of discovered entry points, data flows, and behaviors. Get confirmation before generating specs.

Phase 2: Behavioral Specification Generation

Transform code analysis into implementation-free specs following the spec-writing skill format.

Transformation Rules

RuleExplanation
Strip ALL implementation detailsNo function names, variable names, technology references
Describe WHAT, never HOWObservable behavior only
Document actual behavior (bugs included)Bugs become "current behavior" in specs
Use Given/When/Then formatFor all acceptance criteria
Include data contractsInput shapes, output shapes, invariants
Separate known issuesBugs go in KNOWN_ISSUES.md, not inline

Implementation Detail Stripping

Code ArtifactWhat You SeeWhat You Write in Spec
jwt.verify(token, secret)Token validation with JWT"Credentials are validated against the authentication system"
redis.get(cacheKey)Redis cache lookup"Previously computed results are retrieved from cache"
if (user.role === 'admin')Role check"Privileged operations require administrator access"
res.status(429).json(...)Rate limiting response"Excessive requests receive a rate limit error"
bcrypt.hash(pw, 12)Password hashing"Passwords are stored in a non-reversible format"

STOP after spec generation — run the completeness checklist before organizing.

Phase 3: Specification Organization

Create spec files following the naming convention:

specs/
├── 01-[first-capability].md
├── 02-[second-capability].md
├── ...
├── NN-[last-capability].md
└── KNOWN_ISSUES.md

KNOWN_ISSUES.md Format

# Known Issues

## [Issue Title]
- **Current behavior:** [What actually happens]
- **Expected behavior:** [What should happen, if known]
- **Affected specs:** [Which spec files reference this behavior]
- **Severity:** [Critical | High | Medium | Low]
- **Notes:** [Additional context]

Severity Classification

SeverityCriteriaAction
CriticalData loss, security vulnerability, system crashFix before any new features
HighIncorrect results, broken workflowFix in next release
MediumPoor UX, performance issuePlan for future fix
LowCosmetic, minor inconsistencyFix opportunistically

STOP after organization — present the spec file list and KNOWN_ISSUES for review.

Phase 4: Quality Verification

[HARD-GATE] All checks must pass before this phase is complete.

#CheckQuestionStatus
1Entry pointsAre ALL entry points documented?[]
2Code pathsAre ALL branches and conditionals traced?[]
3Data flowsAre ALL input→output pipelines described?[]
4State mutationsAre ALL state changes captured?[]
5Error handlingAre ALL error paths documented?[]
6Side effectsAre ALL external interactions noted?[]
7Edge casesAre boundary conditions described?[]
8ConcurrencyAre async behaviors documented?[]
9ConfigurationAre ALL config options listed?[]
10DependenciesAre ALL external dependencies identified?[]
11Implementation-freeZero code, tech names, or architecture in specs?[]
12Given/When/ThenAll acceptance criteria in correct format?[]

Concrete Example: Code to Spec Transformation

Code (input — what you analyze):

function checkAuth(req, res, next) {
  const token = req.headers.authorization?.split(' ')[1];
  if (!token) return res.status(401).json({ error: 'No token' });
  try {
    const decoded = jwt.verify(token, process.env.JWT_SECRET);
    req.user = decoded;
    next();
  } catch (e) {
    return res.status(403).json({ error: 'Invalid token' });
  }
}

Spec (output — what you produce):

# Request Authentication

## Job to Be Done
When a request arrives at a protected endpoint, I want to verify the
caller's identity, so I can ensure only authorized users access the system.

## Acceptance Criteria

### Valid Credentials
- Given a request with valid credentials in the authorization header
- When the request is processed
- Then the request proceeds to the next handler
- And the authenticated user identity is available to downstream handlers

### Missing Credentials
- Given a request without credentials
- When the request is processed
- Then a 401 status is returned
- And an error message indicates missing credentials

### Invalid Credentials
- Given a request with invalid or expired credentials
- When the request is processed
- Then a 403 status is returned
- And an error message indicates invalid credentials

## Edge Cases
- Malformed authorization header (missing "Bearer" prefix): treated as missing credentials
- Expired credentials: treated as invalid credentials

## Data Contracts
- Input: Authorization header in "Bearer <credential>" format
- Output on success: User identity object attached to request context
- Output on failure: JSON error response with appropriate status code

Notice: No mention of JWT, middleware, Express, environment variables, or any implementation detail.

Anti-Patterns / Common Mistakes

MistakeWhy It Is WrongWhat To Do Instead
Skipping "boring" code pathsUndocumented behavior causes bugs during refactoringTrace EVERY path, even error handlers
Leaking implementation details into specsDefeats the purpose of behavioral specsStrip all tech names, function names, code
Marking bugs as "correct behavior"Loses the information that it is a bugDocument in KNOWN_ISSUES.md with severity
Skipping async/concurrency analysisRace conditions are the hardest bugs to findDocument all async behavior
Analyzing only happy pathsMost bugs live in error pathsDocument ALL error handling paths
Guessing behavior instead of tracing codeSpec becomes fictionRead every line — no assumptions
Generating specs without user reviewMisunderstandings propagatePresent for review after each phase

Anti-Rationalization Guards

  • [HARD-GATE] Do NOT skip any code path — every branch, conditional, and error handler must be traced
  • [HARD-GATE] Do NOT include ANY implementation details in specs — no code, tech names, or architecture
  • [HARD-GATE] Do NOT mark the completeness checklist as done until ALL 12 items pass
  • Do NOT skip concurrency analysis — even if the code "looks synchronous"
  • Do NOT skip configuration analysis — env vars and feature flags change behavior
  • Do NOT assume behavior from function names — read the actual code
  • Do NOT fix bugs while reverse-engineering — document them in KNOWN_ISSUES.md

Integration Points

SkillRelationship
spec-writingOutput follows spec-writing format; use for audit after generation
autonomous-loopSpecs feed into planning mode for gap analysis
acceptance-testingTests derived from reverse-engineered acceptance criteria
self-learningPopulate memory files with discovered project context
planningAfter specs exist, plan improvements or new features
systematic-debuggingKnown issues inform debugging priorities

Workflow After Reverse Engineering

StepSkillPurpose
1reverse-engineering-specs (this)Generate behavioral specs from code
2spec-writing (audit mode)Verify quality and completeness
3planningIdentify gaps, plan improvements
4autonomous-loopImplement features or fixes with specs as guide

Verification Gate

Before claiming reverse engineering is complete:

  1. VERIFY the completeness checklist (all 12 items) passes
  2. VERIFY zero implementation details in any spec file
  3. VERIFY all acceptance criteria use Given/When/Then format
  4. VERIFY KNOWN_ISSUES.md exists and categorizes all discovered bugs
  5. VERIFY the user has reviewed the spec set and KNOWN_ISSUES

Skill Type

Flexible — Adapt investigation depth and subagent count to codebase size while preserving the exhaustive-investigation and implementation-free output rules. No code paths may be skipped.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.1%
按下载量换算102

Claude

30.4%
按下载量换算83

Cursor

19.42%
按下载量换算53

Gemini CLI

9.39%
按下载量换算26

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills