RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/duckduckgo/content-scope-scripts

Cursor rule

.cursor/rules/strict-zero-errors-batch.mdc

Subagent task: Add 16 zero-error files to CORE_FILES for strict TypeScript checking

Cursor rules

Quality

81/100

Scores the file, not the repository.

Length

202 words

7 headings · 2 code blocks

Repository

70

— · pushed 0 days ago

Last changed

3 days ago

First indexed 3 days ago.
duckduckgo/content-scope-scripts/.cursor/rules/strict-zero-errors-batch.mdcRawGitHub
1---
2description: "Subagent task: Add 16 zero-error files to CORE_FILES for strict TypeScript checking"
3globs:
4 - "scripts/check-strict-core.js"
5 - "injected/src/features/click-to-load/ctl-config.js"
6 - "injected/src/features/context-menu.js"
7 - "injected/src/features/duckplayer-native/error-detection.js"
8 - "injected/src/features/duckplayer-native/sub-feature.js"
9 - "injected/src/features/page-observer.js"
10 - "injected/src/features/web-detection/matching.js"
11 - "injected/src/features/web-detection/parse.js"
12 - "injected/src/features/web-interference-detection.js"
13 - "injected/src/navigator-global.js"
14 - "injected/src/types/context-menu.ts"
15 - "injected/src/types/favicon.ts"
16 - "injected/src/types/hover.ts"
17 - "injected/src/types/page-observer.ts"
18 - "injected/src/types/print.ts"
19 - "injected/src/types/web-compat.ts"
20 - "injected/src/utils/dom-metadata.js"
21---
22 
23# Strict TypeScript: Zero-Error Batch
24 
25## Task
26 
27Add 16 files that already have zero strict-mode errors to `CORE_FILES` in `scripts/check-strict-core.js`. These files already pass `tsc --strict` with `noUncheckedIndexedAccess` — they just need to be registered.
28 
29## Branch
30 
31```
32git checkout main && git pull origin main && git checkout -b cursor/strict/zero-errors-batch
33```
34 
35## Files to Add to CORE_FILES
36 
37Add these entries to the `CORE_FILES` Set in `scripts/check-strict-core.js`, maintaining alphabetical order within each directory group:
38 
39```
40injected/src/features/click-to-load/ctl-config.js
41injected/src/features/context-menu.js
42injected/src/features/duckplayer-native/error-detection.js
43injected/src/features/duckplayer-native/sub-feature.js
44injected/src/features/page-observer.js
45injected/src/features/web-detection/matching.js
46injected/src/features/web-detection/parse.js
47injected/src/features/web-interference-detection.js
48injected/src/navigator-global.js
49injected/src/types/context-menu.ts
50injected/src/types/favicon.ts
51injected/src/types/hover.ts
52injected/src/types/page-observer.ts
53injected/src/types/print.ts
54injected/src/types/web-compat.ts
55injected/src/utils/dom-metadata.js
56```
57 
58## Expected Errors
59 
60**None.** All 16 files already compile clean under strict mode.
61 
62## Workflow
63 
641. `npm ci`
652. Add files to CORE_FILES in `scripts/check-strict-core.js`
663. `npm run tsc-strict-core` — must print "✅ All injected core files pass strict TypeScript checking."
674. `npm run test-unit` — must pass
685. `npm run lint` — must pass (run `npm run lint-fix` first if needed)
696. Commit: `fix(types): add 16 zero-error files to strict core checking`
707. `git push -u origin cursor/strict/zero-errors-batch`
71 
72## Constraints
73 
74- Do NOT modify any source files — only `scripts/check-strict-core.js`
75- Do NOT remove existing CORE_FILES entries
76- Do NOT add files that are not in the list above
77 

Commands it names

  • git checkout main && git pull origin main && git checkout -b cursor/strict/zero-errors-batch
  • tsc --strict
  • npm ci
  • npm run tsc-strict-core
  • npm run test-unit
  • npm run lint
  • npm run lint-fix
  • git push -u origin cursor/strict/zero-errors-batch

Sections

  • Strict TypeScript: Zero-Error Batch
  • Task
  • Branch
  • Files to Add to CORE_FILES
  • Expected Errors
  • Workflow
  • Constraints

What it covers

testtypesgit-prdo-notagent-behaviour

Stack — with the evidence

typescript

(1.00)

javascript

(1.00)

node

(1.00)

eslint

(1.00)

playwright

(0.70)

swift

(0.60)

github-actions

(0.60)

Glob targeting

  • scripts/check-strict-core.js
  • injected/src/features/click-to-load/ctl-config.js
  • injected/src/features/context-menu.js
  • injected/src/features/duckplayer-native/error-detection.js
  • injected/src/features/duckplayer-native/sub-feature.js
  • injected/src/features/page-observer.js
  • injected/src/features/web-detection/matching.js
  • injected/src/features/web-detection/parse.js
  • injected/src/features/web-interference-detection.js
  • injected/src/navigator-global.js
  • injected/src/types/context-menu.ts
  • injected/src/types/favicon.ts
  • injected/src/types/hover.ts
  • injected/src/types/page-observer.ts
  • injected/src/types/print.ts
  • injected/src/types/web-compat.ts
  • injected/src/utils/dom-metadata.js

