Token导航 LogoToken导航

Agent Skill · 研究检索

paper-test(纸质测试)

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

paper-test 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 59,221。

总安装 392周安装 16GitHub Stars 23下载 127核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/camoa/claude-skills --skill paper-test

这个 Skill 是做什么的

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

paper-test 用于辅助测试设计、自动化测试、用例整理和回归验证,适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。它能帮助设计和执行各种类型的测试用例。可通过 npx skills add 命令从指定 GitHub 仓库安装并使用。

使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑。paper-test 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/paper-test

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

paper-test 怎么安装?

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

paper-test 支持哪些 AI 工具?

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

paper-test 需要什么权限?

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

paper-test 是免费的吗?

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

paper-test 用的人多吗?

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

paper-test 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 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调用外部服务未明确有提醒
paper-test

纸质测试 · 本页

39223需要联网未明确通过

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

SKILL.md 原文

Paper Test

Systematically test code by mentally executing it line-by-line with concrete values.

Routing — Choose the Right Approach

Target SizeApproachWhy
< 50 linesQuick trace (Steps 1–7 below)Fast, inline, sufficient for small code
50–300 linesStructured 3-phase (below)One agent, all 3 perspectives, sequential — thorough without coordination overhead
300+ lines or security-critical/code-paper:test-team (3 agents)Context pressure justifies splitting. Cross-challenge debate catches what one agent misses.
Skill/command/agent files/code-paper:test-teamDifferent lenses genuinely find different things for instruction-based testing

If the user asks for "paper test" without specifying, read the target files, count lines, and recommend the appropriate approach. For 50–300 lines, use the Structured 3-Phase mode below. Only recommend /test-team for 300+ lines, explicit "test team" requests, or security-critical code.

Structured 3-Phase Mode (50–300 lines)

Read references/structured-3-phase.md for the full methodology. It runs Phase A (happy path), Phase B (edge cases, 6 categories), Phase C (adversarial, 5 categories), and Phase D (self-review) sequentially in one agent.


Quick Trace Mode (< 50 lines)

For small code, skip the structured phases. Just trace with concrete values.

When to Use

  • "Paper test this code" / "Trace this code" / "Test without running"
  • "Find bugs in this code" / "Check for edge cases"
  • "Validate this implementation" / "Review this logic"
  • "Paper test this skill" / "Test this command" / "Validate this agent"
  • "Check this config" / "Verify this YAML" / "Trace this prompt"
  • Before deploying changes
  • Debugging without a debugger
  • Reviewing unfamiliar or AI-generated code
  • Validating complex logic (loops, conditionals, recursion)
  • Reviewing skills, commands, agents, or plugin configs

Method

Follow code logic with concrete test cases to find:

  1. Potential issues - Bugs, wrong assumptions, edge cases
  2. Missing code - What's needed but not written to achieve intent

NOT just reading - actually run the code in your head with real values.

Critical: How AI Should Verify

NEVER assume or guess - Use your tools to verify every claim:

Verifying External Dependencies

When code calls external methods/services:

  1. Use Read tool to check actual source files: Read: src/Service/UserService.php → Find loadByEmail() method → Note: Returns User|null, throws InvalidArgumentException if empty
  2. Use Grep tool to find method definitions: Grep: "public function loadByEmail" in src/ → Verify method exists and signature
  3. Check interfaces for injected services: Read: vendor/.../LoggerInterface.php → Verify info() method signature

DO NOT write "Assume method exists" - Actually verify or mark as UNVERIFIED RISK.

Verifying Code Contracts

When code has relationships (extends, implements, uses):

  1. Read parent/base classes: Read: src/Plugin/ActionBase.php → Check for abstract methods → Verify parent constructor signature
  2. Read interfaces: Read: src/Handler/HandlerInterface.php → List all required methods → Note exact signatures
  3. Check service definitions: Read: config/services.yml Read: modulename.services.yml → Verify service ID exists → Check tags if using service collectors

When You Cannot Verify

If source is unavailable (external package, closed-source):

DEPENDENCY CHECK: $externalApi->fetchData()
  VERIFICATION: Unable to read source
  RISK: Cannot verify method exists or return type
  RECOMMENDATION: Add runtime checks for null/exceptions

Mark as risk - don't assume it works.

Verifying Configuration Dependencies

