@iamdevlinph/codex-kit 1.1.2 → 1.1.4
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/README.md +17 -0
- package/assets/TEMPLATE_AGENTS.md +17 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -43,6 +43,23 @@ The root orchestrator plans, routes, integrates, and validates. It handles clear
|
|
|
43
43
|
small changes directly and delegates broader discovery, implementation, or review
|
|
44
44
|
according to the installed `SUBAGENT_ROUTING.md` policy.
|
|
45
45
|
|
|
46
|
+
## Project guidance included
|
|
47
|
+
|
|
48
|
+
The canonical [project guidance template](TEMPLATE_AGENTS.md) provides reusable
|
|
49
|
+
defaults for coding agents across these themes:
|
|
50
|
+
|
|
51
|
+
- instruction scope, local adaptation, and specialized project skills;
|
|
52
|
+
- minimal changes that follow the repository's existing architecture and conventions;
|
|
53
|
+
- repository discovery plus consistent, accessible user-facing design;
|
|
54
|
+
- semantic structure, readable naming, purposeful comments, and named domain constants;
|
|
55
|
+
- focused testing, conservative dependency management, and meaningful validation;
|
|
56
|
+
- durable planning, repository safety, and concise completion reporting.
|
|
57
|
+
|
|
58
|
+
`project init` installs the template as a reference, not as a replacement for
|
|
59
|
+
existing active guidance. During reconciliation, Codex merges only applicable
|
|
60
|
+
rules into the project's `AGENTS.md` and preserves its local organization and
|
|
61
|
+
adaptations.
|
|
62
|
+
|
|
46
63
|
## Commands
|
|
47
64
|
|
|
48
65
|
| Action | Command |
|
|
@@ -92,6 +92,10 @@ conditional procedures into validated project skills.
|
|
|
92
92
|
- Reuse existing constants, schemas, enums, shared types, and components before
|
|
93
93
|
creating duplicates. Add reusable domain values at their existing source of
|
|
94
94
|
truth instead of scattering magic strings.
|
|
95
|
+
- Replace numeric literals that encode domain rules, limits, durations, units,
|
|
96
|
+
or protocol values with descriptively named constants. Universally obvious
|
|
97
|
+
structural values, such as basic indexes or empty-state values, may remain
|
|
98
|
+
inline.
|
|
95
99
|
- Promote repeated closed-set domain values used in production control flow to
|
|
96
100
|
feature-owned immutable runtime constants. Where the language supports it,
|
|
97
101
|
derive static types from that runtime source; keep incidental presentation,
|
|
@@ -137,16 +141,20 @@ conditional procedures into validated project skills.
|
|
|
137
141
|
- Avoid broad commands. After changes, run the smallest targeted verification
|
|
138
142
|
that meaningfully validates them when practical, then report the command and
|
|
139
143
|
result. Use the repository's documented package manager and scripts.
|
|
140
|
-
-
|
|
141
|
-
|
|
142
|
-
|
|
144
|
+
- Select tests for regression value rather than exhaustive coverage. When the
|
|
145
|
+
repository has an established test setup, cover changed observable contracts,
|
|
146
|
+
reported regressions, meaningful boundaries, and plausible costly failures,
|
|
147
|
+
especially security, trust-boundary, or data-loss risks.
|
|
148
|
+
- Use one representative case per equivalent behavior class. Skip redundant
|
|
149
|
+
permutations, implementation-detail assertions, and contrived or unreachable
|
|
150
|
+
states unless a requirement or past defect justifies them.
|
|
143
151
|
- Treat existing tests as regression contracts. Preserve their assertions unless
|
|
144
152
|
the requested behavior intentionally changes. When behavior changes, update
|
|
145
153
|
only the affected tests and add coverage for the new contract; never weaken or
|
|
146
154
|
delete tests merely to make the suite pass.
|
|
147
|
-
- Do not introduce a test framework
|
|
148
|
-
|
|
149
|
-
|
|
155
|
+
- Do not introduce a test framework solely to satisfy this rule. If automated
|
|
156
|
+
coverage is impractical, explain why and perform the strongest targeted
|
|
157
|
+
verification available.
|
|
150
158
|
- Run the relevant focused tests after changing tested behavior.
|
|
151
159
|
- When adding or updating dependencies, pin exact versions rather than ranges.
|
|
152
160
|
With pnpm, use `pnpm add -E` (`--save-exact`).
|
|
@@ -184,7 +192,9 @@ conditional procedures into validated project skills.
|
|
|
184
192
|
contains or what a helper guarantees at the call site without opening its
|
|
185
193
|
implementation. Avoid vague transformation names such as `normalized`,
|
|
186
194
|
`processed`, `result`, or `data` when a value- or behavior-specific name is
|
|
187
|
-
available.
|
|
195
|
+
available. Prefer clear structure, and simplify or extract complex logic before
|
|
196
|
+
relying on comments. Use comments to explain non-obvious purpose, constraints,
|
|
197
|
+
invariants, tradeoffs, or workarounds, not to narrate statements.
|
|
188
198
|
- Keep naming conventions consistent within each code-owned object, schema,
|
|
189
199
|
type, and module. Do not mix identifier casing styles in the same
|
|
190
200
|
representation unless required by an external contract or framework.
|