public-library Vetted by Skillmart
Public engineering rules from Fabrica for coding agents, with versioned groups projects can adopt and customize.
A library release publishes new versions of one or more rules at once. Each rule keeps its own version.
Library release 17 changes no rules. It updates shared files, such as group descriptions or shared assets.
All rule versions in this library release
Library release 16 changes 149 rules: 149 patch.
Patch changes
- End AGENTS.md with a section on maintaining it practices/agents-md/end-agents-md-with-a-maintenance-section 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Hold a size budget for always-loaded agent instructions practices/agents-md/hold-a-budget-for-always-loaded-instructions 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Keep AGENTS.md to what almost every session needs and can't see practices/agents-md/keep-agents-md-to-what-every-session-needs 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Express operations as meaningful steps practices/code-design/express-operations-as-meaningful-steps 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Hide implementation decisions behind meaningful interfaces practices/code-design/hide-implementation-decisions 1.1.0 → 1.1.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Organize code by feature practices/code-design/organize-code-by-feature 1.1.0 → 1.1.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Record facts when they happen practices/code-design/record-facts-when-they-happen 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Remove unnecessary error cases through contract design practices/code-design/remove-unnecessary-error-cases 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Separate pure computation from effects practices/code-design/separate-pure-computation-from-effects 2.0.0 → 2.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Apply asynchronous results only while they remain valid practices/concurrency/apply-async-results-only-while-valid 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
Show 139 more patch changes Show fewer
- Honor cancellation and deadlines across every blocking stage practices/concurrency/honor-cancellation-across-blocking-stages 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Keep shared resources alive until their users finish practices/concurrency/keep-shared-resources-alive-until-users-finish 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Comment intent, and point at the owner instead of describing it practices/documentation/comments-state-intent 2.0.0 → 2.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Head a file with its purpose only when its name can't say it practices/documentation/file-header-when-name-falls-short 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Give every lint or type-checker suppression a reason practices/documentation/give-every-suppression-a-reason 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Link every TODO and workaround to where it will be resolved practices/documentation/link-todos-and-workarounds 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- State the current model and its reasons, not how it got there practices/documentation/state-the-current-model 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Write comments in plain, direct language practices/documentation/write-comments-in-plain-language 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Optimize measured hot paths by removing repeated work practices/performance/optimize-measured-hot-paths 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Give a quick start that runs as written practices/readmes/give-a-quick-start-that-runs-as-written 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Keep the README an entry point, and link to the full documentation practices/readmes/keep-the-readme-an-entry-point 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Match the README's presentation to the product's tier practices/readmes/match-presentation-to-product-tier 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Open with what the product does for the reader practices/readmes/open-with-what-the-product-does 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- State what the product does not do practices/readmes/state-what-the-product-does-not-do 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Choose tests by risk and cost practices/testing/choose-tests-by-risk 1.0.2 → 1.0.3 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Cover empty inputs and boundaries practices/testing/cover-boundary-cases 1.0.2 → 1.0.3 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Keep tests independent practices/testing/keep-tests-independent 1.0.2 → 1.0.3 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Name tests for the behavior and the condition practices/testing/name-tests-for-behavior-and-condition 1.0.2 → 1.0.3 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Run focused tests while iterating, and the full suite before finishing practices/testing/run-focused-tests-while-iterating 1.0.2 → 1.0.3 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Test at the lowest layer that proves the behavior practices/testing/test-at-the-lowest-layer 1.0.2 → 1.0.3 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Reproduce bugs with regression tests practices/testing/test-bug-fixes-before-fixing 1.0.2 → 1.0.3 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Test observable behavior practices/testing/test-observable-behavior 1.0.2 → 1.0.3 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Build the explanation in steps practices/writing/build-the-explanation-in-steps 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Give the reader a map, then follow it practices/writing/give-the-reader-a-map 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Make important abstractions concrete practices/writing/make-abstractions-concrete 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Make the actor and action clear practices/writing/name-who-acts 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Take a side and earn it practices/writing/take-a-side 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Write to one reader as if they're across the table practices/writing/write-to-one-reader 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Define every domain field, and comment other struct fields whose meaning the type does not show techs/go/comment-non-obvious-struct-fields 2.0.0 → 2.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Separate package documentation from file headers techs/go/comments-package-doc-vs-file-header 1.1.0 → 1.1.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Give exported Go identifiers and non-obvious functions doc comments stating their intent techs/go/doc-comments-state-intent 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Add operation and identifier context to errors at boundaries techs/go/errors-include-useful-diagnostic-data 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Expose error identity only for contract errors techs/go/errors-use-contract-errors-deliberately 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Give text and its parsed form one owner techs/go/one-owner-for-text-and-parsed-form 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Keep the SQL migration directory for migration files only techs/goose/migrations-directory-contains-only-sql 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Avoid layout thrashing techs/javascript/avoid-layout-thrashing 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Await only on paths that need the result techs/javascript/await-only-on-paths-that-need-the-result 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Defer non-critical browser work to idle time techs/javascript/defer-non-critical-work-to-idle-time 2.0.0 → 2.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Keep dynamic import and file paths statically analyzable techs/javascript/keep-import-and-file-paths-analyzable 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Load measurement scripts the way their vendors document techs/javascript/load-measurement-scripts-as-documented 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Start independent asynchronous work concurrently techs/javascript/start-independent-async-work-concurrently 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Mark scroll-related listeners passive when they never cancel scrolling techs/javascript/use-passive-scroll-and-touch-listeners 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Version and minimize data in browser storage techs/javascript/version-and-minimize-browser-storage 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Synchronize with auto-waiting actions and web-first assertions techs/playwright/auto-waiting-actions-and-web-first-assertions 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Scope locators by test id, then select controls by role and name techs/playwright/domain-scope-and-user-facing-locators 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Give every interactive element a role and an accessible name techs/react/accessibility-roles-and-names 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Run app-wide initialization once per app load techs/react/advanced-init-once 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Build complex components from composable parts techs/react/architecture-compound-components 2.0.0 → 2.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Create explicit component variants instead of boolean mode props techs/react/architecture-explicit-variants 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Stream slow data behind Suspense boundaries techs/react/async-suspense-boundaries 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Avoid loading large barrel files techs/react/bundle-barrel-imports 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Keep non-critical scripts off the critical path techs/react/bundle-defer-non-critical-scripts 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Load heavy optional code on demand techs/react/bundle-load-heavy-code-on-demand 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Share client data requests through a caching data layer techs/react/client-share-data-requests 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Read the latest callbacks in Effects without resubscribing techs/react/effects-read-latest-values-without-resubscribing 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Name generic components by capability, not by first caller techs/react/generic-components-by-capability 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Name Effect and non-trivial Hook callbacks techs/react/hooks-name-callbacks 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Avoid copying props to state techs/react/official-avoid-copying-props-to-state 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Avoid unnecessary Effects techs/react/official-avoid-unnecessary-effects 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Follow the Rules of Hooks techs/react/official-follow-rules-of-hooks 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Keep components and Hooks pure techs/react/official-keep-components-and-hooks-pure 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Accept ref as a prop in React 19 techs/react/react19-no-forwardref 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Use Activity to hide UI that should keep its state techs/react/rendering-activity 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Use a boolean condition for conditional rendering techs/react/rendering-conditional-render 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Skip off-screen rendering work in long lists techs/react/rendering-content-visibility 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Render client-only preferences without a flash or hydration error techs/react/rendering-hydration-no-flicker 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Suppress only expected hydration mismatches techs/react/rendering-hydration-suppress-warning 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Hint critical resources with React DOM resource APIs techs/react/rendering-resource-hints 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Subscribe to and depend on only the values you use techs/react/rerender-depend-on-narrow-values 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Use functional updates when new state depends on old state techs/react/rerender-functional-setstate 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Initialize expensive state lazily techs/react/rerender-lazy-state-init 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Keep input responsive by marking non-urgent updates techs/react/rerender-mark-non-urgent-updates 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Memoize deliberately techs/react/rerender-memoize-deliberately 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Do not define components inside components techs/react/rerender-no-inline-components 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Keep values that do not affect rendering in refs techs/react/rerender-use-ref-transient-values 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Run post-response work after the response techs/react/server-after-nonblocking 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Authenticate and authorize inside every Server Action techs/react/server-auth-actions 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Deduplicate per-request server work with cache techs/react/server-cache-react 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Pass only the data Client Components use techs/react/server-minimize-serialized-props 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Keep request data out of shared module state techs/react/server-no-shared-module-state 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Compose independent server data fetches as siblings techs/react/server-parallel-fetching 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Reuse request-independent server data across requests techs/react/server-reuse-request-independent-data 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Lift shared component state into a provider behind an interface techs/react/state-lift-shared-state-into-providers 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Give repeated and persistent surfaces stable test ids techs/react/testing-ship-stable-e2e-scope-test-ids 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Use initialData only for complete data techs/tanstack-query/cache-placeholder-vs-initial 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Set staleTime from how fast data changes techs/tanstack-query/cache-stale-time 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Reset query errors when an error boundary retries techs/tanstack-query/err-error-boundaries 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Derive infinite query page params from the server's response techs/tanstack-query/inf-page-params 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Invalidate or update every query a mutation changes techs/tanstack-query/mut-invalidate-queries 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Read mutation state from other components with useMutationState techs/tanstack-query/mut-mutation-state 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Make optimistic updates reversible, and decide them once techs/tanstack-query/mut-optimistic-updates 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Make offline behavior explicit techs/tanstack-query/offline-behavior 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Fetch a dynamic set of queries with useQueries techs/tanstack-query/parallel-use-queries 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Derive component views of query data with a stable select techs/tanstack-query/perf-select-transform 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Prefetch likely next data on user intent techs/tanstack-query/pf-intent-prefetch 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Define hierarchical query keys and options in factories techs/tanstack-query/qk-factory-pattern 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Key each query by every input it uses techs/tanstack-query/qk-include-dependencies 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Pass the query's AbortSignal to the request techs/tanstack-query/query-cancellation 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Prefetch on the server and hydrate the query cache techs/tanstack-query/ssr-dehydration 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Provide shared dependencies through typed router context techs/tanstack-router/ctx-router-context 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Throw notFound for missing resources and render it with notFoundComponent techs/tanstack-router/err-not-found 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- With TanStack Query, load route data into the Query cache techs/tanstack-router/load-ensure-query-data 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Load route data in loaders, in parallel techs/tanstack-router/load-use-loaders 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Use Link for navigation users can open, and redirect in the router techs/tanstack-router/nav-link-component 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Mask modal routes with the resource's canonical URL techs/tanstack-router/nav-route-masks 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Set app-wide navigation behavior in router defaults techs/tanstack-router/router-default-options 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Validate search params with defaults at the route techs/tanstack-router/search-validation 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Split route components out of the main bundle techs/tanstack-router/split-route-code 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Register the router and read route data through typed route APIs techs/tanstack-router/ts-route-type-inference 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Annotate types at module boundaries and where they narrow techs/typescript/annotate-types-at-boundaries 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Avoid silencing the type checker techs/typescript/avoid-silencing-the-type-checker 1.0.1 → 1.0.2 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Give exported TypeScript interfaces and non-obvious functions doc comments stating their intent techs/typescript/comment-role-result-and-constraints 3.0.0 → 3.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Declare constants with as const, and satisfies when a type exists techs/typescript/declare-constants-with-as-const 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Define every property of a domain type techs/typescript/define-domain-type-properties 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Distinguish null from undefined techs/typescript/distinguish-null-from-undefined 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Generate service types from their contracts techs/typescript/generate-service-types-from-contracts 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Model distinct states as discriminated unions techs/typescript/model-variants-as-discriminated-unions 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Narrow unknown values before use techs/typescript/narrow-unknown-values 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Prefer literal unions over enums techs/typescript/prefer-literal-unions-over-enums 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Prefer type aliases over interfaces techs/typescript/prefer-type-aliases 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Preserve caller-owned data techs/typescript/preserve-caller-owned-data 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Require caller-owned inputs and document defaults techs/typescript/require-properties-and-name-parameters 2.0.0 → 2.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Import types with import type techs/typescript/separate-type-imports 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Use Boolean() for explicit boolean coercion techs/typescript/use-boolean-for-explicit-boolean-coercion 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Follow consistent naming conventions techs/typescript/use-consistent-naming 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Use one array type syntax techs/typescript/use-generic-array-types 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Use named exports techs/typescript/use-named-exports 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Use predictable file names techs/typescript/use-predictable-file-names 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Use template literal types for patterned strings techs/typescript/use-template-literal-types-for-patterned-strings 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Create stores once, outside render techs/zustand/create-stores-at-module-scope 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Define typed state and named actions techs/zustand/define-typed-state-and-named-actions 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Keep store state serializable techs/zustand/keep-store-state-serializable 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Keep each store focused on one domain techs/zustand/keep-stores-domain-focused 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Persist only safe, versioned state techs/zustand/persist-only-safe-versioned-state 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Rehydrate persisted stores after React hydration techs/zustand/rehydrate-persisted-stores-after-hydration 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Subscribe with narrow, stable selectors techs/zustand/subscribe-with-selectors 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Reset stores between tests and test actions directly techs/zustand/test-actions-and-reset-stores 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Update store state functionally and immutably techs/zustand/use-functional-and-immutable-updates 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
- Use Zustand only for shared client state techs/zustand/use-zustand-only-for-shared-client-state 1.0.0 → 1.0.1 Open the rule with a short Overview section that states it in brief; the guidance is unchanged.
This library release also updates shared files, such as group descriptions or shared assets.
All rule versions in this library release
Library release 15 changes 8 rules: 8 patch.
Patch changes
- Choose tests by risk and cost practices/testing/choose-tests-by-risk 1.0.1 → 1.0.2 Fixes the link to the testing philosophy background; the guidance is unchanged.
- Cover empty inputs and boundaries practices/testing/cover-boundary-cases 1.0.1 → 1.0.2 Fixes the link to the testing philosophy background; the guidance is unchanged.
- Keep tests independent practices/testing/keep-tests-independent 1.0.1 → 1.0.2 Fixes the link to the testing philosophy background; the guidance is unchanged.
- Name tests for the behavior and the condition practices/testing/name-tests-for-behavior-and-condition 1.0.1 → 1.0.2 Fixes the link to the testing philosophy background; the guidance is unchanged.
- Run focused tests while iterating, and the full suite before finishing practices/testing/run-focused-tests-while-iterating 1.0.1 → 1.0.2 Fixes the link to the testing philosophy background; the guidance is unchanged.
- Test at the lowest layer that proves the behavior practices/testing/test-at-the-lowest-layer 1.0.1 → 1.0.2 Fixes the link to the testing philosophy background; the guidance is unchanged.
- Reproduce bugs with regression tests practices/testing/test-bug-fixes-before-fixing 1.0.1 → 1.0.2 Fixes the link to the testing philosophy background; the guidance is unchanged.
- Test observable behavior practices/testing/test-observable-behavior 1.0.1 → 1.0.2 Fixes the link to the testing philosophy background; the guidance is unchanged.
This library release also updates shared files, such as group descriptions or shared assets.
All rule versions in this library release
Library release 14 changes no rules. It updates shared files, such as group descriptions or shared assets.
All rule versions in this library release
Library release 13 changes no rules. It updates shared files, such as group descriptions or shared assets.
All rule versions in this library release
Library release 12 changes 7 rules: 7 new.
New rules
- Write comments in plain, direct language practices/documentation/write-comments-in-plain-language 1.0.0 New rule: write code comments in plain, direct language, with the actor, action, condition, and consequence clear, related words kept together, and project-specific shorthand explained. Clear comments in any sentence shape need no rewrite.
- Build the explanation in steps practices/writing/build-the-explanation-in-steps 1.0.0 New rule: build an explanation from what the reader already knows, supplying each premise and walking through a concrete case before stating the lesson.
- Give the reader a map, then follow it practices/writing/give-the-reader-a-map 1.0.0 New rule: give a long piece an opening that says why it matters, a map or sequence the sections follow, headings that name what each section contributes, and a close that resolves the opening.
- Make important abstractions concrete practices/writing/make-abstractions-concrete 1.0.0 New rule: make important claims and ideas concrete with numbers, examples, analogies, or visuals, and back factual claims with evidence rather than illustration.
- Make the actor and action clear practices/writing/name-who-acts 1.0.0 New rule: make clear who performs each action in published prose, preferring concrete subjects and direct verbs over buried nouns and needless passive voice.
- Take a side and earn it practices/writing/take-a-side 1.0.0 New rule: when a piece argues or recommends, state the position plainly, answer the strongest objection, and say where the recommendation stops applying.
- Write to one reader as if they're across the table practices/writing/write-to-one-reader 1.0.0 New rule: write first-person posts and announcements conversationally to one reader, without faked enthusiasm or invented experiences.
This library release also updates shared files, such as group descriptions or shared assets.
All rule versions in this library release
Library release 11 changes 13 rules: 8 new, 3 major, 1 minor, and 1 patch.
New rules
- End AGENTS.md with a section on maintaining it practices/agents-md/end-agents-md-with-a-maintenance-section 1.0.0 New rule: end a project's AGENTS.md with a short maintenance section that states four principles (broadly useful or costly to violate, point at the owner, rewrite or prune, stay concise). Kun Chen's footer is a starting template projects may adapt, not required wording.
- Hold a size budget for always-loaded agent instructions practices/agents-md/hold-a-budget-for-always-loaded-instructions 1.0.0 New rule: choose a size budget for the root instruction file, including generated content and imports, and skill descriptions; pay for additions by pruning or moving entries, shrink an oversized file incrementally, and treat 5,000 tokens as an example ceiling to tune, not a limit the rule enforces.
- Keep AGENTS.md to what almost every session needs and can't see practices/agents-md/keep-agents-md-to-what-every-session-needs 1.0.0 New rule: an always-loaded agent instruction file holds only what almost every session needs and can't see in the code, points to the owners of everything else, moves narrow procedures out, keeps CLAUDE.md as only @AGENTS.md, and replaces an exceptionless rule with one line that names its check.
- Head a file with its purpose only when its name can't say it practices/documentation/file-header-when-name-falls-short 1.0.0 New rule: start a hand-written file with a short purpose comment only when its name and location can't say what it is for, or when it deliberately leaves out something a reader would expect.
- Give every lint or type-checker suppression a reason practices/documentation/give-every-suppression-a-reason 1.0.0 New rule: every lint or type-checker suppression names the one check it disables and gives a reason a reviewer can verify.
- Link every TODO and workaround to where it will be resolved practices/documentation/link-todos-and-workarounds 1.0.0 New rule: every TODO, FIXME, and workaround links the issue, pull request, or upstream document that tracks it.
- Give exported Go identifiers and non-obvious functions doc comments stating their intent techs/go/doc-comments-state-intent 1.0.0 New rule: exported Go identifiers and unexported functions whose intent isn't apparent get a doc comment that starts with the name and states its intent and the guarantees callers rely on; main packages get a command comment.
- Define every property of a domain type techs/typescript/define-domain-type-properties 1.0.0 New rule: every property of a TypeScript domain type gets a one-sentence definition of the term, or of its role when a reusable domain type owns the term; other properties are commented only for optional or null meaning, invariants, and cross-module references.
Major changes
Code that complied with the previous rule version could fail the new one, so review these before updating.
- Comment intent, and point at the owner instead of describing it practices/documentation/comments-state-intent 1.0.0 → 2.0.0 Try a clearer name, narrower type, test, or lint rule before writing a body comment; commented-out code and banner comments are now violations; outside constraints link their upstream source.
- Define every domain field, and comment other struct fields whose meaning the type does not show techs/go/comment-non-obvious-struct-fields 1.0.0 → 2.0.0 Every field of a domain type now needs a one-sentence definition of the term, or of its role when a reusable domain type such as Money owns the term; short comments may sit after the field; other structs keep the existing narrow cases.
- Give exported TypeScript interfaces and non-obvious functions doc comments stating their intent techs/typescript/comment-role-result-and-constraints 2.0.0 → 3.0.0 Exported functions, classes, methods, types, and components need a doc comment stating intent and every guarantee callers rely on, with an eslint-plugin-jsdoc configuration that checks that scope; unexported functions need one only when their intent isn't apparent; file headers are no longer required on every file, and guidance on constraints, TODOs, and body comments moved to the Documentation practice rules.
Minor changes
- Separate package documentation from file headers techs/go/comments-package-doc-vs-file-header 1.0.0 → 1.1.0 A main package's comment may start with Command <name> instead of Package <name>, and the file header example now states what the file is not for.
Patch changes
- Avoid silencing the type checker techs/typescript/avoid-silencing-the-type-checker 1.0.0 → 1.0.1 The requirement to give @ts-expect-error a reason moved to the Documentation practice rule on suppressions; using @ts-expect-error instead of @ts-ignore is unchanged.
This library release also updates shared files, such as group descriptions or shared assets.
All rule versions in this library release
Library release 10 changes 2 rules: 1 new and 1 minor.
New rules
- Apply asynchronous results only while they remain valid practices/concurrency/apply-async-results-only-while-valid 1.0.0 Apply asynchronous results only to destinations that still accept them, covering competing cache writers, owner changes, and controlled completion-order tests.
Minor changes
- Hide implementation decisions behind meaningful interfaces practices/code-design/hide-implementation-decisions 1.0.0 → 1.1.0 Clarify lifecycle ownership, including session replacement and read/write coordination, with an editing-target example and caller-contract checks.
This library release also updates shared files, such as group descriptions or shared assets.
All rule versions in this library release
Library release 9 changes no rules. It updates shared files, such as group descriptions or shared assets.
All rule versions in this library release
Library release 8 changes 8 rules: 3 new, 4 major, and 1 minor.
New rules
- Remove unnecessary error cases through contract design practices/code-design/remove-unnecessary-error-cases 1.0.0 Define successful ordinary outcomes deliberately while preserving meaningful failure and authorization semantics.
- Comment intent, and point at the owner instead of describing it practices/documentation/comments-state-intent 1.0.0 New rule: comments document purpose, contracts the code can't express, and the reasons for constraints, and point at the owner instead of duplicating implementation details or conventions it already states.
- State the current model and its reasons, not how it got there practices/documentation/state-the-current-model 1.0.0 New rule: guidance states the current model and its reasons, and leaves decision history to version control and decision records, while keeping migration and compatibility instructions that still apply.
Major changes
Code that complied with the previous rule version could fail the new one, so review these before updating.
- Separate pure computation from effects practices/code-design/separate-pure-computation-from-effects 1.0.0 → 2.0.0 Keep pure computation inside complete module operations without making callers coordinate implementation details.
- Build complex components from composable parts techs/react/architecture-compound-components 1.0.0 → 2.0.0 Expose composable parts for structural variation and complete components for repeated standard arrangements.
- Comment the role, the result, and the hidden constraint techs/typescript/comment-role-result-and-constraints 1.0.0 → 2.0.0 Draft interface contracts before implementation and allow high-level phase intent alongside hidden constraints.
- Require caller-owned inputs and document defaults techs/typescript/require-properties-and-name-parameters 1.0.0 → 2.0.0 Require caller-owned inputs while hiding implementation choices and documenting ordinary defaults, and split a function only when its options select different operations or incompatible states.
Minor changes
- Organize code by feature practices/code-design/organize-code-by-feature 1.0.0 → 1.1.0 Clarify that feature-local placement permits general interfaces before a second consumer exists.
This library release also updates shared files, such as group descriptions or shared assets.
All rule versions in this library release
Library release 7 changes 2 rules: 2 new.
New rules
- Hide implementation decisions behind meaningful interfaces practices/code-design/hide-implementation-decisions 1.0.0 Keep each implementation decision, including step order, data formats, and settings the module can determine, in its owning module, and expose only caller intent, policies, and shared resources through meaningful interfaces.
- Record facts when they happen practices/code-design/record-facts-when-they-happen 1.0.0 Adds a rule: when code needs to know something that happened earlier, such as which question a reply answered or whether a payment was refunded, write it down when it happens instead of working it out later from timestamps or record order; old records that lack it get one explicit outcome, not a guess.
This library release also updates shared files, such as group descriptions or shared assets.