.cursor/skills/app-testing/SKILL.md
Testing implementation guidance for application code. Load when deciding what to test, how to split tests across layers, or how to avoid redundant tests.
npx skillsauth add poko8nada/pj_docs app-testingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
docs/behavior.md is the lightweight map of expected behavior and current test
coverage.
Use behavior to record:
未作成 / 不要Use this skill to decide:
When behavior changes or test ownership changes, update docs/behavior.md too.
Test the boundary that owns the behavior. Do not duplicate the same contract across route, feature, and utility tests unless each layer truly owns a different risk.
What owns the behavior?
├─ Shared pure logic or adapter → unit test
├─ Feature-specific processing or rendering → feature test
├─ Critical cross-page flow → E2E test
└─ Small interactive UI detail only → component test
Use unit tests for code that is reusable and framework-light.
Good fit:
These tests should verify:
Use feature tests for behavior owned by one feature boundary.
Good fit:
Feature tests should receive explicit inputs whenever possible. Avoid making them depend on the full route or framework surface unless the feature truly owns that dependency.
Use component tests sparingly.
They are most useful when:
Do not reach for component tests just because JSX exists.
Use E2E for critical user journeys that cross multiple boundaries.
Good fit:
Do not use E2E to cover behavior that is already well protected by feature tests unless the end-to-end risk is materially different.
Before adding a test, ask:
If the answer to the second question is yes, prefer deleting the weaker test instead of adding another.
Use names that describe the behavior and condition:
returns not-found when the record does not existrenders retry state when loading failsredirects to login when the session is missingAvoid names that only describe the function or file.
tools
Composite Skill. This skill is used for project planning. Users request that a project plan be created, particularly during the initial stages.
documentation
Core Skill. This skill is for document creation. User ask you to create planning documents, such as requirement and task breakdown.
development
Core Skill. Next.js 15+ App Router architecture guidelines including component patterns, state management with Zustand, server actions, and project structure. Use when developing Next.js applications.
development
Core Skill. HonoX architecture guidelines including file-based routing, Islands pattern, component types, performance optimization, and best practices for full-stack development.