Freeze Tests Mode When activated, blocks all modifications to test files. Use during refactoring to ensure behavior (as captured by tests) is preserved. What It Does Blocks Write and Edit operations on any file matching test patterns: - - - - Activation Deactivate with . Hook Configuration Enforcement Logic When to Use 1. Refactoring : Changing code structure without changing behavior 2. Performance optimization : Making code faster without changing logic 3. Dependency updates : Upgrading libraries while preserving behavior Gotchas - Frozen tests can't be fixed if they break during refactorin…

2>/dev/null; then\n echo \"BLOCKED: Test files are frozen during refactoring.\"\n echo \"File: $FILE\"\n echo \"Deactivate with: /freeze-tests off\"\n exit 1\nfi\n\nif echo \"$FILE\" | grep -qP '__tests__/|/tests/' 2>/dev/null; then\n echo \"BLOCKED: Test directories are frozen during refactoring.\"\n echo \"File: $FILE\"\n echo \"Deactivate with: /freeze-tests off\"\n exit 1\nfi\n\nexit 0\n","content_type":"application/x-sh; charset=utf-8","language":"bash","size":702,"content_sha256":"b8ed70356774888e136ee8e2fe50694bedd97214d170f51cbed468ebcfed46c6"}],"content_json":{"type":"doc","content":[{"type":"heading","attrs":{"level":1},"content":[{"text":"Freeze Tests Mode","type":"text"}]},{"type":"paragraph","content":[{"text":"When activated, blocks all modifications to test files. Use during refactoring to ensure behavior (as captured by tests) is preserved.","type":"text"}]},{"type":"heading","attrs":{"level":2},"content":[{"text":"What It Does","type":"text"}]},{"type":"paragraph","content":[{"text":"Blocks Write and Edit operations on any file matching test patterns:","type":"text"}]},{"type":"bullet_list","content":[{"type":"list_item","content":[{"type":"paragraph","content":[{"text":"**/*.test.{ts,js,tsx,jsx}","type":"text","marks":[{"type":"code_inline"}]}]}]},{"type":"list_item","content":[{"type":"paragraph","content":[{"text":"**/*.spec.{ts,js,tsx,jsx}","type":"text","marks":[{"type":"code_inline"}]}]}]},{"type":"list_item","content":[{"type":"paragraph","content":[{"text":"**/__tests__/**","type":"text","marks":[{"type":"code_inline"}]}]}]},{"type":"list_item","content":[{"type":"paragraph","content":[{"text":"**/tests/**","type":"text","marks":[{"type":"code_inline"}]}]}]}]},{"type":"heading","attrs":{"level":2},"content":[{"text":"Activation","type":"text"}]},{"type":"code_block","attrs":{"wrap":false,"language":""},"content":[{"text":"/freeze-tests","type":"text"}]},{"type":"paragraph","content":[{"text":"Deactivate with ","type":"text"},{"text":"/freeze-tests off","type":"text","marks":[{"type":"code_inline"}]},{"text":".","type":"text"}]},{"type":"heading","attrs":{"level":2},"content":[{"text":"Hook Configuration","type":"text"}]},{"type":"code_block","attrs":{"wrap":false,"language":"json"},"content":[{"text":"{\n \"hooks\": {\n \"PreToolUse\": [\n {\n \"matcher\": \"Write|Edit\",\n \"hook\": \".claude/skills/freeze-tests/scripts/block-test-edits.sh\",\n \"condition\": \"file matches **/*.test.* OR **/*.spec.* OR **/__tests__/** OR **/tests/**\"\n }\n ]\n }\n}","type":"text"}]},{"type":"heading","attrs":{"level":2},"content":[{"text":"Enforcement Logic","type":"text"}]},{"type":"code_block","attrs":{"wrap":false,"language":"bash"},"content":[{"text":"#!/bin/bash\n# block-test-edits.sh\nFILE=\"$1\"\n\nif echo \"$FILE\" | grep -qP '\\.(test|spec)\\.(ts|js|tsx|jsx)$|__tests__|/tests/'; then\n echo \"BLOCKED: Test files are frozen during refactoring.\"\n echo \"If tests need updating, deactivate with: /freeze-tests off\"\n exit 1\nfi","type":"text"}]},{"type":"heading","attrs":{"level":2},"content":[{"text":"When to Use","type":"text"}]},{"type":"ordered_list","attrs":{"order":1,"listStyle":"number"},"content":[{"type":"list_item","content":[{"type":"paragraph","content":[{"text":"Refactoring","type":"text","marks":[{"type":"strong"}]},{"text":": Changing code structure without changing behavior","type":"text"}]}]},{"type":"list_item","content":[{"type":"paragraph","content":[{"text":"Performance optimization","type":"text","marks":[{"type":"strong"}]},{"text":": Making code faster without changing logic","type":"text"}]}]},{"type":"list_item","content":[{"type":"paragraph","content":[{"text":"Dependency updates","type":"text","marks":[{"type":"strong"}]},{"text":": Upgrading libraries while preserving behavior","type":"text"}]}]}]},{"type":"heading","attrs":{"level":2},"content":[{"text":"Gotchas","type":"text"}]},{"type":"bullet_list","content":[{"type":"list_item","content":[{"type":"paragraph","content":[{"text":"Frozen tests can't be fixed if they break during refactoring — that's the point (the refactoring broke behavior)","type":"text"}]}]},{"type":"list_item","content":[{"type":"paragraph","content":[{"text":"If a refactoring requires test changes, it's not a pure refactoring — deactivate and treat as a feature change","type":"text"}]}]},{"type":"list_item","content":[{"type":"paragraph","content":[{"text":"This doesn't prevent running tests — only modifying test files","type":"text"}]}]}]},{"type":"hr","attrs":{"markup":"---"}}]},"metadata":{"date":"2026-06-05","name":"freeze-tests","author":"@skillopedia","source":{"stars":366,"repo_name":"agentic-qe","origin_url":"https://github.com/proffesor-for-testing/agentic-qe/blob/HEAD/assets/skills/freeze-tests/SKILL.md","repo_owner":"proffesor-for-testing","body_sha256":"42cb64072f110af1f6c04e441405b5c9beef58832134b65264f2d24f54398c39","cluster_key":"537d7315386a538f62e07b1030e7558cd31134901d1825d234491c8e5fb2d9ea","clean_bundle":{"format":"clean-skill-bundle-v1","source":"proffesor-for-testing/agentic-qe/assets/skills/freeze-tests/SKILL.md","attachments":[{"id":"5d6a10dc-f5ab-5198-9d6f-712d877f8b6e","key":"uploads/10433ee7-ad12-4ae0-b34e-97553e46c6c8/5d6a10dc-f5ab-5198-9d6f-712d877f8b6e/attachment.sh","path":"scripts/block-test-edits.sh","size":702,"sha256":"b8ed70356774888e136ee8e2fe50694bedd97214d170f51cbed468ebcfed46c6","contentType":"application/x-sh; charset=utf-8"}],"bundle_sha256":"27582ea87d7d354dad9764a72045bccf816454856a43524a71031fae2c2772ff","attachment_count":1,"text_attachments":1,"attachment_storage":"skillopedia-attachments-v1","binary_attachments":0,"excluded_attachments":[]},"cluster_size":2,"skill_md_path":"assets/skills/freeze-tests/SKILL.md","import_metadata":{"date":"2026-06-05","author":"@skillopedia","version":"v1","category":"testing-qa","category_label":"Testing"},"exact_dupes_collapsed_into_this":1},"version":"v1","category":"testing-qa","import_tag":"clean-skills-v1","description":"Use when refactoring production code and you want to ensure test files are not modified. Activate with /freeze-tests to block all edits to test files for safe refactoring.","user-invocable":true}},"renderedAt":1782980935283}

Freeze Tests Mode When activated, blocks all modifications to test files. Use during refactoring to ensure behavior (as captured by tests) is preserved. What It Does Blocks Write and Edit operations on any file matching test patterns: - - - - Activation Deactivate with . Hook Configuration Enforcement Logic When to Use 1. Refactoring : Changing code structure without changing behavior 2. Performance optimization : Making code faster without changing logic 3. Dependency updates : Upgrading libraries while preserving behavior Gotchas - Frozen tests can't be fixed if they break during refactorin…