kanbot 0.0.0-stage → 0.2.0

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.
Files changed (80) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +112 -2
  3. package/package.json +75 -5
  4. package/schema/config.schema.json +206 -0
  5. package/src/agents/load.ts +105 -0
  6. package/src/agents/sync.ts +219 -0
  7. package/src/cli.ts +27 -0
  8. package/src/commands/board.ts +140 -0
  9. package/src/commands/completion.ts +30 -0
  10. package/src/commands/doctor.ts +260 -0
  11. package/src/commands/init.ts +119 -0
  12. package/src/commands/run.ts +32 -0
  13. package/src/commands/skills.ts +63 -0
  14. package/src/commands/status.ts +70 -0
  15. package/src/commands/sync.ts +31 -0
  16. package/src/commands/upgrade.ts +70 -0
  17. package/src/completion.ts +217 -0
  18. package/src/config.ts +240 -0
  19. package/src/daemon/derive.ts +413 -0
  20. package/src/daemon/git.ts +187 -0
  21. package/src/daemon/lock.ts +29 -0
  22. package/src/daemon/loop.ts +212 -0
  23. package/src/daemon/notify.ts +44 -0
  24. package/src/daemon/snapshot.ts +109 -0
  25. package/src/daemon/state.ts +60 -0
  26. package/src/daemon/types.ts +73 -0
  27. package/src/errors.ts +171 -0
  28. package/src/github/api.ts +332 -0
  29. package/src/github/gh.ts +110 -0
  30. package/src/github/markers.ts +82 -0
  31. package/src/github/project.ts +288 -0
  32. package/src/github/trust.ts +38 -0
  33. package/src/jobs/prompts.ts +205 -0
  34. package/src/jobs/run.ts +569 -0
  35. package/src/known-hashes.json +132 -0
  36. package/src/log.ts +11 -0
  37. package/src/main.ts +21 -0
  38. package/src/providers/claude.ts +122 -0
  39. package/src/providers/codex.ts +98 -0
  40. package/src/providers/types.ts +94 -0
  41. package/src/schemas/results.ts +116 -0
  42. package/src/templates.ts +192 -0
  43. package/templates/.agents/skills/accessibility/SKILL.md +76 -0
  44. package/templates/.agents/skills/approach-designer/SKILL.md +79 -0
  45. package/templates/.agents/skills/code-review/SKILL.md +83 -0
  46. package/templates/.agents/skills/frontend-design/LICENSE.txt +177 -0
  47. package/templates/.agents/skills/frontend-design/SKILL.md +76 -0
  48. package/templates/.agents/skills/issue-splitting/SKILL.md +78 -0
  49. package/templates/.agents/skills/kanbot-admin/SKILL.md +57 -0
  50. package/templates/.agents/skills/kanbot-idea/SKILL.md +56 -0
  51. package/templates/.agents/skills/plan-template/SKILL.md +85 -0
  52. package/templates/.agents/skills/pr-description/SKILL.md +44 -0
  53. package/templates/.agents/skills/project-conventions/SKILL.md +79 -0
  54. package/templates/.agents/skills/project-memory/SKILL.md +39 -0
  55. package/templates/.agents/skills/project-memory/facts/.gitkeep +0 -0
  56. package/templates/.agents/skills/spec-review/SKILL.md +73 -0
  57. package/templates/.agents/skills/tdd/SKILL.md +51 -0
  58. package/templates/.agents/skills/user-stories/SKILL.md +82 -0
  59. package/templates/.agents/skills/verify-ui/SKILL.md +104 -0
  60. package/templates/.github/ISSUE_TEMPLATE/config.yml +1 -0
  61. package/templates/.github/ISSUE_TEMPLATE/technical.yml +15 -0
  62. package/templates/.github/ISSUE_TEMPLATE/user-story.yml +15 -0
  63. package/templates/.github/pull_request_template.md +15 -0
  64. package/templates/.github/workflows/ci.yml +23 -0
  65. package/templates/.github/workflows/kanbot-merged.yml +30 -0
  66. package/templates/.kanbot/agents/approach-designer.md +31 -0
  67. package/templates/.kanbot/agents/explorer.md +35 -0
  68. package/templates/.kanbot/agents/fixer.md +54 -0
  69. package/templates/.kanbot/agents/implementer-backend.md +57 -0
  70. package/templates/.kanbot/agents/implementer-docs.md +55 -0
  71. package/templates/.kanbot/agents/implementer-frontend.md +54 -0
  72. package/templates/.kanbot/agents/implementer-technical.md +53 -0
  73. package/templates/.kanbot/agents/plan-critic.md +36 -0
  74. package/templates/.kanbot/agents/planner.md +52 -0
  75. package/templates/.kanbot/agents/reviewer-code.md +46 -0
  76. package/templates/.kanbot/agents/reviewer-spec.md +49 -0
  77. package/templates/.kanbot/agents/test-writer.md +35 -0
  78. package/templates/.kanbot/agents/ui-verifier.md +35 -0
  79. package/templates/AGENTS.md +39 -0
  80. package/templates/CLAUDE.md +1 -0
