[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D2JGZX7JCC3ZRPMAT2XHV4":3,"skill-same:01M7D2JGZX7JCC3ZRPMAT2XHV4":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7D2JGZX7JCC3ZRPMAT2XHV4","backend-e2e-testing",null,"Enforces Skillscope's end-to-end testing conventions for installed wheels, subprocesses, Testcontainers, Docker-compatible runtimes, live HTTP requests, and Playwright. Use when creating or reviewing tests under tests\u002Fe2e or testing packaged service and dashboard workflows.","ganan-s\u002Fskillscope","ganan-s","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F35375634?v=4","01M7D2JD9JNTDC32EMNQK3SZ8K","Ganan","01M7D2JDA79T5R2JXDV9RWEAG3",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fganan-s\u002Fskillscope\u002Fblob\u002Fmain\u002F.cursor\u002Fskills\u002Fbackend-e2e-testing\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: backend-e2e-testing\ndescription: Enforces Skillscope's end-to-end testing conventions for installed wheels, subprocesses, Testcontainers, Docker-compatible runtimes, live HTTP requests, and Playwright. Use when creating or reviewing tests under tests\u002Fe2e or testing packaged service and dashboard workflows.\n---\n\n# Backend end-to-end testing\n\nApply these conventions to Skillscope E2E work. Also apply\n`backend-integration-testing` when deciding whether a test needs a real process\nboundary.\n\nRead `docs\u002F06-e2e-test-framework.md` before changing the E2E harness or suite.\n\n## Boundary\n\nAn E2E test must require at least one of:\n\n- an installed wheel or console entry point;\n- a separately running Skillscope process;\n- a real HTTP socket; or\n- a browser.\n\nIn-process CLI, FastAPI TestClient, real SQLite, and filesystem fixtures alone\nare integration tests. Do not move broad integration coverage into E2E.\n\n## Locations\n\nUse:\n\n```text\ntests\u002Fe2e\u002F\n  service\u002F\n  api\u002F\n```\n\nUse the frontend toolchain's Playwright directory for UI tests. Mark Python E2E\ntests with both `e2e` and `docker` when they require Testcontainers.\n\n## Installed artifact\n\n- Build the wheel with `uv`.\n- Install the wheel in the test environment; never use an editable install.\n- Do not import Skillscope from the source checkout to exercise product\n  behavior.\n- Share one built wheel per pytest session.\n- Assert public process output, exit status, files, HTTP responses, or browser\n  behavior.\n\n## Testcontainers\n\n- Use Python Testcontainers to own container start, stop, networking, port\n  mapping, logs, and cleanup.\n- Use a test-only container image. Docker support does not imply a production\n  container deployment.\n- Mount only the built wheel, synthetic fixtures, and temporary test state.\n- Never mount the real home directory, Cursor data, Skillscope database, or\n  Docker socket.\n- Use random mapped host ports.\n- Use bounded process or HTTP readiness checks; never use arbitrary sleeps.\n- Treat missing Docker as a clear failure when the E2E suite is selected.\n- Include sanitized container logs in assertion failures.\n\n## Data setup\n\n- Use synthetic fixtures with fixed ids and UTC timestamps.\n- Invoke the installed `skillscope ingest` for true E2E store setup.\n- Do not seed the E2E database with ad hoc SQL.\n- Give each test isolated writable state.\n- Remove native source fixtures before snapshot-independence assertions.\n- Never read the user's actual home, harness data, or database.\n\n## Assertion ownership\n\n### Service\n\nTest installation, console entry points, process lifecycle, package resources,\nand ingest-to-store behavior.\n\n### Live API\n\nTest a narrow core flow through real HTTP. Keep exhaustive route validation,\nserialization, and error matrices in `tests\u002Fintegration\u002Fapi`.\n\n### Playwright\n\nTest user-visible dashboard journeys with accessible selectors or stable test\nids. Do not re-test parser rules, SQL details, or every API field.\n\n## Commands\n\nRun:\n\n```bash\nuv run pytest tests\u002Fe2e\n```\n\nAfter changing Python:\n\n```bash\nuv run ruff check .\nuv run ruff format --check .\n```\n\n## Review checklist\n\n- The behavior requires a packaged artifact, process, socket, or browser.\n- The test uses production composition and installed artifacts.\n- Testcontainers owns container lifecycle.\n- Fixtures and writable state are isolated and synthetic.\n- Readiness is bounded and has no arbitrary sleep.\n- Assertions stay at the public boundary.\n- Failures include useful, sanitized diagnostics.\n- The test does not duplicate broad integration coverage.\n","# Backend end-to-end testing\n\nApply these conventions to Skillscope E2E work. Also apply\n`backend-integration-testing` when deciding whether a test needs a real process\nboundary.\n\nRead `docs\u002F06-e2e-test-framework.md` before changing the E2E harness or suite.\n\n## Boundary\n\nAn E2E test must require at least one of:\n\n- an installed wheel or console entry point;\n- a separately running Skillscope process;\n- a real HTTP socket; or\n- a browser.\n\nIn-process CLI, FastAPI TestClient, real SQLite, and filesystem fixtures alone\nare integration tests. Do not move broad integration coverage into E2E.\n\n## Locations\n\nUse:\n\n```text\ntests\u002Fe2e\u002F\n  service\u002F\n  api\u002F\n```\n\nUse the frontend toolchain's Playwright directory for UI tests. Mark Python E2E\ntests with both `e2e` and `docker` when they require Testcontainers.\n\n## Installed artifact\n\n- Build the wheel with `uv`.\n- Install the wheel in the test environment; never use an editable install.\n- Do not import Skillscope from the source checkout to exercise product\n  behavior.\n- Share one built wheel per pytest session.\n- Assert public process output, exit status, files, HTTP responses, or browser\n  behavior.\n\n## Testcontainers\n\n- Use Python Testcontainers to own container start, stop, networking, port\n  mapping, logs, and cleanup.\n- Use a test-only container image. Docker support does not imply a production\n  container deployment.\n- Mount only the built wheel, synthetic fixtures, and temporary test state.\n- Never mount the real home directory, Cursor data, Skillscope database, or\n  Docker socket.\n- Use random mapped host ports.\n- Use bounded process or HTTP readiness checks; never use arbitrary sleeps.\n- Treat missing Docker as a clear failure when the E2E suite is selected.\n- Include sanitized container logs in assertion failures.\n\n## Data setup\n\n- Use synthetic fixtures with fixed ids and UTC timestamps.\n- Invoke the installed `skillscope ingest` for true E2E store setup.\n- Do not seed the E2E database with ad hoc SQL.\n- Give each test isolated writable state.\n- Remove native source fixtures before snapshot-independence assertions.\n- Never read the user's actual home, harness data, or database.\n\n## Assertion ownership\n\n### Service\n\nTest installation, console entry points, process lifecycle, package resources,\nand ingest-to-store behavior.\n\n### Live API\n\nTest a narrow core flow through real HTTP. Keep exhaustive route validation,\nserialization, and error matrices in `tests\u002Fintegration\u002Fapi`.\n\n### Playwright\n\nTest user-visible dashboard journeys with accessible selectors or stable test\nids. Do not re-test parser rules, SQL details, or every API field.\n\n## Commands\n\nRun:\n\n```bash\nuv run pytest tests\u002Fe2e\n```\n\nAfter changing Python:\n\n```bash\nuv run ruff check .\nuv run ruff format --check .\n```\n\n## Review checklist\n\n- The behavior requires a packaged artifact, process, socket, or browser.\n- The test uses production composition and installed artifacts.\n- Testcontainers owns container lifecycle.\n- Fixtures and writable state are isolated and synthetic.\n- Readiness is bounded and has no arbitrary sleep.\n- Assertions stay at the public boundary.\n- Failures include useful, sanitized diagnostics.\n- The test does not duplicate broad integration coverage.\n",{"name":5,"description":7},"main","38802a07d3275daa93def8f87bb59ed53b4a2ad7",".cursor\u002Fskills\u002Fbackend-e2e-testing","https:\u002F\u002Fgithub.com\u002Fganan-s\u002Fskillscope","https:\u002F\u002Fgithub.com\u002Fganan-s","2026-09-20 10:11:27",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add ganan-s\u002Fskillscope --skill backend-e2e-testing",{"tool":36,"command":37},"bunx","bunx skills add ganan-s\u002Fskillscope --skill backend-e2e-testing",{"tool":39,"command":40},"pnpm","pnpm dlx skills add ganan-s\u002Fskillscope --skill backend-e2e-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fganan-s\u002Fskillscope\u002Fblob\u002Fmain\u002F.cursor\u002Fskills\u002Fbackend-e2e-testing\u002FSKILL.md",true,[],[45,52,57,64,71],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M7D2KBS5S4MG82STB8SG9C6S","skillscope-probe","Benign fixture used to verify Cursor read-hook payloads.","https:\u002F\u002Fgithub.com\u002Fganan-s\u002Fskillscope\u002Fblob\u002Fmain\u002Fexperiments\u002Fcursor-hook-probe\u002Ffixtures\u002Fprobe-skill\u002FSKILL.md",[],[],{"skillNo":53,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7D2K91SSKZKFCFJRPWN6C56","https:\u002F\u002Fgithub.com\u002Fganan-s\u002Fskillscope\u002Fblob\u002Fmain\u002Fexperiments\u002Fcursor-golden-session\u002Ffixtures\u002Fprobe-skill\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7D2JZ5P0TX8HMCVEPMZ7VX5","backend-unit-testing","Enforces Skillscope's pytest unit-test conventions for the Python backend. Use when creating, modifying, or reviewing unit tests, domain logic, application use cases, canonical event parsing, test doubles, fixtures, or code under tests\u002Funit.","https:\u002F\u002Fgithub.com\u002Fganan-s\u002Fskillscope\u002Fblob\u002Fmain\u002F.cursor\u002Fskills\u002Fbackend-unit-testing\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7D2JSWWDGZBENQ96RCKXVNV","backend-integration-testing","Enforces Skillscope's pytest integration-test conventions for the Python backend. Use when testing SQLite repositories and migrations, Cursor transcript and hook adapters, FastAPI routes, CLI wiring, composition roots, filesystem fixtures, or code under tests\u002Fintegration.","https:\u002F\u002Fgithub.com\u002Fganan-s\u002Fskillscope\u002Fblob\u002Fmain\u002F.cursor\u002Fskills\u002Fbackend-integration-testing\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7D2JNFN05SGAZV6DWYB2PK6","backend-hexagonal-architecture","Enforces Skillscope's hexagonal Python backend architecture. Use when creating, modifying, or reviewing backend domain models, application services, ports, FastAPI routes, CLI commands, SQLite repositories, harness plugins, composition wiring, or other code under src\u002Fskillscope.","https:\u002F\u002Fgithub.com\u002Fganan-s\u002Fskillscope\u002Fblob\u002Fmain\u002F.cursor\u002Fskills\u002Fbackend-hexagonal-architecture\u002FSKILL.md",[],[]]