|
1 | | -## Agent skills |
2 | | - |
3 | 1 | ### Issue tracker |
4 | 2 |
|
5 | 3 | Issues are tracked as local markdown files under `.scratch/<feature-slug>/`. See `docs/agents/issue-tracker.md`. |
6 | 4 |
|
7 | | -### Triage labels |
8 | | - |
9 | | -Use the default mattpocock/skills triage label vocabulary. See `docs/agents/triage-labels.md`. |
10 | | - |
11 | 5 | ### Domain docs |
12 | 6 |
|
13 | 7 | This repo uses a single-context domain documentation layout. See `docs/agents/domain.md`. |
14 | | - |
15 | | -### Source and test files |
16 | | - |
17 | | -Prefer colocated tests. For `src/foo.js`, put the test in `src/foo.test.js`. For nested modules, keep the test next to the source file it covers. |
18 | | - |
19 | | -Name source files after their primary export. Use `camelCase` for functions and plain modules, and `UpperCamelCase` for classes and custom elements: |
20 | | - |
21 | | -- `src/mySuperFunction.js` |
22 | | -- `src/mySuperFunction.test.js` |
23 | | -- `src/MyElement.js` |
24 | | -- `src/MyElement.test.js` |
25 | | - |
26 | | -For new Node tests, prefer `describe` and `it` from `node:test`: |
27 | | - |
28 | | -```js |
29 | | -import { describe, it } from 'node:test'; |
30 | | - |
31 | | -describe('Test addressList', () => { |
32 | | - it('01: finds default address', async () => { |
33 | | - // ... |
34 | | - }); |
35 | | -}); |
36 | | -``` |
37 | | - |
38 | | -Use numbered `it` cases (`01:`, `02:`, etc.) when a module has multiple behavior examples. Keep test names behavior-focused. |
39 | | - |
40 | | -### Commit messages |
41 | | - |
42 | | -Use a small Conventional Commits style: |
43 | | - |
44 | | -`<type>(<module>): <short message>` |
45 | | - |
46 | | -Allowed types: `feat`, `fix`, `docs`, `test`, `refactor`, `chore`, `build`, `ci`. |
47 | | - |
48 | | -`<module>` is a short lowercase area such as `api`, `ui`, `docs`, `deploy`, or `tdd`. Keep the message short, use imperative or present-tense wording, and do not end it with a period. |
49 | | - |
50 | | -Examples: |
51 | | - |
52 | | -```txt |
53 | | -feat(auth): add login redirect |
54 | | -fix(deploy): handle missing env file |
55 | | -docs(setup): clarify build command |
56 | | -test(loop): cover retry failure path |
57 | | -refactor(cli): simplify command parsing |
58 | | -chore(deps): update lockfile |
59 | | -ci(release): add publish workflow |
60 | | -``` |
0 commit comments