@@ -0,0 +1,76 @@
1
+ ---
2
+
3
+ name: accessibility
4
+ description: "Practical WCAG 2.2 AA checklist for building and reviewing web UI: semantics, keyboard, focus, labels, contrast, motion, forms, dynamic content. Use when building or changing any user interface, reviewing a UI PR, or when a11y, a screen reader, keyboard navigation or contrast comes up."
5
+ ---
6
+
7
+ # Accessibility (WCAG 2.2 AA)
8
+
9
+ Build it in while writing the markup; retrofitting costs more. Native HTML elements get most of this right for free.
10
+
11
+ ## Structure and semantics
12
+
13
+ - [ ] One `<h1>` per page; headings in order without skipped levels; headings describe the section.
14
+ - [ ] Landmarks: `<header>`, `<nav>`, `<main>`, `<footer>`; one `<main>`.
15
+ - [ ] Buttons are `<button>` (actions), links are `<a href>` (navigation). No clickable `<div>`/`<span>`.
16
+ - [ ] Lists are `<ul>/<ol>`, tabular data is `<table>` with `<th scope>`.
17
+ - [ ] `lang` set on `<html>`. Page `<title>` describes the page.
18
+ - [ ] ARIA only when no native element fits; a wrong role is worse than none.
19
+
20
+ ## Keyboard and focus
21
+
22
+ - [ ] Every interactive element is reachable and operable with Tab, Shift+Tab, Enter, Space, and arrow keys where the pattern expects them (menus, tabs, radios).
23
+ - [ ] Focus order follows the visual order. No positive `tabindex`.
24
+ - [ ] Focus is always visible, with at least 3:1 contrast against its background. Never `outline: none` without a replacement.
25
+ - [ ] Focused elements are not hidden behind sticky headers or footers (2.4.11).
26
+ - [ ] Dialogs: focus moves in on open, is trapped inside, Escape closes, focus returns to the trigger. Prefer `<dialog>`.
27
+ - [ ] No keyboard traps. A "Skip to content" link when there is repeated navigation.
28
+
29
+ ## Names, labels and images
30
+
31
+ - [ ] Every control has an accessible name: visible `<label for>`, or `aria-label` for icon-only buttons.
32
+ - [ ] The accessible name contains the visible label text (2.5.3).
33
+ - [ ] Informative images have `alt` describing their purpose; decorative ones have `alt=""`. Icon SVGs inside labelled buttons get `aria-hidden="true"`.
34
+ - [ ] Link text makes sense out of context: "View invoice 1042", not "Click here".
35
+
36
+ ## Colour and contrast
37
+
38
+ - [ ] Body text at least 4.5:1; large text (24px, or 18.7px bold) at least 3:1.
39
+ - [ ] UI component boundaries and meaningful icons at least 3:1.
40
+ - [ ] Colour is never the only signal: errors also have text or an icon; links in text are underlined or otherwise distinct.
41
+ - [ ] Check both light and dark themes if the app has them.
42
+
43
+ ## Layout and input
44
+
45
+ - [ ] Works at 320px wide without horizontal scrolling (except tables, maps, code), and at 200% zoom.
46
+ - [ ] Text spacing can be increased without clipping; no fixed heights on text containers.
47
+ - [ ] Target size at least 24x24 CSS px, or enough spacing around it (2.5.8). Aim for 44x44 on touch.
48
+ - [ ] Drag-only interactions have a single-pointer alternative (2.5.7).
49
+ - [ ] Nothing depends on hover alone; tooltips are reachable by keyboard and dismissable.
50
+
51
+ ## Forms
52
+
53
+ - [ ] Labels are visible and persistent (placeholders are not labels).
54
+ - [ ] Required fields are marked in text, not only with colour or `*` without explanation.
55
+ - [ ] Errors identify the field and say how to fix it; linked via `aria-describedby`; focus or summary on submit.
56
+ - [ ] Correct `type` and `autocomplete` (`email`, `name`, `one-time-code`, …).
57
+ - [ ] Don't ask for information already given in the same flow (3.3.7); allow paste in password and code fields (3.3.8).
58
+
59
+ ## Dynamic content and motion
60
+
61
+ - [ ] Status changes that don't move focus (saved, count updated, results loaded) are announced via `role="status"` / `aria-live="polite"`. Errors that need attention: `role="alert"`.
62
+ - [ ] Loading states are announced, or the busy region has `aria-busy="true"`.
63
+ - [ ] Respect `prefers-reduced-motion`: disable non-essential animation and parallax.
64
+ - [ ] No content flashes more than 3 times per second. Auto-playing or moving content can be paused.
65
+ - [ ] Session timeouts warn and allow extension.
66
+
67
+ ## How to check quickly
68
+
69
+ 1. Tab through the changed UI from the top without a mouse. Can you do the whole task? Can you always see where focus is?
70
+ 2. Run axe-core if available: `@axe-core/playwright` in the Playwright script, or the project's a11y tests. Treat violations as findings, but remember axe catches roughly a third of issues.
71
+ 3. Inspect accessible names in Playwright: `page.getByRole("button", { name: "Save" })` should find the control. If role-based locators cannot find it, neither can a screen reader user.
72
+ 4. Zoom to 200% and resize to 320px.
73
+
74
+ ## Severity when reviewing
75
+
76
+ `blocker`: keyboard trap, primary action unreachable by keyboard or unlabelled. `major`: any other AA failure in the changed UI. `minor`: best-practice gaps beyond AA.
@@ -0,0 +1,79 @@
1
+ ---
2
+
3
+ name: approach-designer
4
+ description: Produce N genuinely different solution approaches for one problem, each with how it works, tradeoffs, risk and effort, plus a comparison table. Use for issues labelled explore:N, when writing a plan's "## Approaches" section, or when asked for alternatives or options to compare.
5
+ ---
6
+
7
+ # Approach designer
8
+
9
+ With `explore:N`, each approach is built in parallel by its own implementer on its own branch, and a human picks one by comparing working PRs. That only pays off if the approaches are different enough that seeing them side by side teaches something.
10
+
11
+ ## Make them genuinely different
12
+
13
+ Pick the axis where the decision matters most for this problem, then spread approaches across it. Useful axes:
14
+
15
+ | Axis | Example spread for "let users find old invoices" |
16
+ | ----------------- | --------------------------------------------------------------------------- |
17
+ | Interaction model | Search box · faceted filters · timeline browsing |
18
+ | Where logic lives | Client-side filtering of loaded data · server query endpoint · search index |
19
+ | Data model | Denormalised read model · query on existing tables · materialised view |
20
+ | Build vs. reuse | Custom component · existing design-system table · third-party library |
21
+ | Timing | Synchronous · background job with notification · precomputed nightly |
22
+ | Scope of change | Minimal tweak to the current screen · new dedicated screen |
23
+
24
+ Two approaches are the same approach if they differ only in: naming, styling or colours, a library swap with the same model (two date-picker packages), parameter values, or the order of the same steps.
25
+
26
+ Self-test: could a human describe the difference in one sentence that mentions user experience, architecture or cost? If not, replace one.
27
+
28
+ Constraints shared by all approaches:
29
+ - Every approach meets every acceptance criterion. If it cannot, it is not an option.
30
+ - Every approach fits one small PR. A huge approach next to a small one is not a fair comparison; shrink it or drop it.
31
+ - Every approach follows project conventions unless deviating is the point of the approach (then say so).
32
+
33
+ ## Format
34
+
35
+ Write exactly N sections, numbered from 1 with no gaps, then a comparison table.
36
+
37
+ ```markdown
38
+ ## Approaches
39
+
40
+ ### Approach 1: <descriptive name>
41
+
42
+ **Summary:** <one sentence a product owner understands.>
43
+
44
+ **How it works:** <3-6 sentences: what the user experiences, then where the logic lives and what data changes.>
45
+
46
+ **Implementation steps:**
47
+ 1. <step> Files: `…`
48
+ 2. …
49
+
50
+ **Tradeoffs:**
51
+ - Good: <concrete benefit>
52
+ - Costs: <concrete downside: complexity, perf, UX limitation, lock-in>
53
+
54
+ **Risk:** <the main thing that could go wrong, and how likely.>
55
+ **Effort:** S | M | L <relative to the other approaches, with a one-line reason.>
56
+
57
+ ### Approach 2: <descriptive name>
58
+
59
+ …
60
+
61
+ ### Comparison
62
+
63
+ | | Approach 1: <name> | Approach 2: <name> | … |
64
+ | ---------------- | ------------------ | ------------------ | --- |
65
+ | User experience | | | |
66
+ | Complexity added | | | |
67
+ | Performance | | | |
68
+ | Reversibility | | | |
69
+ | Effort | S | M | |
70
+ | Best when | | | |
71
+ ```
72
+
73
+ ## Writing good approaches
74
+
75
+ - Names describe the idea: "Inline editing", "Wizard", "Background import", not "Option A" or "Simple approach".
76
+ - Be concrete about the user experience. Implementers build what you write; vague approaches converge into the same build.
77
+ - Name real downsides. "Slightly more code" is not a tradeoff; "every list view needs a new loading state because data arrives after first render" is.
78
+ - "Best when" says which circumstances would make each approach the right choice. This is what helps the human choose.
79
+ - Do not declare a winner in the plan. A single sentence of recommendation after the table is fine if you have a clear reason.
@@ -0,0 +1,83 @@
1
+ ---
2
+
3
+ name: code-review
4
+ description: Checklist, severity rubric and finding format for reviewing a code change. Use when reviewing a branch or PR diff for correctness, tests, security and maintainability, when deciding finding severity, or when judging whether a fixer resolved a finding.
5
+ ---
6
+
7
+ # Code review
8
+
9
+ Find the problems that would hurt users or the team after merge, and say each one so precisely that it can be fixed without a conversation. A short list of real issues beats a long list of preferences.
10
+
11
+ ## Read before judging
12
+
13
+ - `git log <base>..HEAD` and `git diff <base>...HEAD --stat` to see the shape.
14
+ - Read the plan's acceptance criteria and implementation steps; the diff should match them.
15
+ - For each non-trivial hunk, open the whole function and its callers. Most real bugs sit at the edges of the diff.
16
+ - Run tests, lint and typecheck. Do not assume CI will.
17
+
18
+ ## Checklist (in priority order)
19
+
20
+ **Correctness**
21
+ - Does it do what the plan says for every input, including empty, null, zero, very large, duplicate and unicode input?
22
+ - Off-by-one, wrong comparison, inverted condition, missing `await`, unhandled promise, race between concurrent requests.
23
+ - State updates: stale state, cache not invalidated, partial writes without a transaction.
24
+ - Changed function signatures or behaviour: are all callers updated?
25
+
26
+ **Tests**
27
+ - Does each acceptance criterion have a test that would fail if the feature were removed?
28
+ - Do tests assert outcomes, or only that mocks were called?
29
+ - Unhappy paths covered? No skipped, weakened or deleted tests?
30
+
31
+ **Security**
32
+ - Input validated at trust boundaries; output encoded (no raw HTML from user input).
33
+ - Queries parameterised; no string-built SQL, shell commands or paths from user input.
34
+ - Authorisation on every new endpoint, action and data query (can user A read user B's data?).
35
+ - No secrets, tokens or personal data in code, logs, fixtures, screenshots or error messages.
36
+ - New dependencies: maintained, reasonably sized, licence compatible.
37
+
38
+ **Data and operations**
39
+ - Migrations safe on existing data and reversible, or the irreversibility is stated.
40
+ - Backward compatibility of APIs, events and stored formats.
41
+ - Errors surfaced to the user or logged with enough context; not swallowed.
42
+ - Obvious performance traps: N+1 queries, unbounded lists, work inside render loops.
43
+
44
+ **Maintainability**
45
+ - Follows `project-conventions` and the patterns of neighbouring code.
46
+ - Reuses existing utilities instead of duplicating them.
47
+ - Names say what things are; no dead code, commented-out code or leftover debug output.
48
+ - Complexity proportionate to the problem; no speculative abstractions.
49
+
50
+ ## Severity rubric
51
+
52
+ | Severity | Meaning | Blocks merge |
53
+ | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
54
+ | `blocker` | Wrong behaviour on a main path, data loss or corruption, security hole, failing tests/build, acceptance criterion untested and broken | Yes |
55
+ | `major` | Bug in an edge case users will hit, missing test for a criterion, broken error handling, convention violation that will spread, risky migration | Yes |
56
+ | `minor` | Real but low-impact issue: unclear naming, small duplication, missing test for a rare edge case | No |
57
+ | `nit` | Preference or polish. Use sparingly; at most 3 per review | No |
58
+
59
+ When unsure between two levels, pick the lower one and explain the risk.
60
+
61
+ ## Writing a finding
62
+
63
+ Each finding has: location, what is wrong, why it matters, and a suggested fix.
64
+
65
+ > `src/invoices/service.ts:84` — `total` is computed before discounts are applied, so invoices with a discount code show the undiscounted amount (criterion 3). Move the `applyDiscounts` call above the sum, and add a test with a 10% code.
66
+
67
+ - One problem per finding. Merge repeats into one finding listing all locations.
68
+ - Point at the line in the new version of the file.
69
+ - Show a failure scenario ("a user with no projects gets a 500") rather than a principle ("this is not robust").
70
+ - Suggest the fix, and code only if short.
71
+ - Ask a question only when you genuinely could not determine the answer by reading; say what you checked.
72
+
73
+ ## Avoid
74
+
75
+ - More than ~10 findings. If you have more, keep the most important and summarise the rest in one finding.
76
+ - Nit storms: formatting, import order and style a linter or formatter covers.
77
+ - Requesting scope beyond the plan. Suggest a follow-up issue as a `nit` at most.
78
+ - Rewriting the author's working approach to your preferred one without a concrete defect.
79
+ - Approving with an unresolved `blocker` or `major`.
80
+
81
+ ## Re-review rounds
82
+
83
+ For each previous finding: fixed (drop it), not fixed (repeat with the same id and what is still wrong), or the fixer disagreed (accept the reasoning, or explain once more why it matters). Check that fixes did not introduce new problems.
@@ -0,0 +1,177 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,76 @@
1
+ ---
2
+
3
+ name: frontend-design
4
+ description: Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
5
+ license: Complete terms in LICENSE.txt
6
+ ---
7
+
8
+ # Frontend Design
9
+
10
+ Approach this as the design lead at a design studio known for giving every client a distinct visual identity that is not mistaken for anyone else's. This client has already rejected proposals that felt cliché or templated, and is paying for a distinctive point of view: make deliberate, opinionated choices about palette, typography, and layout that are specific to this brief, and take aesthetic risk if justified.
11
+
12
+ ## Ground your designs in the subject matter
13
+
14
+ If the brief does not identify what the product or subject matter is, identify it yourself before designing, and confirm with the client. You can come up with one concrete subject, the design's audience, and the design's primary job, as a proposal. If there's any information in your memory about the client's preferences or context about what they're building, use that as a hint. The subject's industry, subject matter, materials, and vernacular are where distinctive visual choices come from — a design for a toy for girls aged 8–11 will be very aesthetically different from a dashboard for financial analysts. Build with the brief's real content and subject matter throughout.
15
+
16
+ ## Design principles
17
+
18
+ For web designs, the hero is the first thing viewers will see. Open with the most characteristic thing in the subject's world, in the form that is most appropriate: a headline, an image, an animation, a live demo, an interactive moment, or other treatments. Be deliberate with your choice: a big number with a small label, supporting stats, and a gradient accent is the default treatment, so only use it if that's truly the best option.
19
+
20
+ Typography carries the personality of the page. You don't need a different typeface for display or headline text and body content: use one family or two, and if two, make them clearly distinct.
21
+
22
+ Choose your typefaces deliberately, not the default families you would reach for on any other project, and set a clear type scale following the default guidance of The Elements of Typographic Style with intentional weights, widths, and spacing. When type is used as a headline or visual element, use the type treatment itself as an active part of the design, not a neutral delivery vehicle for the content.
23
+
24
+ Default to line lengths of less than 80 characters. Serif typefaces can have slightly longer line lengths; give serif body text slightly more line-height than a sans-serif.
25
+
26
+ Avoid these default typographic treatments; they are the commonest tells of a generated page:
27
+ - Accenting just a single word or phrase in a headline, like putting one word in italic/bold or a different color.
28
+ - Using all caps for labels.
29
+ - Adding unnecessary typographic labels above content.
30
+
31
+ Visual structure is information. Structural devices like outlines, borders, numbering, eyebrows, dividers, labels, etc., encode useful information about the content rather than decorate it. Many generic designs use numbered markers (01 / 02 / 03), but that's only appropriate if the content actually is a sequence — like a stepped process or a timeline. Before adding numbered markers, check the content really is a sequence.
32
+
33
+ Use non-user-triggered motion sparingly and deliberately, only to draw attention. A single orchestrated moment — one page-load sequence or one reveal — lands better than scattered effects; fade-and-slide-up entrances on each section and hover transitions on every card are the generic default and read as AI-generated. Motion that answers a person's action (opening, expanding, confirming) is welcome when it shows what changed.
34
+
35
+ Consider written content carefully. Often a design brief may not contain real content, and it's up to you to come up with copy and placeholder content. Copy can make a design feel as templated as the design itself. See the below section on writing for more guidance.
36
+
37
+ ## Process: plan, review against the brief, build, critique
38
+
39
+ For calibration, AI-generated design right now clusters around some traits:
40
+ 1. a warm cream background (near #F4F1EA) with a high-contrast serif display and a terracotta or warm-clay accent (often near #D97757 — Anthropic's own Claude-interaction accent, so on a user's brief it reads as a tell);
41
+ 2. a near-black background with a single bright acid-green or vermilion accent;
42
+ 3. a broadsheet-style layout with hairline rules, zero border-radius, and dense newspaper-like columns;
43
+ 4. the SaaS-card kit: content chopped into identical rounded cards, one border-radius on everything regardless of hierarchy, the same soft grey shadow (rgba(0,0,0,.1)) under each, and gradient washes as decoration;
44
+ 5. template chrome that appears whatever the subject: a tracked-out ALL-CAPS eyebrow label above every heading; meta strings joined with middle dots ('A · B · C'); labels built as 'WORD — fragment' with a spaced em dash; tinted near-black (#0B0B0B, #111) standing in for black; a monospace face for small data labels; a '→' appended to link and button text.
45
+
46
+ All traits are legitimate for some briefs, but they are defaults rather than choices, and they appear regardless of subject. Where the brief pins down a visual direction, follow it exactly — the brief's own words always win, including when it asks for one of these looks. Where it leaves an axis free, don't spend that freedom on one of these defaults. As with a hired human designer, there's often a careful balance between doing what you're good at and taking each project as a chance to experiment and learn.
47
+
48
+ Work in two passes. First, brainstorm a short design plan based on the client's design brief: create a compact token system with color, type, layout, and principles.
49
+ - Color: describe the core base palette as 4–6 named hex values.
50
+ - Type: the typefaces and their roles.
51
+ - Layout: a layout concept, using one-sentence prose descriptions and ASCII wireframes to ideate and compare. Include alignment guidance; should the content be left aligned, center aligned, justified?
52
+ - Principles: the high-level guidance for what makes this page unique.
53
+
54
+ Then review that plan against the brief before building: if any part of it reads like the generic default you would produce for any similar page (work through a similar prompt to see if you arrive somewhere similar) rather than a choice made for this specific brief — revise that part, say what you changed and why. Only after you've confirmed the relative uniqueness of your design plan should you start to write the code, following the revised plan.
55
+
56
+ When writing the code, be careful of structuring your CSS selector specificities. It's easy to generate CSS classes that cancel each other out (especially with a type-based selector like .section and an element-based selector like .cta). This can happen often with padding/margin between sections.
57
+
58
+ ## Restraint and self-critique
59
+
60
+ Spend your boldness in one place. Let one element be the memorable thing, keep everything around it quiet and disciplined, and cut any decoration that does not serve the brief. Build to a quality floor without announcing it: responsive down to mobile, visible keyboard focus, reduced motion respected, visually accessible, harmonious color palettes. Critique your own work as you build, taking screenshots to review if your environment supports it — a picture is worth 1000 tokens. Consider Chanel's advice: before leaving the house, take a look in the mirror and remove one accessory. Human creatives have memory and always try to do something new, so if you have a space to quickly jot down notes about what you've tried, it can help you in future passes.
61
+
62
+ ## More on writing in design
63
+
64
+ Words appear in a design for one reason: to make it easier to understand and use. They are design content, not decoration. Bring the same intentionality and minimalism to copywriting that you would bring to spacing and color. Before writing anything, ask what the design needs to say, and how it can best be said to help the person navigate the experience.
65
+
66
+ Write from the end user's perspective. Name things by what users will understand in simple language, not by how the system is built. A user manages notifications, not webhook config. Describe what something is or does in plain terms rather than selling it. Being specific and legible to new users is always better than being clever.
67
+
68
+ Use active voice as default. A CTA says exactly what happens when it is used: "Save changes," not "Submit." An action keeps the same name through the whole flow, so the button that says "Publish" produces a toast that says "Published." The vocabulary of an interface is the signposting for someone navigating the product. Cohesion and consistency are how people learn their way around.
69
+
70
+ Treat failure and emptiness as moments for direction, not mood. Explain what went wrong and how to fix it, in the interface's voice rather than a person's. Errors don't apologize, and they are never vague about what happened. An empty screen is an invitation to act.
71
+
72
+ Keep the tone conversational: plain verbs, sentence case, no filler, with tone matched to the brand and the audience. Let each written element do exactly one job.
73
+
74
+ ---
75
+
76
+ Source: vendored verbatim from [anthropics/skills](https://github.com/anthropics/skills/tree/main/skills/frontend-design) (Apache License 2.0, see LICENSE.txt).
@@ -0,0 +1,78 @@
1
+ ---
2
+
3
+ name: issue-splitting
4
+ description: Split large issues into small, vertical, independently shippable slices using INVEST and standard splitting patterns. Use when a plan feels too big for one PR, has more than ~7 acceptance criteria, touches many unrelated areas, when a human asks to split, or when deciding whether follow-up work becomes a sub-issue or an idea.
5
+ ---
6
+
7
+ # Issue splitting
8
+
9
+ The goal is the smallest change that delivers something a user can notice (or that measurably unblocks the next change), shipped in one reviewable PR. Small slices get reviewed properly, merge without conflicts, and give feedback early.
10
+
11
+ ## Is it too big?
12
+
13
+ Split when any of these hold:
14
+
15
+ - More than ~7 acceptance criteria, or criteria about clearly separate outcomes.
16
+ - Expected diff over ~400 changed lines (excluding generated files and lockfiles).
17
+ - More than one user role or more than one screen/flow is changed.
18
+ - It contains "and" in the want: "I want to filter **and** export".
19
+ - An implementation step hides a large unknown ("integrate with payment provider").
20
+ - You cannot describe how a reviewer tests it in five steps.
21
+
22
+ ## INVEST check for each slice
23
+
24
+ - **Independent**: can merge in any order relative to sibling slices, or the order is explicit.
25
+ - **Negotiable**: describes the need, leaves room in how.
26
+ - **Valuable**: a user or operator notices something, even if small.
27
+ - **Estimable**: no unbounded unknowns; otherwise spike first.
28
+ - **Small**: one PR, one concern.
29
+ - **Testable**: has Given/When/Then criteria.
30
+
31
+ ## Slice vertically, not horizontally
32
+
33
+ Wrong: "1. database tables, 2. API, 3. UI". None of these is usable alone.
34
+ Right: "1. view a list of invoices (read-only, newest first), 2. filter by status, 3. mark an invoice as paid". Each goes through every layer it needs.
35
+
36
+ ## Splitting patterns
37
+
38
+ Try these in order; pick the one that gives the thinnest valuable first slice.
39
+
40
+ | Pattern | Split by | Example |
41
+ | -------------------- | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------- |
42
+ | Workflow steps | Steps in the user's flow; ship the simplest end-to-end path first | Checkout: pay with saved card → add new card → apply discount code |
43
+ | Business rules | One rule per slice | Shipping: flat rate → free over 500 kr → regional surcharges |
44
+ | Data variations | Types or sources of data | Import: CSV → Excel → Google Sheets |
45
+ | Happy / unhappy path | Success first, then error handling and edge cases (only if the first slice still fails safely) | Upload: valid file → size limit → resumable upload |
46
+ | Interface variations | Simplest interface first | Keyboard shortcut → command palette entry → settings UI |
47
+ | Operations (CRUD) | One operation per slice | Create tag → rename tag → delete tag |
48
+ | Roles | One user role at a time | Members can comment → guests can comment |
49
+ | Performance later | Make it work, then make it fast | Synchronous report → background job with progress |
50
+ | Spike | A time-boxed investigation that answers one question, output is a decision or prototype, not production code | "Can we use the bank's API for reconciliation? Spike: authenticate and fetch one statement" |
51
+
52
+ Never split by layer, by "frontend/backend", or into "tests later".
53
+
54
+ ## Smallest shippable first slice
55
+
56
+ Ask: what is the least we could ship that someone would use or that teaches us something? Usually: one role, one happy path, one data type, hard-coded defaults instead of settings, no bulk operations. Behind a feature flag is fine if the project has flags.
57
+
58
+ ## Sub-issue or idea?
59
+
60
+ - **Sub-issue** (`subIssue: true`): a slice of this issue's need that someone should build next. Column `planning` if it is clear enough to plan now, `ideas` if it needs the human to prioritise first.
61
+ - **Idea** (`subIssue: false`, column `ideas`): related but a different need, a nice-to-have you noticed, or tech debt discovered along the way.
62
+ - **Neither**: things that are just part of doing this slice well. Keep them in the plan.
63
+
64
+ When splitting, this issue keeps the first slice. Rewrite its plan to cover only that slice and list the other slices under `## Out of scope` with a note that they were proposed as new issues.
65
+
66
+ ## Body for each new slice
67
+
68
+ ```markdown
69
+ As a <user>, I want <capability>, so that <outcome>.
70
+
71
+ <Two to four sentences: the need, and how this slice relates to the parent issue.>
72
+
73
+ ### Draft acceptance criteria
74
+
75
+ - [ ] Given …, when …, then …
76
+
77
+ Split from #<parent> (slice 2 of 3).
78
+ ```
@@ -0,0 +1,57 @@
1
+ ---
2
+
3
+ name: kanbot-admin
4
+ description: Maintain this repo's kanbot setup with a human. Use to add or edit kanbot agents, skills or project memory, change `.kanbot/config.yml`, run `kanbot upgrade` or merge `.kanbot-new` files. Not for board jobs.
5
+ ---
6
+
7
+ # kanbot admin
8
+
9
+ You are helping a human maintain kanbot, the board-driven agent team in this repo. Board agents (planner, implementers, reviewers, fixer) never use this skill.
10
+
11
+ ## Map
12
+
13
+ | Path | What | Edit? |
14
+ | -------------------------- | -------------------------------------- | ------------------------------- |
15
+ | `.kanbot/agents/<name>.md` | Agent definitions, the source of truth | Yes, then `kanbot sync` |
16
+ | `.agents/skills/<name>/` | Skills shared by all agents | Yes |
17
+ | `.kanbot/config.yml` | Daemon config; schema next to it | Yes |
18
+ | `.kanbot/manifest.json` | Template hashes from the last upgrade | Never by hand |
19
+ | `.claude/`, `.codex/` | Generated by `kanbot sync` | Never; edit the source and sync |
20
+
21
+ `kanbot <command> --help` lists every flag. Agent frontmatter fields and output schemas: read an existing agent in `.kanbot/agents/` and copy its shape.
22
+
23
+ ## Recipes
24
+
25
+ Finish every recipe with `kanbot sync` when agents changed, then `kanbot doctor`, then show the human the diff. The human commits and pushes; worktrees are made from the pushed base branch, so agents see nothing until then.
26
+
27
+ ### Add or change an agent
28
+
29
+ 1. Copy the closest existing agent. `name` must match the filename.
30
+ 2. Column agents (`tier: column`) need an `output` schema; subagents (`tier: sub`) are reached through a column agent's `subagents`.
31
+ 3. A new implementer also needs an entry under `implementers` in config and a matching `type:<x>` label on GitHub. Tell the human to create the label.
32
+ 4. The body says _how_ to work. The daemon's prompt carries the task.
33
+
34
+ ### Add a skill
35
+
36
+ 1. Create `.agents/skills/<name>/SKILL.md` with `name` (matches the folder) and a `description` that says what it covers and when it applies.
37
+ 2. Add the name to `skills` in each agent that should load it.
38
+
39
+ ### Add a memory
40
+
41
+ When the human says "remember that …" or corrects something agents keep getting wrong, add a fact per `project-memory`. Stack, commands and conventions go in `project-conventions` instead.
42
+
43
+ ### Upgrade kanbot
44
+
45
+ 1. Run `bunx kanbot@latest upgrade --dry-run` and summarise it for the human.
46
+ 2. Run `bunx kanbot@latest upgrade`.
47
+ 3. Merge every `.kanbot-new` file (below).
48
+
49
+ ### Merge `.kanbot-new` files
50
+
51
+ For each `<file>.kanbot-new` next to `<file>`:
52
+
53
+ 1. Diff the two. Name each difference: the human's customisation, or kanbot's improvement.
54
+ 2. Write the merged result into `<file>`: keep every customisation, take every improvement. Where they collide, ask the human.
55
+ 3. Delete `<file>.kanbot-new`.
56
+
57
+ Done when `kanbot doctor` reports no unmerged `.kanbot-new` files and the human has seen a per-file summary of what was kept and taken.