Format

Cursor rules

The most expressive format here. Many small .mdc files, each with frontmatter declaring when it should load, so a rule about migrations only enters context when a migration is open. Costs the most to maintain and only one editor reads it.

What the corpus says about it

Repository

Owner
duckduckgo
Language
—
License
—
Archived
no

All configs in this repo

Also in duckduckgo/content-scope-scripts

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
duckduckgo/content-scope-scriptstypes-generator/AGENTS.md · 70AGENTS.mdtypescriptjavascript+5testarchtypesdo-not73/1003 days ago
duckduckgo/content-scope-scripts.cursor/rules/strict-broker-protection-actions.mdc · 70Cursor rulestypescriptjavascript+5buildteststyletypes+493/1003 days ago
duckduckgo/content-scope-scripts.cursor/rules/strict-broker-protection-rest.mdc · 70Cursor rulestypescriptjavascript+5teststyletypesgit+389/1003 days ago
duckduckgo/content-scope-scripts.cursor/rules/strict-click-to-load.mdc · 70Cursor rulestypescriptjavascript+5teststyletypesgit+289/1003 days ago
duckduckgo/content-scope-scripts.cursor/rules/strict-detectors.mdc · 70Cursor rulestypescriptjavascript+5teststyletypesgit+389/1003 days ago
duckduckgo/content-scope-scripts.cursor/rules/strict-duckplayer-native.mdc · 70Cursor rulestypescriptjavascript+5teststyletypesgit+389/1003 days ago
duckduckgo/content-scope-scripts.cursor/rules/strict-duckplayer.mdc · 70Cursor rulestypescriptjavascript+5setupteststyletypes+489/1003 days ago
duckduckgo/content-scope-scripts.cursor/rules/strict-fingerprinting.mdc · 70Cursor rulestypescriptjavascript+5teststyletypesgit+389/1003 days ago
duckduckgo/content-scope-scripts.cursor/rules/strict-message-bridge.mdc · 70Cursor rulestypescriptjavascript+5teststyletypesgit+389/1003 days ago
duckduckgo/content-scope-scripts.cursor/rules/strict-standalone-features-a.mdc · 70Cursor rulestypescriptjavascript+5teststyletypesgit+489/1003 days ago
duckduckgo/content-scope-scripts.cursor/rules/strict-standalone-features-b.mdc · 70Cursor rulestypescriptjavascript+5teststyletypesgit+389/1003 days ago
duckduckgo/content-scope-scripts.cursor/rules/strict-standalone-features-c.mdc · 70Cursor rulestypescriptjavascript+5teststyletypesgit+489/1003 days ago
duckduckgo/content-scope-scripts.cursor/rules/strict-web-compat-and-telemetry.mdc · 70Cursor rulestypescriptjavascript+5teststyletypesgit+389/1003 days ago
duckduckgo/content-scope-scriptsAGENTS.md · 70AGENTS.mdtypescriptjavascript+6buildtestlint-formatstyle+583/1003 days ago
duckduckgo/content-scope-scriptsinjected/AGENTS.md · 70AGENTS.mdtypescriptjavascript+5buildteststylearch+292/1003 days ago
duckduckgo/content-scope-scriptsmessaging/AGENTS.md · 70AGENTS.mdtypescriptjavascript+5testarchtesting-strategyapi66/1003 days ago
duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70AGENTS.mdtypescriptjavascript+5buildteststylearch+3100/1003 days ago
Diff against types-generator/AGENTS.md Diff against .cursor/rules/strict-broker-protection-actions.mdc Diff against .cursor/rules/strict-broker-protection-rest.mdc Diff against .cursor/rules/strict-click-to-load.mdc Diff against .cursor/rules/strict-detectors.mdc Diff against .cursor/rules/strict-duckplayer-native.mdc Diff against .cursor/rules/strict-duckplayer.mdc Diff against .cursor/rules/strict-fingerprinting.mdc Diff against .cursor/rules/strict-message-bridge.mdc Diff against .cursor/rules/strict-standalone-features-a.mdc Diff against .cursor/rules/strict-standalone-features-b.mdc Diff against .cursor/rules/strict-standalone-features-c.mdc Diff against .cursor/rules/strict-web-compat-and-telemetry.mdc Diff against AGENTS.md Diff against injected/AGENTS.md Diff against messaging/AGENTS.md Diff against special-pages/AGENTS.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126Cursor rulesgobun+5setupbuildtestlint-format+6100/1003 days ago
TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45Cursor rulestypescriptpytest+15testlint-formatstylearch+5100/1003 days ago
markstev/mark-starter.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+14setuptestlint-formatstyle+699/1003 days ago
Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+13setuptestlint-formatstyle+799/1003 days ago
dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+15setuptestlint-formatstyle+799/1003 days ago
deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1Cursor rulestypescriptnextjs+5setuptestlint-formatstyle+799/1003 days ago
TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45Cursor rulestypescriptpytest+15teststyletesting-strategysecurity+397/1003 days ago
langflow-ai/langflow.cursor/rules/docs_development.mdc · 153kCursor rulespythonnode+16setupbuildtestlint-format+797/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack