howtocode 0.0.0-stage → 0.7.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +248 -2
- package/dist/chunk-27TRKD65.js +2 -0
- package/dist/chunk-2SHU7WQ5.js +10 -0
- package/dist/chunk-3FYCFLNK.js +1 -0
- package/dist/chunk-4BWBQ4HV.js +1 -0
- package/dist/chunk-7IUWRCVT.js +197 -0
- package/dist/chunk-7LA2AMZB.js +1 -0
- package/dist/chunk-A3LZMZ3C.js +2 -0
- package/dist/chunk-ADJLVYL3.js +1 -0
- package/dist/chunk-AEDSISJB.js +1 -0
- package/dist/chunk-AEWC7NIN.js +5 -0
- package/dist/chunk-AYBGCIQH.js +8 -0
- package/dist/chunk-DML5JQIR.js +1 -0
- package/dist/chunk-DT7VRY24.js +1 -0
- package/dist/chunk-EZNNALD3.js +1 -0
- package/dist/chunk-FGKA3GGW.js +6 -0
- package/dist/chunk-FJBHQI6Q.js +6 -0
- package/dist/chunk-JWPDIJUV.js +1 -0
- package/dist/chunk-KA2CULSQ.js +2 -0
- package/dist/chunk-KTS2F755.js +2 -0
- package/dist/chunk-LYLJZVZ7.js +1 -0
- package/dist/chunk-MCAAX33K.js +2 -0
- package/dist/chunk-MCDEIIEN.js +1 -0
- package/dist/chunk-MVVEYKN6.js +6 -0
- package/dist/chunk-MWSWXDNN.js +5 -0
- package/dist/chunk-ORJ2QZBG.js +3 -0
- package/dist/chunk-PH72JBBL.js +4 -0
- package/dist/chunk-PVFHAKN6.js +1 -0
- package/dist/chunk-QOYTPACU.js +3 -0
- package/dist/chunk-RGYXELNI.js +140 -0
- package/dist/chunk-SDO33XPR.js +4 -0
- package/dist/chunk-SZPFD4XF.js +47 -0
- package/dist/chunk-TOV557ET.js +12 -0
- package/dist/chunk-TSEKPGK4.js +1 -0
- package/dist/chunk-TUXY64DT.js +2 -0
- package/dist/chunk-U3GZBLTM.js +2 -0
- package/dist/chunk-UTYFLLSM.js +1 -0
- package/dist/chunk-V3R4FYTJ.js +1 -0
- package/dist/chunk-VWAUPT4A.js +1 -0
- package/dist/chunk-WKUJ7CFO.js +1 -0
- package/dist/chunk-WOT6VMZA.js +1 -0
- package/dist/chunk-XBVWQC7P.js +1 -0
- package/dist/chunk-XHHNV7A5.js +2 -0
- package/dist/chunk-YNMLRZJK.js +2 -0
- package/dist/chunk-YX2QDCVK.js +1 -0
- package/dist/main.js +102 -0
- package/dist/presets/backend/api/preset.json +17 -0
- package/dist/presets/backend/api/prompt.md +9 -0
- package/dist/presets/backend/api/skills/api-contract/SKILL.md +35 -0
- package/dist/presets/data/sql/preset.json +17 -0
- package/dist/presets/data/sql/prompt.md +9 -0
- package/dist/presets/data/sql/skills/query-hygiene/SKILL.md +48 -0
- package/dist/presets/devops/containers/preset.json +17 -0
- package/dist/presets/devops/containers/prompt.md +9 -0
- package/dist/presets/devops/containers/skills/image-discipline/SKILL.md +59 -0
- package/dist/presets/frontend/web-ui/preset.json +17 -0
- package/dist/presets/frontend/web-ui/prompt.md +11 -0
- package/dist/presets/frontend/web-ui/skills/responsive-check/SKILL.md +46 -0
- package/dist/presets/gamedev/rotoolbox/preset.json +31 -0
- package/dist/presets/gamedev/rotoolbox/prompt.md +34 -0
- package/dist/presets/gamedev/rotoolbox/skills/rotoolbox/SKILL.md +129 -0
- package/dist/presets/hub.json +14582 -0
- package/dist/presets/lang/typescript/preset.json +16 -0
- package/dist/presets/lang/typescript/prompt.md +5 -0
- package/dist/presets/lang/typescript/skills/ts-strict/SKILL.md +48 -0
- package/dist/presets/mcp/filesystem/preset.json +27 -0
- package/dist/presets/mcp/filesystem/prompt.md +8 -0
- package/dist/presets/mcp/filesystem/skills/mcp-files/SKILL.md +27 -0
- package/dist/presets/mcp/memory/preset.json +25 -0
- package/dist/presets/mcp/memory/skills/mcp-memory/SKILL.md +31 -0
- package/dist/presets/mcp/rea/preset.json +28 -0
- package/dist/presets/mcp/rea/prompt.md +5 -0
- package/dist/presets/mcp/rea/skills/mcp-rea/SKILL.md +6 -0
- package/dist/presets/mcp/remotion/preset.json +27 -0
- package/dist/presets/mcp/remotion/prompt.md +7 -0
- package/dist/presets/mcp/remotion/skills/mcp-remotion/SKILL.md +6 -0
- package/dist/presets/mcp-hub.json +157 -0
- package/dist/presets/mobile/app/preset.json +17 -0
- package/dist/presets/mobile/app/prompt.md +7 -0
- package/dist/presets/mobile/app/skills/touch-targets/SKILL.md +47 -0
- package/dist/presets/quality/antislop/preset.json +25 -0
- package/dist/presets/quality/antislop/prompt.md +16 -0
- package/dist/presets/quality/antislop/skills/antislop/SKILL.md +595 -0
- package/dist/presets/quality/antislop/skills/antislop/references/gate.md +84 -0
- package/dist/presets/quality/antislop/skills/antislop-code/SKILL.md +128 -0
- package/dist/presets/quality/antislop/skills/antislop-copywriting/SKILL.md +413 -0
- package/dist/presets/quality/antislop/skills/antislop-human/SKILL.md +147 -0
- package/dist/presets/quality/antislop/skills/antislop-human/contrast-check.py +165 -0
- package/dist/presets/quality/antislop/skills/antislop-layoutmobile/SKILL.md +170 -0
- package/dist/presets/quality/antislop/skills/antislop-ui/SKILL.md +313 -0
- package/dist/presets/quality/antislop/skills/antislop-ui/references/motion.md +34 -0
- package/dist/presets/quality/antislop/skills/antislop-ui/references/states.md +49 -0
- package/package.json +34 -4
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "typescript",
|
|
3
|
+
"title": "TypeScript (strict)",
|
|
4
|
+
"description": "Strict TypeScript habits: no implicit any, exhaustive unions, no unchecked casts.",
|
|
5
|
+
"category": "lang",
|
|
6
|
+
"tags": [
|
|
7
|
+
"typescript",
|
|
8
|
+
"types",
|
|
9
|
+
"strict"
|
|
10
|
+
],
|
|
11
|
+
"version": "1.0.0",
|
|
12
|
+
"skills": [
|
|
13
|
+
"ts-strict"
|
|
14
|
+
],
|
|
15
|
+
"prompt": "prompt.md"
|
|
16
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
When this preset is active, treat the type checker as part of the build, not a report:
|
|
2
|
+
|
|
3
|
+
1. Never silence an error with `as` or `!` to make the build pass. Fix the type.
|
|
4
|
+
2. Run the project's own typecheck command before saying the work is done.
|
|
5
|
+
3. A type that is `any` at a boundary is a bug you have not seen yet.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ts-strict
|
|
3
|
+
description: Strict TypeScript patterns that survive a refactor. Use when writing or changing TypeScript.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Strict TypeScript
|
|
7
|
+
|
|
8
|
+
## Never widen to make it compile
|
|
9
|
+
|
|
10
|
+
`as` and `!` silence the checker at exactly the point where it was telling you something.
|
|
11
|
+
If a cast is genuinely required, it belongs at one place with a comment saying why.
|
|
12
|
+
|
|
13
|
+
## Model the states, do not flag them
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
// This allows a combination that cannot happen.
|
|
17
|
+
type Load = { loading: boolean; error?: string; data?: Data };
|
|
18
|
+
|
|
19
|
+
// This does not.
|
|
20
|
+
type Load =
|
|
21
|
+
| { state: "loading" }
|
|
22
|
+
| { state: "error"; message: string }
|
|
23
|
+
| { state: "ready"; data: Data };
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
The second makes the impossible state unrepresentable, so no handler has to guard against it.
|
|
27
|
+
|
|
28
|
+
## Exhaustiveness
|
|
29
|
+
|
|
30
|
+
```ts
|
|
31
|
+
default: {
|
|
32
|
+
const never: never = value;
|
|
33
|
+
throw new Error(`unhandled: ${JSON.stringify(never)}`);
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Adding a variant to a union then fails the build at every place that must handle it —
|
|
38
|
+
which is the point.
|
|
39
|
+
|
|
40
|
+
## Boundaries
|
|
41
|
+
|
|
42
|
+
Parse at the edge and keep the interior typed. One function per external payload,
|
|
43
|
+
returning a narrow type or throwing. Everything behind it can then assume the shape.
|
|
44
|
+
|
|
45
|
+
## Narrowing over casting
|
|
46
|
+
|
|
47
|
+
`in`, `typeof`, `Array.isArray`, and a user-defined type guard are checked by the
|
|
48
|
+
compiler. A cast is checked by nobody.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mcp-filesystem",
|
|
3
|
+
"title": "MCP: Filesystem",
|
|
4
|
+
"description": "Adds the Model Context Protocol filesystem server, so the model can list, read and search files through MCP tools instead of only the built-in ones.",
|
|
5
|
+
"category": "mcp",
|
|
6
|
+
"tags": [
|
|
7
|
+
"mcp",
|
|
8
|
+
"files",
|
|
9
|
+
"tools"
|
|
10
|
+
],
|
|
11
|
+
"version": "1.0.0",
|
|
12
|
+
"skills": [
|
|
13
|
+
"mcp-files"
|
|
14
|
+
],
|
|
15
|
+
"prompt": "prompt.md",
|
|
16
|
+
"mcp": {
|
|
17
|
+
"filesystem": {
|
|
18
|
+
"command": "npx",
|
|
19
|
+
"args": [
|
|
20
|
+
"-y",
|
|
21
|
+
"@modelcontextprotocol/server-filesystem",
|
|
22
|
+
"."
|
|
23
|
+
],
|
|
24
|
+
"description": "List, read and search files in the project directory"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Filesystem access through MCP
|
|
2
|
+
|
|
3
|
+
The `filesystem` MCP server is configured for this project. Its tools are
|
|
4
|
+
`mcp__filesystem__*`.
|
|
5
|
+
|
|
6
|
+
Prefer the built-in `read`, `grep`, `find` and `ls` for a single known file: they
|
|
7
|
+
are faster and already approved. Use the MCP tools when the task needs a walk of
|
|
8
|
+
the tree, a listing with metadata, or a search you want to reshape between calls.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mcp-files
|
|
3
|
+
description: Work through the MCP filesystem server when it is connected. Use when listing, reading or searching project files through MCP tools.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Files through MCP
|
|
7
|
+
|
|
8
|
+
This preset adds a Model Context Protocol server that exposes the project
|
|
9
|
+
directory. Its tools arrive named `mcp__filesystem__<tool>` and are listed by
|
|
10
|
+
`/mcp`.
|
|
11
|
+
|
|
12
|
+
## Reach for the right one
|
|
13
|
+
|
|
14
|
+
- The built-in `read`, `grep`, `find` and `ls` are faster for one file you already
|
|
15
|
+
know the path to. Use them first.
|
|
16
|
+
- The MCP server is worth it for what the built-ins cannot do: a directory walk
|
|
17
|
+
the model did not anticipate, a listing with metadata, or a search whose shape
|
|
18
|
+
you want to change between calls without a new shell command.
|
|
19
|
+
- Every MCP tool is pinned to the `write` approval tier, because a server's own
|
|
20
|
+
annotations cannot be verified. Expect the approval prompt and do not try to
|
|
21
|
+
route around it.
|
|
22
|
+
|
|
23
|
+
## When it is not connected
|
|
24
|
+
|
|
25
|
+
If `/mcp` shows the server as failed, the usual cause is that `npx` cannot reach
|
|
26
|
+
the registry or the package is not installed. Report that plainly and continue
|
|
27
|
+
with the built-in tools — a missing MCP server is not a reason to stop working.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mcp-memory",
|
|
3
|
+
"title": "MCP: Memory",
|
|
4
|
+
"description": "Adds the Model Context Protocol knowledge-graph memory server, so notes the model keeps persist across sessions instead of living only in the transcript.",
|
|
5
|
+
"category": "mcp",
|
|
6
|
+
"tags": [
|
|
7
|
+
"mcp",
|
|
8
|
+
"memory",
|
|
9
|
+
"knowledge-graph"
|
|
10
|
+
],
|
|
11
|
+
"version": "1.0.0",
|
|
12
|
+
"skills": [
|
|
13
|
+
"mcp-memory"
|
|
14
|
+
],
|
|
15
|
+
"mcp": {
|
|
16
|
+
"memory": {
|
|
17
|
+
"command": "npx",
|
|
18
|
+
"args": [
|
|
19
|
+
"-y",
|
|
20
|
+
"@modelcontextprotocol/server-memory"
|
|
21
|
+
],
|
|
22
|
+
"description": "Persist entities and relations across sessions"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mcp-memory
|
|
3
|
+
description: Keep durable notes in the MCP memory server. Use when a fact should survive the session it was learned in.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Memory that outlives the session
|
|
7
|
+
|
|
8
|
+
The `memory` MCP server holds a knowledge graph: entities, relations, and
|
|
9
|
+
observations. Its tools are `mcp__memory__*` and `/mcp` lists them.
|
|
10
|
+
|
|
11
|
+
## What belongs there
|
|
12
|
+
|
|
13
|
+
- A decision and the reason for it, so the next session does not relitigate it.
|
|
14
|
+
- A convention the user stated once and expects to hold: a naming rule, a
|
|
15
|
+
preferred library, a deployment target.
|
|
16
|
+
- A fact about the environment that took real work to find.
|
|
17
|
+
|
|
18
|
+
## What does not
|
|
19
|
+
|
|
20
|
+
- Anything the repository already records. A note that duplicates a file goes
|
|
21
|
+
stale the moment the file changes, and the stale copy is the one that gets read.
|
|
22
|
+
- Task progress. That belongs in the transcript, and the transcript is what the
|
|
23
|
+
user can actually see.
|
|
24
|
+
- Secrets. A knowledge graph is plain storage with no encryption, and a token
|
|
25
|
+
written there is a token leaked.
|
|
26
|
+
|
|
27
|
+
## Before writing
|
|
28
|
+
|
|
29
|
+
Read what is already stored and update the existing entity instead of adding a
|
|
30
|
+
near-duplicate. A graph with three spellings of the same entity answers none of
|
|
31
|
+
them well.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mcp-rea",
|
|
3
|
+
"title": "MCP: REA (Reverse-Engineer Anything)",
|
|
4
|
+
"description": "Reverse-engineer any codebase with REA — structured evidence, MCP server and CLI for inspection, traces and contracts.",
|
|
5
|
+
"category": "mcp",
|
|
6
|
+
"tags": [
|
|
7
|
+
"mcp",
|
|
8
|
+
"rea",
|
|
9
|
+
"reverse-engineer",
|
|
10
|
+
"evidence"
|
|
11
|
+
],
|
|
12
|
+
"version": "1.0.0",
|
|
13
|
+
"skills": [
|
|
14
|
+
"mcp-rea"
|
|
15
|
+
],
|
|
16
|
+
"prompt": "prompt.md",
|
|
17
|
+
"mcp": {
|
|
18
|
+
"rea": {
|
|
19
|
+
"command": "npx",
|
|
20
|
+
"args": [
|
|
21
|
+
"-y",
|
|
22
|
+
"rea",
|
|
23
|
+
"mcp"
|
|
24
|
+
],
|
|
25
|
+
"description": "REA reverse-engineering: inspect a codebase, collect evidence and contracts — https://github.com/morluto/rea"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mcp-remotion",
|
|
3
|
+
"title": "MCP: Remotion Video",
|
|
4
|
+
"description": "Generate programmatic video with Remotion via MCP — scaffold projects, manage scenes, sync audio, and render videos through natural conversation.",
|
|
5
|
+
"category": "mcp",
|
|
6
|
+
"tags": [
|
|
7
|
+
"mcp",
|
|
8
|
+
"video",
|
|
9
|
+
"remotion",
|
|
10
|
+
"media"
|
|
11
|
+
],
|
|
12
|
+
"version": "1.0.0",
|
|
13
|
+
"skills": [
|
|
14
|
+
"mcp-remotion"
|
|
15
|
+
],
|
|
16
|
+
"prompt": "prompt.md",
|
|
17
|
+
"mcp": {
|
|
18
|
+
"remotion": {
|
|
19
|
+
"command": "npx",
|
|
20
|
+
"args": [
|
|
21
|
+
"-y",
|
|
22
|
+
"remotion-video-mcp"
|
|
23
|
+
],
|
|
24
|
+
"description": "Remotion video creation: scaffold, manage scenes, sync audio, render — https://github.com/dev-arctik/remotion-video-mcp"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Remotion Video — MCP
|
|
2
|
+
|
|
3
|
+
This preset adds `remotion-video-mcp` (https://github.com/dev-arctik/remotion-video-mcp).
|
|
4
|
+
|
|
5
|
+
Use it when the user wants programmatic video: scaffold a Remotion project, define compositions/scenes, add voiceover/captions/music, and render. All via MCP tools from Claude/Cursor/Codex.
|
|
6
|
+
|
|
7
|
+
Install: `npx -y remotion-video-mcp` is launched automatically by the agent. Docs: https://remotion.dev/docs/ai/claude-code-plugin
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"generatedFrom": "the Model Context Protocol reference servers, as published on npm",
|
|
4
|
+
"note": "Server definitions only. Installing one writes it into the agent's mcp.json; nothing is downloaded and nothing runs until the next session connects it. A secret is referenced as ${NAME} and read from the environment at connect time, so no token is ever written to mcp.json.",
|
|
5
|
+
"entries": [
|
|
6
|
+
{
|
|
7
|
+
"name": "filesystem",
|
|
8
|
+
"title": "Filesystem",
|
|
9
|
+
"description": "List, read and search files in the project directory through MCP tools.",
|
|
10
|
+
"category": "files",
|
|
11
|
+
"preset": "mcp-filesystem",
|
|
12
|
+
"command": "npx",
|
|
13
|
+
"args": [
|
|
14
|
+
"-y",
|
|
15
|
+
"@modelcontextprotocol/server-filesystem",
|
|
16
|
+
"."
|
|
17
|
+
],
|
|
18
|
+
"docs": "https://github.com/modelcontextprotocol/servers/tree/main/src/filesystem"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "memory",
|
|
22
|
+
"title": "Memory",
|
|
23
|
+
"description": "A knowledge graph of entities and relations that persists across sessions.",
|
|
24
|
+
"category": "reasoning",
|
|
25
|
+
"preset": "mcp-memory",
|
|
26
|
+
"command": "npx",
|
|
27
|
+
"args": [
|
|
28
|
+
"-y",
|
|
29
|
+
"@modelcontextprotocol/server-memory"
|
|
30
|
+
],
|
|
31
|
+
"docs": "https://github.com/modelcontextprotocol/servers/tree/main/src/memory"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "sequential-thinking",
|
|
35
|
+
"title": "Sequential thinking",
|
|
36
|
+
"description": "A scratchpad for multi-step reasoning the model can revise as it goes.",
|
|
37
|
+
"category": "reasoning",
|
|
38
|
+
"command": "npx",
|
|
39
|
+
"args": [
|
|
40
|
+
"-y",
|
|
41
|
+
"@modelcontextprotocol/server-sequential-thinking"
|
|
42
|
+
],
|
|
43
|
+
"docs": "https://github.com/modelcontextprotocol/servers/tree/main/src/sequentialthinking"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "github",
|
|
47
|
+
"title": "GitHub",
|
|
48
|
+
"description": "Issues, pull requests, branches and file contents of a GitHub repository.",
|
|
49
|
+
"category": "dev",
|
|
50
|
+
"command": "npx",
|
|
51
|
+
"args": [
|
|
52
|
+
"-y",
|
|
53
|
+
"@modelcontextprotocol/server-github"
|
|
54
|
+
],
|
|
55
|
+
"env": {
|
|
56
|
+
"GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_PERSONAL_ACCESS_TOKEN}"
|
|
57
|
+
},
|
|
58
|
+
"needs": [
|
|
59
|
+
"GITHUB_PERSONAL_ACCESS_TOKEN"
|
|
60
|
+
],
|
|
61
|
+
"docs": "https://github.com/modelcontextprotocol/servers/tree/main/src/github"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "postgres",
|
|
65
|
+
"title": "PostgreSQL",
|
|
66
|
+
"description": "Read-only SQL against a Postgres database, with the schema exposed as a resource.",
|
|
67
|
+
"category": "data",
|
|
68
|
+
"command": "npx",
|
|
69
|
+
"args": [
|
|
70
|
+
"-y",
|
|
71
|
+
"@modelcontextprotocol/server-postgres",
|
|
72
|
+
"postgresql://user:pass@localhost:5432/dbname"
|
|
73
|
+
],
|
|
74
|
+
"docs": "https://github.com/modelcontextprotocol/servers/tree/main/src/postgres"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "puppeteer",
|
|
78
|
+
"title": "Puppeteer",
|
|
79
|
+
"description": "Drive a headless browser: navigate, click, fill forms, screenshot, run JavaScript.",
|
|
80
|
+
"category": "web",
|
|
81
|
+
"command": "npx",
|
|
82
|
+
"args": [
|
|
83
|
+
"-y",
|
|
84
|
+
"@modelcontextprotocol/server-puppeteer"
|
|
85
|
+
],
|
|
86
|
+
"docs": "https://github.com/modelcontextprotocol/servers/tree/main/src/puppeteer"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "brave-search",
|
|
90
|
+
"title": "Brave Search",
|
|
91
|
+
"description": "Web and local search through the Brave Search API.",
|
|
92
|
+
"category": "web",
|
|
93
|
+
"command": "npx",
|
|
94
|
+
"args": [
|
|
95
|
+
"-y",
|
|
96
|
+
"@modelcontextprotocol/server-brave-search"
|
|
97
|
+
],
|
|
98
|
+
"env": {
|
|
99
|
+
"BRAVE_API_KEY": "${BRAVE_API_KEY}"
|
|
100
|
+
},
|
|
101
|
+
"needs": [
|
|
102
|
+
"BRAVE_API_KEY"
|
|
103
|
+
],
|
|
104
|
+
"docs": "https://github.com/modelcontextprotocol/servers/tree/main/src/brave-search"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "google-maps",
|
|
108
|
+
"title": "Google Maps",
|
|
109
|
+
"description": "Geocoding, reverse geocoding, place search, directions and distance.",
|
|
110
|
+
"category": "web",
|
|
111
|
+
"command": "npx",
|
|
112
|
+
"args": [
|
|
113
|
+
"-y",
|
|
114
|
+
"@modelcontextprotocol/server-google-maps"
|
|
115
|
+
],
|
|
116
|
+
"env": {
|
|
117
|
+
"GOOGLE_MAPS_API_KEY": "${GOOGLE_MAPS_API_KEY}"
|
|
118
|
+
},
|
|
119
|
+
"needs": [
|
|
120
|
+
"GOOGLE_MAPS_API_KEY"
|
|
121
|
+
],
|
|
122
|
+
"docs": "https://github.com/modelcontextprotocol/servers/tree/main/src/google-maps"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "slack",
|
|
126
|
+
"title": "Slack",
|
|
127
|
+
"description": "Read channels and post messages in a Slack workspace.",
|
|
128
|
+
"category": "comms",
|
|
129
|
+
"command": "npx",
|
|
130
|
+
"args": [
|
|
131
|
+
"-y",
|
|
132
|
+
"@modelcontextprotocol/server-slack"
|
|
133
|
+
],
|
|
134
|
+
"env": {
|
|
135
|
+
"SLACK_BOT_TOKEN": "${SLACK_BOT_TOKEN}",
|
|
136
|
+
"SLACK_TEAM_ID": "${SLACK_TEAM_ID}"
|
|
137
|
+
},
|
|
138
|
+
"needs": [
|
|
139
|
+
"SLACK_BOT_TOKEN",
|
|
140
|
+
"SLACK_TEAM_ID"
|
|
141
|
+
],
|
|
142
|
+
"docs": "https://github.com/modelcontextprotocol/servers/tree/main/src/slack"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "everything",
|
|
146
|
+
"title": "Everything (reference server)",
|
|
147
|
+
"description": "A test server that exposes every MCP feature: tools, resources, prompts and sampling. Useful to check that MCP works at all.",
|
|
148
|
+
"category": "dev",
|
|
149
|
+
"command": "npx",
|
|
150
|
+
"args": [
|
|
151
|
+
"-y",
|
|
152
|
+
"@modelcontextprotocol/server-everything"
|
|
153
|
+
],
|
|
154
|
+
"docs": "https://github.com/modelcontextprotocol/servers/tree/main/src/everything"
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mobile-app",
|
|
3
|
+
"title": "Mobile app",
|
|
4
|
+
"description": "Build a touch screen that survives a real phone: safe areas, thumb reach, no hover-only controls.",
|
|
5
|
+
"category": "mobile",
|
|
6
|
+
"tags": [
|
|
7
|
+
"mobile",
|
|
8
|
+
"touch",
|
|
9
|
+
"ios",
|
|
10
|
+
"android"
|
|
11
|
+
],
|
|
12
|
+
"version": "1.0.0",
|
|
13
|
+
"skills": [
|
|
14
|
+
"touch-targets"
|
|
15
|
+
],
|
|
16
|
+
"prompt": "prompt.md"
|
|
17
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
When this preset is active, treat a phone as the default device:
|
|
2
|
+
|
|
3
|
+
1. Design for a 360x640 viewport first, then widen. The reverse order hides the problems.
|
|
4
|
+
2. Nothing important within 8px of the screen edge — notches and gesture bars live there.
|
|
5
|
+
3. No control that needs hover. A tap has no hover state, so a hover-revealed action does not exist.
|
|
6
|
+
4. Test with the keyboard open: the viewport shrinks, and a fixed footer will cover the field being typed into.
|
|
7
|
+
5. Report the viewport sizes you actually rendered at.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: touch-targets
|
|
3
|
+
description: Size and place touch controls so they work with a thumb. Use when building anything for a phone.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Touch targets
|
|
7
|
+
|
|
8
|
+
A mouse pointer is one pixel and precise. A thumb is ~16mm wide, imprecise, and
|
|
9
|
+
covers what it touches.
|
|
10
|
+
|
|
11
|
+
## The numbers
|
|
12
|
+
|
|
13
|
+
| Thing | Minimum | Why |
|
|
14
|
+
|---|---|---|
|
|
15
|
+
| Tappable area | 44x44 px (iOS) / 48x48 dp (Android) | below this, mis-taps climb sharply |
|
|
16
|
+
| Gap between targets | 8 px | two 44px targets touching are one 88px target |
|
|
17
|
+
| Body text | 16 px | smaller triggers zoom-on-focus in mobile Safari |
|
|
18
|
+
| Line length | 45-75 characters | beyond that the eye loses the line return |
|
|
19
|
+
|
|
20
|
+
The tappable area can be larger than the visual: pad the button, or give the hit
|
|
21
|
+
area a negative margin. What matters is the box the browser hit-tests.
|
|
22
|
+
|
|
23
|
+
## Placement
|
|
24
|
+
|
|
25
|
+
- **Primary actions at the bottom.** The top of a phone screen is out of thumb
|
|
26
|
+
reach one-handed; the bottom third is the comfortable arc.
|
|
27
|
+
- **Destructive actions away from the primary one.** "Delete" next to "Save" is a
|
|
28
|
+
mis-tap waiting to happen.
|
|
29
|
+
- **Respect the safe area.** `env(safe-area-inset-bottom)` with
|
|
30
|
+
`viewport-fit=cover`, or a fixed footer sits under the home indicator.
|
|
31
|
+
|
|
32
|
+
## Keyboard and viewport
|
|
33
|
+
|
|
34
|
+
```css
|
|
35
|
+
html { height: -webkit-fill-available; }
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
A fixed footer combined with an open keyboard covers the input. Prefer a layout
|
|
39
|
+
that reflows (flex column, `min-height: 100dvh`) over one pinned to the bottom.
|
|
40
|
+
|
|
41
|
+
## What to assert
|
|
42
|
+
|
|
43
|
+
- Every control at least 44x44 px, measured from `getBoundingClientRect()`.
|
|
44
|
+
- No horizontal scroll at 360 px.
|
|
45
|
+
- Text at 16 px or more for anything focusable.
|
|
46
|
+
- The page usable with the keyboard open — shrink the viewport and check the
|
|
47
|
+
focused field is still visible.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "antislop",
|
|
3
|
+
"title": "Anti-Slop & Quality",
|
|
4
|
+
"description": "The anti-slop rule set: stop generic AI output in code, copy, UI, motion and mobile layout. Six skills plus a 38-rule filter and the delivery gate.",
|
|
5
|
+
"category": "quality",
|
|
6
|
+
"tags": [
|
|
7
|
+
"quality",
|
|
8
|
+
"design",
|
|
9
|
+
"copy",
|
|
10
|
+
"accessibility",
|
|
11
|
+
"mobile",
|
|
12
|
+
"ui",
|
|
13
|
+
"anti-slop"
|
|
14
|
+
],
|
|
15
|
+
"version": "1.0.0",
|
|
16
|
+
"skills": [
|
|
17
|
+
"antislop",
|
|
18
|
+
"antislop-code",
|
|
19
|
+
"antislop-copywriting",
|
|
20
|
+
"antislop-human",
|
|
21
|
+
"antislop-layoutmobile",
|
|
22
|
+
"antislop-ui"
|
|
23
|
+
],
|
|
24
|
+
"prompt": "prompt.md"
|
|
25
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
When this preset is active, quality work follows the anti-slop rules:
|
|
2
|
+
|
|
3
|
+
1. **Filter before you ship, not after.** Run the rule set against what you produced:
|
|
4
|
+
scan for clusters of the patterns in the anti-slop table, then ask of each one
|
|
5
|
+
whether it is there because the task needed it or because it is the default.
|
|
6
|
+
2. **A defect is a claim you can test.** Contrast from computed styles, horizontal
|
|
7
|
+
scroll at 360 px, focus order, a control with no visible focus ring — measure it
|
|
8
|
+
and report the measurement. "Looks right" is not a result.
|
|
9
|
+
3. **Copy earns its place.** No filler adjectives, no "seamlessly", no "powerful".
|
|
10
|
+
If a sentence would survive unchanged in any other product, cut it.
|
|
11
|
+
4. **Motion is a signal, not decoration.** Every animation has a reason and a
|
|
12
|
+
reduced-motion path. Durations come from the motion reference, not from taste.
|
|
13
|
+
5. **Comments explain why, never what.** A comment that restates the line below it
|
|
14
|
+
is noise; delete it or replace it with the reason the line is not obvious.
|
|
15
|
+
6. **Report what you ran.** Name the check and its output. An unverified claim of
|
|
16
|
+
quality is the slop this preset exists to stop.
|