RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/AGENTS.md/duckduckgo/content-scope-scripts

AGENTS.md

special-pages/AGENTS.md
AGENTS.md

Quality

100/100

Scores the file, not the repository.

Length

355 words

5 headings · 2 code blocks

Repository

70

— · pushed 0 days ago

Last changed

3 days ago

First indexed 3 days ago.
duckduckgo/content-scope-scripts/special-pages/AGENTS.mdRawGitHub
1# Special Pages
2 
3Preact-based HTML/CSS/JS applications embedded in DuckDuckGo browsers. Each page is an isolated app with privileged native API access.
4 
5## Structure
6 
7```
8pages/<name>/
9├── app/ # Preact components (App.jsx, *.module.css)
10├── src/index.js # Page class with messaging methods
11├── messages/ # JSON schemas → auto-generates types/
12├── types/<name>.ts # Generated types (DO NOT EDIT)
13├── public/ # Static assets, index.html, locales/
14└── integration-tests/
15shared/ # Reusable components (Button, Card, Switch, Text) and functions
16```
17 
18## Code Style
19 
20Pages communicate with native via `@duckduckgo/messaging`. Define schemas in `messages/`:
21- `*.request.json` + `*.response.json` → async request/response
22- `*.notify.json` → fire-and-forget notification
23- `*.subscribe.json` → push-based subscription
24 
25Types in `types/` are auto-generated from `messages/` schemas - never edit these manually.
26 
27Use JSDoc types in JavaScript files. Import types via a `@typedef` after imports:
28 
29```javascript
30/** @typedef {import('./types.js').MyType} MyType */
31```
32 
33Use the Page Object pattern (see `integration-tests/<name>.js` for helpers) when writing integration tests.
34 
35Localized strings are compiled from multiple `strings.json` files into a single `public/locales/en/<page>.json` file. This is manually uploaded to Smartling to generate each `public/locales/<locale>/<page>.json` file.
36 
37## Testing
38 
39Run from `special-pages/` directory:
40 
41| Command | Purpose |
42|---------|---------|
43| `npm run test-unit` | Unit tests |
44| `npm run test-int -- --reporter list` | Integration tests (all platforms) |
45| `npm run test-int -- --project ios --repoter list` | Single platform |
46| `npm run test-int -- --grep "test name" --reporter list` | Run integration tests matching a pattern |
47| `npm run test-int -- pages/new-tab/integration-tests/new-tab.spec.js --reporter list` | Run single integration test suite |
48| `npm run test-int-x -- --reporter list` | Exclude screenshot tests |
49| `npm run test.screenshots -- --reporter list` | Screenshot tests only |
50 
51Top-level commands (`npm run build`, `npm run lint`) also work from this directory.
52 
53## Notes
54 
55- Use `.github/pull_request_template.md` when creating a pull request.
56- Use the `Build Branch` PR comment links (docs/static pages/integration pages) in testing steps for pull requests.
57- Playwright MCP server (if available) or `npx playwright` can be used to validate UI changes if desired. Use `npm run watch -- --page <name>` if user hasn't already done so and then navigate to `http://localhost:8000`.
58 

Commands it names

  • npm run test-unit
  • npm run test-int -- --reporter list
  • npm run test-int -- --project ios --repoter list
  • npm run test-int -- --grep "test name" --reporter list
  • npm run test-int -- pages/new-tab/integration-tests/new-tab.spec.js --reporter list
  • npm run test-int-x -- --reporter list
  • npm run test.screenshots -- --reporter list
  • npm run build
  • npm run lint
  • npx playwright
  • npm run watch -- --page <name>

Sections

  • Special Pages
  • Structure
  • Code Style
  • Testing
  • Notes

What it covers

buildtestcode-stylearchitecturegit-prdo-notdocs

Stack — with the evidence

typescript

(1.00)

javascript

(1.00)

node

(1.00)

playwright

(1.00)

eslint

(1.00)

swift

(0.60)

github-actions

(0.60)

Format

AGENTS.md

A plain-markdown README for coding agents, deliberately unopinionated: no frontmatter, no globs, no vendor keys. That minimalism is why it became the one file a dozen different agents will read, and why it carries the least per-file targeting power of any format here.

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-scripts.cursor/rules/strict-zero-errors-batch.mdc · 70Cursor rulestypescriptjavascript+5testtypesgitdo-not+181/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
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 .cursor/rules/strict-zero-errors-batch.mdc Diff against AGENTS.md Diff against injected/AGENTS.md Diff against messaging/AGENTS.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
TryGhost/Ghoste2e/AGENTS.md · 55kAGENTS.mdtypescriptjavascript+12setupteststylearch+2100/1003 days ago
wpscanteam/wpscanAGENTS.md · 9.7kAGENTS.mdrubyvue+3setupbuildteststyle+6100/1002 days ago
code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 67kAGENTS.mdtypescriptbun+10setupbuildtestlint-format+6100/1002 days ago
mui/material-uiAGENTS.md · 99kAGENTS.mdtypescriptjavascript+13setupbuildtestlint-format+9100/1003 days ago
aaif-goose/gooseAGENTS.md · 52kAGENTS.mdrusttypescript+2setupbuildtestlint-format+6100/1003 days ago
n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199kAGENTS.mdtypescriptlangchain+16buildteststylearch+3100/1003 days ago
SkeneTechnologies/skene-cookbookAGENTS.md · 51AGENTS.mdpythoneslint+4setupbuildtestlint-format+7100/1002 days ago
elastic/elasticsearchx-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/AGENTS.md · 78kAGENTS.mdjavanode+4buildtestlint-formatstyle+2100/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