When code reads config values (YAML, JSON,.env, services):

  1. Find the config source — Read the actual file
  2. Verify key exists — Does the key the code reads actually exist?
  3. Verify value type — Does the value match what code expects?
  4. Verify defaults — If config missing, is there a sensible fallback?
CONFIG CHECK: $this->config('my_module.settings')->get('api_timeout')
  Source: config/install/my_module.settings.yml
  Key exists?  YES / NO
  Value:       30
  Type match:  integer (code expects int) — MATCH / MISMATCH
  Default:     NULL if missing — RISK: no fallback

Also check: services.yml (service IDs, arguments), routing.yml (route names), schema.yml (structure matches config).


Quick Reference

Test TypeWhenOutput
Happy PathFirst testVerify correct flow
Edge CasesAfter happy pathFind boundary issues
Error CasesLastVerify error handling
Contract VerificationAlwaysCheck dependencies

Paper Testing Workflow

When user provides code to test:

Step 1: Define Test Scenarios

Pick concrete input values. Start with happy path, then edge cases.

SCENARIO: [Description of what we're testing]
INPUT:
  $variable1 = [concrete value]
  $variable2 = [concrete value]
  [initial state]

Step 2: Trace Line by Line

Follow each line. Write the variable state after execution.

Line [N]: [code statement]
         → [variable] = [new value]
         → [state change description]

Step 2b: Track Data Flow Across Boundaries

At every function call, method return, or data handoff, track type transformations:

DATA FLOW: [source] → [destination]
  Input type:  [what was passed]
  Output type: [what was returned]
  Coercion:    [any implicit type change]
  Risk:        [what breaks if type is wrong]

Watch for:

  • Implicit coercion — string "30" used as int, null used as empty string
  • Container types — method returns array but code treats as single object
  • Serialization boundaries — object → JSON → object (properties may change case, nulls may disappear)
  • Framework wrapping — raw value wrapped in Response, FieldItemList, Result objects

Step 3: Follow Every Branch

At each conditional, note which branch is taken and why.

Line [N]: if ([condition])
         → [variable1]=[value], [variable2]=[value]
         → [evaluation] = [true/false]
         → TAKES: [if branch / else branch] (lines X-Y)

Step 4: Track Loop Iterations

For loops, trace EACH iteration with index and values.

Line [N]: foreach ([collection] as [item])

Iteration 1: $key=[value], $item=[value]
  Line [N+1]: [statement]
           → [state change]

Iteration 2: $key=[value], $item=[value]
  Line [N+1]: [statement]
           → [state change]

Loop ends. Final state: [describe]

Step 5: Verify External Dependencies

For EVERY external call (methods, services, APIs), verify:

DEPENDENCY CHECK: [service/method name]

Location: [file path or interface]
Method signature: [actual signature]
Returns: [actual return type and values]
Throws: [exceptions, when]
Side effects: [what it modifies]

VERIFICATION:
  - [ ] Method exists
  - [ ] Parameters correct (type, order)
  - [ ] Return type handled correctly
  - [ ] Edge cases considered

DO NOT ASSUME - Read the actual source code or documentation.

Step 6: Verify Code Contracts

For classes with relationships (extends, implements, uses, injects):

CONTRACT VERIFICATION: [Class name]

Extends: [Parent class]
  - [ ] All abstract methods implemented
  - [ ] Parent constructor called (if required)
  - [ ] Parent methods called when needed

Implements: [Interface]
  - [ ] All interface methods present
  - [ ] Signatures match exactly
  - [ ] Return types correct

Injected Services:
  - [ ] Service exists in container
  - [ ] Interface methods verified
  - [ ] Return types handled

Tagged Service (if applicable):
  - [ ] Tag name matches collector
  - [ ] Implements required interface
  - [ ] Priority appropriate

See reference guide for complete contract patterns.

Step 7: Note Output and Flaws

OUTPUT:
  Return value: [what's returned]
  Side effects: [database changes, API calls, etc.]
  State changes: [session, cache, variables]

FLAWS FOUND:
  - Line [N]: [description of issue]
    FIX: [how to resolve]
  - Line [N]: [description of issue]
    FIX: [how to resolve]

Step 8: Untested Path Analysis

After all scenarios, review for paths NOT exercised:

UNTESTED PATHS:
  - Line [N]-[M]: [else branch / catch block / default case] — never triggered
    Risk: [what this path handles]
    Scenario needed: [input that would trigger it]

Coverage: [X of Y branches exercised]
Recommendation: [add scenario for critical untested paths / accept risk]

What to Look For

Logic Errors

  • Wrong comparison (= vs == vs ===)
  • Inverted condition (if ($x) should be if (!$x))
  • Off-by-one in loops
  • Missing break in switch

Null/Undefined Access

  • Accessing property on null object
  • Array key that might not exist
  • Uninitialized variable

Edge Cases

  • Empty array/string
  • Zero, negative numbers
  • Null values
  • Very large inputs

State Issues

  • Variable modified but not used
  • Variable used before assignment
  • Stale data from previous iteration

Flow Issues

  • Unreachable code
  • Missing return statement
  • Early return skips cleanup

Error Propagation

  • Exception thrown but caught too high (wrong handler)
  • Exception swallowed silently (empty catch block)
  • Partial state left behind (DB row inserted, email not sent)
  • Wrong error code/status returned to caller
  • User retries after error — causes duplicates?

Performance Patterns

  • N+1 query — database call inside a loop
  • Nested loops on collections — O(n²) or worse
  • Same expensive call repeated — missing cache/variable
  • Unbounded collection growth — no size limit in loop
  • Missing pagination — loads entire table into memory

AI Code Issues

  • Invented methods that don't exist
  • Wrong return types assumed
  • Wrong parameter order
  • Mixed API versions
  • Assumed service existence
  • Wrong namespace imports

Testing Strategy for Modules

For modules with multiple components (ECA plugins, form systems, etc.), use coverage-driven hybrid approach.

Two Levels

Flow-based: Real user workflows end-to-end

  • Tests integration and data handoffs
  • Catches format mismatches, token issues

Component: Each component with edge cases

  • Tests individual logic thoroughly
  • Catches implementation bugs, null handling

Coverage Method

Step 1: Map all components
  - List every event, condition, action, service

Step 2: Design flows covering all components
  - Each component in at least one flow
  - 3-5 flows typically cover a module

Step 3: Add component edge cases
  - For each component: scenarios NOT in flows
  - Error cases, empty inputs, boundaries
  - 2-4 edge cases per component

Output Format

Use this template for all paper tests:

PAPER TEST: [File/Function name]

SCENARIO: [Description]
INPUT:
  [variable] = [value]
  [variable] = [value]

TRACE:
Line [N]: [code]
         → [variable] = [new value]

Line [N]: [conditional]
         → [evaluation] = [result]
         → TAKES: [branch]

Line [N]: [loop start]
Iteration [N]: [values]
  Line [N]: [code]
           → [state]

OUTPUT:
  Return: [value]
  Side effects: [list]
  State changes: [list]

DEPENDENCY CHECKS:
  [method/service]: VERIFIED / ISSUE FOUND
    Issue: [description]

CONTRACT CHECKS:
  [pattern]: VERIFIED / VIOLATION
    Issue: [description]

FLAWS FOUND:
  - [Line N]: [issue]
    FIX: [solution]
  - [Line N]: [issue]
    FIX: [solution]

EDGE CASES TO TEST:
  1. [scenario]
  2. [scenario]

References

All detailed guides are in references/ directory:

  • references/core-method.md - Complete paper testing method
  • references/dependency-verification.md - How to verify external calls
  • references/contract-patterns.md - All code contract types
  • references/ai-code-auditing.md - Testing AI-generated code
  • references/hybrid-testing.md - Module-level testing strategy
  • references/common-flaws.md - Catalog of frequent bugs
  • references/advanced-techniques.md - Progressive injects, red team testing, attack surface analysis, AAR format
  • references/severity-scoring.md - Consistent severity rubric for flaw prioritization
  • references/blind-ab-comparison.md - Comparing two implementations side by side
  • references/rubric-scoring.md - Structured grading for code quality assessment
  • references/skill-and-config-testing.md - Testing skills, commands, agents, and configs

Progressive Disclosure

The SKILL.md provides the core workflow. For detailed guidance:

  • Complete methodology → references/core-method.md
  • Dependency verification patterns → references/dependency-verification.md
  • Contract verification (extends, implements, DI, plugins, etc.) → references/contract-patterns.md
  • AI code specific checks → references/ai-code-auditing.md
  • Module testing strategy → references/hybrid-testing.md

平台分布

Codex

31.81%
按下载量换算40

Claude

30.93%
按下载量换算39

Cursor

19.99%
按下载量换算25

Gemini CLI

9.77%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills