@hxp-tools/codedna 0.0.0-stage → 1.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.
- package/CHANGELOG.md +179 -0
- package/LICENSE +21 -0
- package/README.md +136 -2
- package/assets/achievements.svg +87 -0
- package/assets/fingerprint-engine.svg +60 -0
- package/assets/hero.svg +44 -0
- package/assets/quest-map.svg +55 -0
- package/bin/codedna.js +98 -0
- package/install.sh +95 -0
- package/package.json +50 -4
- package/skill/SKILL.md +286 -0
- package/skill/scripts/__pycache__/codedna_stats.cpython-315.pyc +0 -0
- package/skill/scripts/__pycache__/codedna_wire.cpython-315.pyc +0 -0
- package/skill/scripts/codedna_stats.py +802 -0
- package/skill/scripts/codedna_wire.py +133 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to codedna are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
4
|
+
|
|
5
|
+
## [1.2.0] - 2026-11-23
|
|
6
|
+
|
|
7
|
+
Product release. codedna ships as an npm package under `@hxp-tools/codedna`, with a gamified README and SVG product graphics. Install paths and skill behavior are unchanged.
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- Publish `@hxp-tools/codedna` with an `npx` installer that wraps `install.sh`.
|
|
12
|
+
- Add product graphics under `assets/`: hero, quest map, fingerprint engine, and achievements.
|
|
13
|
+
- Rewrite the README as a product surface: quest map, status board, achievements, and a one-command start path.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- Point install docs at the npm package and the `v1.2.0` release tarball.
|
|
18
|
+
- Slim agent-support docs so install paths live in one place instead of drifting across the README.
|
|
19
|
+
|
|
20
|
+
## [1.1.1] - 2026-10-08
|
|
21
|
+
|
|
22
|
+
Accuracy and maintenance release. Three measurement fixes change reported numbers, so profiles generated with 1.1.0 may report different quote shares, variable counts, and boolean-prefix shares after upgrading. The stats JSON keeps its shape, and the wiring helper gains an `unchanged` action.
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- Stop counting Python docstrings toward quote style. Each `"""..."""` was read as three double-quoted strings, so docstring-heavy code looked more double-quoted than it was. Triple-quoted strings are now left out of the quote measurement.
|
|
27
|
+
- Stop apostrophes from pairing into phantom single-quoted strings. An apostrophe in a comment or inside a double-quoted string (`"can't"`) paired with the next `'` in the file, even lines later. Quotes are now read in one left-to-right scan that skips comments and JS or TS regex literals and never lets a single- or double-quoted string cross a line. Template literals still span lines, including after a trailing backslash.
|
|
28
|
+
- Count each identifier under one kind. JS arrow functions and `const` constants were also counted as variables, as were Python module constants, which inflated the variable histogram and counted the same name twice in the boolean-prefix share. On the `terse_js` fixture the variable count drops from 9 to 5.
|
|
29
|
+
- Honor `.gitignore` in the stats helper. `skill/SKILL.md` told agents to skip ignored files, but the helper walked every directory not on its hard-coded list. Inside a Git work tree it now measures the files `git ls-files` reports, tracked or untracked but not ignored, and falls back to the directory walk elsewhere or when the target itself is ignored. Nested repositories are measured under their own ignore rules; Git submodules are left out, like other vendored code. File names that are not valid UTF-8 are kept.
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
|
|
33
|
+
- Spread a capped language sample evenly across sorted paths instead of taking the first 800 files in filesystem order, which favored whichever directory the walk reached first.
|
|
34
|
+
- Recognize `.mts`, `.cts`, `.cc`, `.cxx`, `.hpp`, and `.kts` files.
|
|
35
|
+
- Omit the `quotes` line from the text report when no quoted strings were counted, instead of printing it empty.
|
|
36
|
+
- Report `unchanged` from the wiring helper when a file already holds the current block, and skip the write so the file is not touched. Created and updated files are byte-identical to 1.1.0.
|
|
37
|
+
- Simplify `write_target`, `target_path`, and target de-duplication in the wiring helper.
|
|
38
|
+
- Resolve each install target once in `install.sh` and copy every helper under `skill/scripts/` by glob, so a new helper cannot be left out of the install.
|
|
39
|
+
- Tell agents in `skill/SKILL.md` what to do when Python is unavailable: skip measurement, profile from configs and close reading, and say so in the report.
|
|
40
|
+
- Run CI on Python 3.9, the `python3` that ships with macOS, and on the latest Python 3. Move to `actions/checkout@v7` and `actions/setup-python@v7`, run on pushes to `main`, tags, and pull requests instead of every push, use a read-only token, and use the runner's preinstalled ShellCheck.
|
|
41
|
+
- Document the Python requirement in the README, add a section on running the helpers directly, replace the placeholder pre-commit command with working Claude Code and Codex examples that pipe in the staged diff, and fix list labels that read as run-on sentences.
|
|
42
|
+
- Add a release checklist and the Python 3.9 floor to `CONTRIBUTING.md`, and list the `--agent` target names in `docs/AGENT_SUPPORT.md`.
|
|
43
|
+
|
|
44
|
+
### Added
|
|
45
|
+
|
|
46
|
+
- Extend the docs link test to `skill/SKILL.md` and check `#anchor` links against real headings, ignoring fenced code.
|
|
47
|
+
- Add a test that the top `CHANGELOG.md` entry and its link reference match the version in `skill/SKILL.md`.
|
|
48
|
+
- Add regression tests for every fix above, each checked to fail when its fix is reverted. The suite is 60 tests.
|
|
49
|
+
|
|
50
|
+
## [1.1.0] - 2026-08-19
|
|
51
|
+
|
|
52
|
+
Prose-voice release. CodeDNA now profiles the words inside a repository as part of its fingerprint, while keeping repository evidence stronger than generic writing rules. The stats JSON gains two additive objects per language: `comment_voice` and `error_message_voice`.
|
|
53
|
+
|
|
54
|
+
### Added
|
|
55
|
+
|
|
56
|
+
- Measure comment length, sentence-like versus fragment-like style, capitalization, terminal punctuation, first-person and second-person use, and contractions. The text report prints the highest-signal figures and JSON retains the full result.
|
|
57
|
+
- Measure capitalization and terminal punctuation in literal error messages for supported language patterns. Dynamic messages remain a close-reading task rather than being guessed from partial syntax.
|
|
58
|
+
- Profile human-facing prose by channel: comments and docstrings, errors and validation, logs, test descriptions, CLI or UI text, and repository documentation.
|
|
59
|
+
- Add `Human-facing prose` and `Voice cues to preserve` sections to the generated profile template. Profiles now record positive habits to reproduce, not only tells to avoid.
|
|
60
|
+
- Add a repository-aware prose fallback for puffery, vague attribution, formulaic transitions, generic vocabulary and conclusions, rhetorical scaffolding, chatbot residue, filler, hedging, abstract jargon, mechanism-free claims, dense passive sentences, weak verbs, presentation templates, and punctuation drift.
|
|
61
|
+
- Add a focused prose fixture and regression coverage for comment voice, error-message voice, decorated block comments, multiline Python strings, commented errors, and every supported error-message pattern. The suite is 43 tests.
|
|
62
|
+
|
|
63
|
+
### Changed
|
|
64
|
+
|
|
65
|
+
- Let Match and Check handle repository prose as well as code. Both compare like channels, so an error message is not judged against README prose unless the repository uses the same voice for both.
|
|
66
|
+
- Update the generated agent-instruction block so installed profiles apply to repository prose and message voice as well as code.
|
|
67
|
+
- Add a final Match self-audit that asks what still sounds unlike the repository.
|
|
68
|
+
- Make generic prose checks subordinate to the profile and neighboring examples. CodeDNA preserves observed irregularities but never invents inconsistency to imitate a human.
|
|
69
|
+
- Replace fixed report counts with evidence-based output. Check returns the highest-signal giveaways instead of forcing three, and the profile TL;DR uses the smallest useful set instead of forcing ten.
|
|
70
|
+
- Update the README and contributor guidance for the new profile sections and measurements.
|
|
71
|
+
- Adapt the prose-review concepts from [pstack's unslop skill](https://github.com/cursor/plugins/blob/main/pstack/skills/unslop/SKILL.md) to CodeDNA's corpus-first model.
|
|
72
|
+
|
|
73
|
+
## [1.0.4] - 2026-08-01
|
|
74
|
+
|
|
75
|
+
Robustness release. One wiring fix restores a guarantee the docs already made. Nothing here changes a measurement, so profiles generated with 1.0.3 report the same numbers.
|
|
76
|
+
|
|
77
|
+
### Fixed
|
|
78
|
+
|
|
79
|
+
- Stop the wiring helper from deleting content between an unpaired `<!-- codedna:start -->` marker and the real block below it. A file left carrying a start marker with no matching end marker lost everything in between on the second run, including another tool's block and the user's own prose. `docs/AGENT_SUPPORT.md` already stated that the rest of the file is left untouched; now it is. The unpaired marker is left where it sits rather than absorbed.
|
|
80
|
+
|
|
81
|
+
### Changed
|
|
82
|
+
|
|
83
|
+
- Pass the block markers explicitly from `write_target` into `replace_block` instead of letting them fall back to the module constants. Output is byte-identical. The helper no longer assumes the markers it is handed are the ones it was built with.
|
|
84
|
+
- Correct `skill/SKILL.md`, which called the TODO/FIXME figure a density. The stats helper reports a count.
|
|
85
|
+
|
|
86
|
+
### Added
|
|
87
|
+
|
|
88
|
+
- Add regression tests for the unpaired-marker fix, for a start marker appearing inside the block being replaced, and for `replace_block` with non-default markers. The suite is 36 tests.
|
|
89
|
+
|
|
90
|
+
## [1.0.3] - 2026-07-31
|
|
91
|
+
|
|
92
|
+
Accuracy release. Every change below corrects a measurement or a claim that was wrong, so profiles generated with 1.0.2 may report different numbers after upgrading. That is the point.
|
|
93
|
+
|
|
94
|
+
### Fixed
|
|
95
|
+
|
|
96
|
+
- Fix comment density and code-line counts for Python files that open a multi-line string mid-line (SQL blobs, templates, prompt constants). The closing triple quote was read as the start of a docstring, so the remainder of the file was counted as comment. On codedna's own repository this reported 13.4% comment density against a true 0.9%.
|
|
97
|
+
- Count multi-line JSDoc blocks as documentation. Only single-line `/** ... */` was recognized, understating doc-comment coverage on any codebase that uses conventional JSDoc.
|
|
98
|
+
- Stop counting a plain `//` aside as a doc comment outside Go. Go keeps `//`, since that is its documentation convention.
|
|
99
|
+
- Measure function length in tab-indented Python. Every function in a tab-indented file was reported as one line long.
|
|
100
|
+
- Read files with a UTF-8 byte order mark so the first line is not hidden from every pattern.
|
|
101
|
+
- Skip minified and generated files, which dominated naming and identifier-length histograms and could invert the reported dominant convention. Skipped files are disclosed in the output.
|
|
102
|
+
- Require a word boundary for boolean prefixes, so `issue` and `island` no longer count as `is`-prefixed.
|
|
103
|
+
- Do not count blank lines inside a block comment toward a metric defined as a percentage of non-blank lines.
|
|
104
|
+
- Match the `<!-- codedna:start -->` and `<!-- codedna:end -->` markers as a pair when wiring. A stray closing marker earlier in the file made every run append another block.
|
|
105
|
+
- Preserve indentation after the wired block, and leave instruction files byte-identical when re-wiring. The second run on a fresh repository previously produced a spurious diff.
|
|
106
|
+
|
|
107
|
+
### Changed
|
|
108
|
+
|
|
109
|
+
- Note in the stats output when `UPPER` marks a single-word all-caps constant compatible with `SCREAMING_SNAKE`, mirroring the existing `lower` note.
|
|
110
|
+
- Correct `CONTRIBUTING.md`, which presented the wiring helper as a read-only sanity check. It writes files, and the instructions now say so and point at a throwaway copy.
|
|
111
|
+
- Correct `docs/AGENT_SUPPORT.md`, which said `AGENTS.md` is created only when no other instruction file exists. It is created or updated either way.
|
|
112
|
+
|
|
113
|
+
### Added
|
|
114
|
+
|
|
115
|
+
- Add regression tests for every fix above, doubling the suite from 15 tests to 33.
|
|
116
|
+
- Add a test asserting the version in `skill/SKILL.md` matches every other version reference in the skill and the agent support docs, including the release tarball URL.
|
|
117
|
+
- Accept `start_marker` and `end_marker` arguments in `replace_block`. Nothing passes them yet; they exist so a sibling skill can reuse the helper without its markers defaulting to codedna's.
|
|
118
|
+
|
|
119
|
+
## [1.0.2] - 2026-07-13
|
|
120
|
+
|
|
121
|
+
### Changed
|
|
122
|
+
|
|
123
|
+
- Make `install.sh` require an explicit target (`all`, `claude`, `codex`, `cursor`, or `windsurf`) instead of installing into every supported agent home by default.
|
|
124
|
+
- Update docs and release package examples for the canonical `hannsxpeter/codedna` repository.
|
|
125
|
+
- Update generated profile templates to identify codedna v1.0.2.
|
|
126
|
+
|
|
127
|
+
### Added
|
|
128
|
+
|
|
129
|
+
- Add `skill/scripts/codedna_wire.py`, a tested helper for idempotently wiring `CODEDNA.md` into `AGENTS.md`, `CLAUDE.md`, `GEMINI.md`, GitHub Copilot instructions, Cursor rules, and Windsurf/Cascade rules.
|
|
130
|
+
- Add deeper stats helper metrics for function-size distribution, identifier-length distribution, boolean-prefix share, TODO/FIXME density, and doc-comment coverage.
|
|
131
|
+
- Add tests for wiring behavior, safer installer defaults, and the new metrics.
|
|
132
|
+
|
|
133
|
+
## [1.0.1] - 2026-06-11
|
|
134
|
+
|
|
135
|
+
### Fixed
|
|
136
|
+
|
|
137
|
+
- Install codedna as a standard `SKILL.md` directory for Claude Code, Codex, and Windsurf/Cascade instead of a bare markdown file that skill hosts do not load.
|
|
138
|
+
- Remove stale bare-file installs from skill directories where applicable.
|
|
139
|
+
|
|
140
|
+
### Changed
|
|
141
|
+
|
|
142
|
+
- Move the skill entrypoint to `skill/SKILL.md`.
|
|
143
|
+
- Extract the stats helper to `skill/scripts/codedna_stats.py` so it is executed as a bundled script instead of transcribed from markdown.
|
|
144
|
+
- Stamp generated profile templates with the codedna version and generation date.
|
|
145
|
+
- Weight author-scoped file sampling by touch frequency instead of treating every touched file equally.
|
|
146
|
+
- Default Check mode to the current diff when no review target is specified, and warn when a profile looks stale.
|
|
147
|
+
- Replace Claude-only Map wiring with portable project wiring for `AGENTS.md`, `CLAUDE.md`, `GEMINI.md`, GitHub Copilot instructions, Cursor rules, and Windsurf/Cascade rules.
|
|
148
|
+
|
|
149
|
+
### Added
|
|
150
|
+
|
|
151
|
+
- Add unit tests and GitHub Actions CI for the stats helper and installer.
|
|
152
|
+
- Add a local markdown-link test and a README pre-commit hook recipe.
|
|
153
|
+
- Add helper safeguards for capped samples, oversized files, context-managed reads, JS arrow-function detection, and language-aware quote reporting.
|
|
154
|
+
- Add multi-target installer support for `all`, `claude`, `codex`, and `windsurf`.
|
|
155
|
+
- Add an agent support matrix in `docs/AGENT_SUPPORT.md`.
|
|
156
|
+
|
|
157
|
+
## [1.0.0] - 2026-06-06
|
|
158
|
+
|
|
159
|
+
Initial release.
|
|
160
|
+
|
|
161
|
+
### Added
|
|
162
|
+
|
|
163
|
+
- **Map mode**: scan a codebase and generate `CODEDNA.md`, a specific, evidence-backed profile of its naming, formatting, comment voice, structure, error handling, types, imports, tests, and idioms. Reads linter and formatter configs as enforced ground truth, separated from observed conventions.
|
|
164
|
+
- **Match mode**: write new code that follows an existing `CODEDNA.md`, deferring to the local file's dialect on conflicts.
|
|
165
|
+
- **Check mode**: review a diff, file, or pasted output against the profile and report deviations by category, with severity and concrete rewrites.
|
|
166
|
+
- **CLAUDE.md wiring**: Map writes an idempotent, clearly-marked pointer block into the target repo's `CLAUDE.md` so the profile loads automatically and is actually consulted.
|
|
167
|
+
- **AI-tells catalog**: a self-check list and 15 cataloged tells (over-commenting, defensive boilerplate, vocabulary drift, and more) used by Match to avoid and by Check to flag.
|
|
168
|
+
- **Inlined stats helper**: a stdlib-only Python script embedded in the skill that reports naming-casing histograms, comment density (including block and doc comments), indentation, and quote style to ground the profile in real frequencies.
|
|
169
|
+
- **Profile template**: a fixed `CODEDNA.md` structure that enforces specificity and pairs every convention with a real snippet.
|
|
170
|
+
- Packaged as a single self-contained file, `codedna.md`, plus an `install.sh` for one-command installation.
|
|
171
|
+
|
|
172
|
+
[1.2.0]: https://github.com/hannsxpeter/codedna/releases/tag/v1.2.0
|
|
173
|
+
[1.1.1]: https://github.com/hannsxpeter/codedna/releases/tag/v1.1.1
|
|
174
|
+
[1.1.0]: https://github.com/hannsxpeter/codedna/releases/tag/v1.1.0
|
|
175
|
+
[1.0.4]: https://github.com/hannsxpeter/codedna/releases/tag/v1.0.4
|
|
176
|
+
[1.0.3]: https://github.com/hannsxpeter/codedna/releases/tag/v1.0.3
|
|
177
|
+
[1.0.2]: https://github.com/hannsxpeter/codedna/releases/tag/v1.0.2
|
|
178
|
+
[1.0.1]: https://github.com/hannsxpeter/codedna/releases/tag/v1.0.1
|
|
179
|
+
[1.0.0]: https://github.com/hannsxpeter/codedna/releases/tag/v1.0.0
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Hanns Peter
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,137 @@
|
|
|
1
|
-
#
|
|
1
|
+
# codedna
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://github.com/hannsxpeter/codedna/actions/workflows/ci.yml)
|
|
4
|
+
[](https://github.com/hannsxpeter/codedna/releases)
|
|
5
|
+
[](https://www.npmjs.com/package/@hxp-tools/codedna)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
|
|
8
|
+

|
|
9
|
+
|
|
10
|
+
### Does this diff sound like you wrote it?
|
|
11
|
+
|
|
12
|
+
**codedna fingerprints a codebase so AI contributions match the author.**
|
|
13
|
+
|
|
14
|
+
It studies naming, comments, errors, docs, structure, and idioms the way you would study a writer's voice, writes the conventions into `CODEDNA.md`, and uses that profile so future work blends in. Formatters already own quotes and indent. codedna spends its attention on the fingerprint they cannot touch.
|
|
15
|
+
|
|
16
|
+
## Quest map
|
|
17
|
+
|
|
18
|
+

|
|
19
|
+
|
|
20
|
+
| Level | Mode | Clear it with | Reward |
|
|
21
|
+
| --- | --- | --- | --- |
|
|
22
|
+
| **01** | **Map** | "build the codedna for this repo" | `CODEDNA.md` + agent wiring |
|
|
23
|
+
| **02** | **Match** | "add this in the style of the repo" | Contributions that blend in |
|
|
24
|
+
| **03** | **Check** | "check this against the codedna" | Named tells before they ship |
|
|
25
|
+
|
|
26
|
+
If a repo has no profile yet, Map runs first. Match and Check refuse to invent a style.
|
|
27
|
+
|
|
28
|
+
## Fingerprint engine
|
|
29
|
+
|
|
30
|
+

|
|
31
|
+
|
|
32
|
+
1. **Configs** settle what tooling already enforces (Prettier, ruff, gofmt, and friends).
|
|
33
|
+
2. **Stats** ground the profile in real frequencies: naming casing, comment density, voice, error punctuation.
|
|
34
|
+
3. **Close reading** captures the habits numbers miss: verb dialect, extraction threshold, channel-specific prose.
|
|
35
|
+
|
|
36
|
+
Every convention in the profile is specific enough that it would read differently for a different codebase. Generic lines get sharpened or cut.
|
|
37
|
+
|
|
38
|
+
## Achievements
|
|
39
|
+
|
|
40
|
+

|
|
41
|
+
|
|
42
|
+
| Unlock | How you earn it |
|
|
43
|
+
| --- | --- |
|
|
44
|
+
| Profile Built | `CODEDNA.md` exists and is specific |
|
|
45
|
+
| Voice Captured | Comment register and density recorded |
|
|
46
|
+
| Tells Catalogued | House-specific AI tells listed |
|
|
47
|
+
| Diff Clean | Check finds nothing foreign |
|
|
48
|
+
| Wired In | `AGENTS.md` (or peer file) points at the profile |
|
|
49
|
+
| Stats Grounded | Histograms from the real corpus |
|
|
50
|
+
| Prose Matched | Errors, docs, and logs treated as channels |
|
|
51
|
+
| Formatter Ignored | Profile covers only unenforced habits |
|
|
52
|
+
|
|
53
|
+
## Press start
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
npx @hxp-tools/codedna@latest
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Or pick a target: `npx @hxp-tools/codedna@latest cursor` (also `claude`, `codex`, `windsurf`, or `all`).
|
|
60
|
+
|
|
61
|
+
From source:
|
|
62
|
+
|
|
63
|
+
```sh
|
|
64
|
+
git clone https://github.com/hannsxpeter/codedna.git
|
|
65
|
+
cd codedna
|
|
66
|
+
./install.sh cursor # or: all | claude | codex | windsurf
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Restart the agent, then ask:
|
|
70
|
+
|
|
71
|
+
> build the codedna for this repo
|
|
72
|
+
|
|
73
|
+
Python 3.9+ is required for the helpers. Without Python, the agent still profiles from configs and close reading, and says so in the report.
|
|
74
|
+
|
|
75
|
+
Release tarball:
|
|
76
|
+
|
|
77
|
+
```sh
|
|
78
|
+
curl -L https://github.com/hannsxpeter/codedna/releases/download/v1.2.0/codedna-v1.2.0.tar.gz | tar xz
|
|
79
|
+
cd codedna-1.2.0
|
|
80
|
+
./install.sh codex
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Install paths and wiring details: [docs/AGENT_SUPPORT.md](docs/AGENT_SUPPORT.md).
|
|
84
|
+
|
|
85
|
+
## What a first Map looks like
|
|
86
|
+
|
|
87
|
+
codedna reads linter and formatter configs, runs a stdlib-only stats pass, close-reads a representative sample, then writes a profile whose TL;DR looks like this:
|
|
88
|
+
|
|
89
|
+
```markdown
|
|
90
|
+
## TL;DR
|
|
91
|
+
1. Functions and variables are camelCase; types PascalCase; constants SCREAMING_SNAKE.
|
|
92
|
+
2. Comment only the non-obvious why. Most functions have no comment.
|
|
93
|
+
3. Errors are terse `throw new Error("...")`. No custom error classes.
|
|
94
|
+
4. Functions are small (median ~9 lines); repetition is tolerated over premature abstraction.
|
|
95
|
+
5. Comments are short sentence fragments; error strings are lowercase and omit terminal punctuation.
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Then it points the repo's agent instruction files at that profile so Match and Check actually load it.
|
|
99
|
+
|
|
100
|
+
## Running the helpers directly
|
|
101
|
+
|
|
102
|
+
```sh
|
|
103
|
+
python3 skill/scripts/codedna_stats.py /path/to/repo
|
|
104
|
+
python3 skill/scripts/codedna_stats.py /path/to/repo --json
|
|
105
|
+
python3 skill/scripts/codedna_wire.py /path/to/repo
|
|
106
|
+
python3 skill/scripts/codedna_wire.py /path/to/repo --all
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
The stats helper only reads. Inside a Git work tree it measures files Git would track. The wiring helper reports each file as `created`, `updated`, or `unchanged`.
|
|
110
|
+
|
|
111
|
+
Optional pre-commit hook (prints a review, never blocks):
|
|
112
|
+
|
|
113
|
+
```sh
|
|
114
|
+
cat > .git/hooks/pre-commit <<'HOOK'
|
|
115
|
+
#!/usr/bin/env sh
|
|
116
|
+
git diff --staged | claude -p "check this staged diff against the codedna" || true
|
|
117
|
+
HOOK
|
|
118
|
+
chmod +x .git/hooks/pre-commit
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## What it captures
|
|
122
|
+
|
|
123
|
+
- **Naming**: casing, verb dialect (`get` vs `fetch` vs `load`), abbreviations, boolean prefixes
|
|
124
|
+
- **Comments and docs**: density, why-vs-what, register, doc-comment norms
|
|
125
|
+
- **Prose by channel**: errors, validation, logs, test descriptions, CLI or UI text, repository docs
|
|
126
|
+
- **Structure and control flow**: function size, extraction threshold, early returns, async style
|
|
127
|
+
- **Error handling**: defensiveness, custom types, message tone
|
|
128
|
+
- **Idioms**: reused helpers and domain vocabulary
|
|
129
|
+
- **AI tells**: where this author is the opposite of the AI default
|
|
130
|
+
|
|
131
|
+
## Contributing
|
|
132
|
+
|
|
133
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md). Ground rules: [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
|
|
134
|
+
|
|
135
|
+
## License
|
|
136
|
+
|
|
137
|
+
[MIT](LICENSE).
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 540" width="1200" height="540" role="img" aria-labelledby="t d">
|
|
2
|
+
<title id="t">codedna achievements</title>
|
|
3
|
+
<desc id="d">Eight milestones. Profile Built, Voice Captured, Tells Catalogued, Diff Clean, Wired In, Stats Grounded, Prose Matched, Formatter Ignored.</desc>
|
|
4
|
+
<style>
|
|
5
|
+
.sans{font-family:"Avenir Next","Helvetica Neue",Helvetica,Arial,sans-serif}
|
|
6
|
+
.mono{font-family:ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace}
|
|
7
|
+
</style>
|
|
8
|
+
<rect x="0.5" y="0.5" width="1199" height="539" rx="10" fill="#1B1916" stroke="#34312B"/>
|
|
9
|
+
<path d="M1 44H1199V11a10 10 0 0 0-10-10H11A10 10 0 0 0 1 11Z" fill="#23211D"/>
|
|
10
|
+
<line x1="1" y1="44" x2="1199" y2="44" stroke="#34312B"/>
|
|
11
|
+
<text x="32" y="28" class="mono" font-size="13" font-weight="700" fill="#F2F65A" letter-spacing="1.5">ACHIEVEMENTS</text>
|
|
12
|
+
<text x="1168" y="28" class="mono" font-size="13" fill="#A5A397" text-anchor="end">8 MILESTONES, EACH TIED TO A REAL OUTCOME</text>
|
|
13
|
+
|
|
14
|
+
<g transform="translate(36 84)">
|
|
15
|
+
<rect width="264" height="190" rx="4" fill="#23211D" stroke="#34312B"/>
|
|
16
|
+
<circle cx="48" cy="52" r="28" fill="#1B1916" stroke="#F2F65A" stroke-width="2"/>
|
|
17
|
+
<text x="48" y="58" class="mono" font-size="18" font-weight="700" fill="#F2F65A" text-anchor="middle">01</text>
|
|
18
|
+
<text x="244" y="30" class="mono" font-size="11" font-weight="700" fill="#A5A397" text-anchor="end" letter-spacing="1.5">UNLOCK</text>
|
|
19
|
+
<text x="20" y="116" class="sans" font-size="20" font-weight="700" fill="#EDEDE6">Profile Built</text>
|
|
20
|
+
<text x="20" y="144" class="mono" font-size="13" font-weight="700" fill="#F2F65A">map</text>
|
|
21
|
+
<text x="20" y="168" class="sans" font-size="13" fill="#A5A397">CODEDNA.md on disk</text>
|
|
22
|
+
</g>
|
|
23
|
+
<g transform="translate(324 84)">
|
|
24
|
+
<rect width="264" height="190" rx="4" fill="#23211D" stroke="#34312B"/>
|
|
25
|
+
<circle cx="48" cy="52" r="28" fill="#1B1916" stroke="#F2F65A" stroke-width="2"/>
|
|
26
|
+
<text x="48" y="58" class="mono" font-size="18" font-weight="700" fill="#F2F65A" text-anchor="middle">02</text>
|
|
27
|
+
<text x="244" y="30" class="mono" font-size="11" font-weight="700" fill="#A5A397" text-anchor="end" letter-spacing="1.5">UNLOCK</text>
|
|
28
|
+
<text x="20" y="116" class="sans" font-size="20" font-weight="700" fill="#EDEDE6">Voice Captured</text>
|
|
29
|
+
<text x="20" y="144" class="mono" font-size="13" font-weight="700" fill="#F2F65A">comment voice</text>
|
|
30
|
+
<text x="20" y="168" class="sans" font-size="13" fill="#A5A397">Register + density</text>
|
|
31
|
+
</g>
|
|
32
|
+
<g transform="translate(612 84)">
|
|
33
|
+
<rect width="264" height="190" rx="4" fill="#23211D" stroke="#34312B"/>
|
|
34
|
+
<circle cx="48" cy="52" r="28" fill="#1B1916" stroke="#F2F65A" stroke-width="2"/>
|
|
35
|
+
<text x="48" y="58" class="mono" font-size="18" font-weight="700" fill="#F2F65A" text-anchor="middle">03</text>
|
|
36
|
+
<text x="244" y="30" class="mono" font-size="11" font-weight="700" fill="#A5A397" text-anchor="end" letter-spacing="1.5">UNLOCK</text>
|
|
37
|
+
<text x="20" y="116" class="sans" font-size="20" font-weight="700" fill="#EDEDE6">Tells Catalogued</text>
|
|
38
|
+
<text x="20" y="144" class="mono" font-size="13" font-weight="700" fill="#F2F65A">AI tells</text>
|
|
39
|
+
<text x="20" y="168" class="sans" font-size="13" fill="#A5A397">House-specific list</text>
|
|
40
|
+
</g>
|
|
41
|
+
<g transform="translate(900 84)">
|
|
42
|
+
<rect width="264" height="190" rx="4" fill="#23211D" stroke="#34312B"/>
|
|
43
|
+
<circle cx="48" cy="52" r="28" fill="#1B1916" stroke="#F2F65A" stroke-width="2"/>
|
|
44
|
+
<text x="48" y="58" class="mono" font-size="18" font-weight="700" fill="#F2F65A" text-anchor="middle">04</text>
|
|
45
|
+
<text x="244" y="30" class="mono" font-size="11" font-weight="700" fill="#A5A397" text-anchor="end" letter-spacing="1.5">UNLOCK</text>
|
|
46
|
+
<text x="20" y="116" class="sans" font-size="20" font-weight="700" fill="#EDEDE6">Diff Clean</text>
|
|
47
|
+
<text x="20" y="144" class="mono" font-size="13" font-weight="700" fill="#F2F65A">check</text>
|
|
48
|
+
<text x="20" y="168" class="sans" font-size="13" fill="#A5A397">No foreign tells</text>
|
|
49
|
+
</g>
|
|
50
|
+
|
|
51
|
+
<g transform="translate(36 300)">
|
|
52
|
+
<rect width="264" height="190" rx="4" fill="#23211D" stroke="#34312B"/>
|
|
53
|
+
<circle cx="48" cy="52" r="28" fill="#1B1916" stroke="#F2F65A" stroke-width="2"/>
|
|
54
|
+
<text x="48" y="58" class="mono" font-size="18" font-weight="700" fill="#F2F65A" text-anchor="middle">05</text>
|
|
55
|
+
<text x="244" y="30" class="mono" font-size="11" font-weight="700" fill="#A5A397" text-anchor="end" letter-spacing="1.5">UNLOCK</text>
|
|
56
|
+
<text x="20" y="116" class="sans" font-size="20" font-weight="700" fill="#EDEDE6">Wired In</text>
|
|
57
|
+
<text x="20" y="144" class="mono" font-size="13" font-weight="700" fill="#F2F65A">wire</text>
|
|
58
|
+
<text x="20" y="168" class="sans" font-size="13" fill="#A5A397">AGENTS.md pointer</text>
|
|
59
|
+
</g>
|
|
60
|
+
<g transform="translate(324 300)">
|
|
61
|
+
<rect width="264" height="190" rx="4" fill="#23211D" stroke="#34312B"/>
|
|
62
|
+
<circle cx="48" cy="52" r="28" fill="#1B1916" stroke="#F2F65A" stroke-width="2"/>
|
|
63
|
+
<text x="48" y="58" class="mono" font-size="18" font-weight="700" fill="#F2F65A" text-anchor="middle">06</text>
|
|
64
|
+
<text x="244" y="30" class="mono" font-size="11" font-weight="700" fill="#A5A397" text-anchor="end" letter-spacing="1.5">UNLOCK</text>
|
|
65
|
+
<text x="20" y="116" class="sans" font-size="20" font-weight="700" fill="#EDEDE6">Stats Grounded</text>
|
|
66
|
+
<text x="20" y="144" class="mono" font-size="13" font-weight="700" fill="#F2F65A">stats</text>
|
|
67
|
+
<text x="20" y="168" class="sans" font-size="13" fill="#A5A397">Real histograms</text>
|
|
68
|
+
</g>
|
|
69
|
+
<g transform="translate(612 300)">
|
|
70
|
+
<rect width="264" height="190" rx="4" fill="#23211D" stroke="#34312B"/>
|
|
71
|
+
<circle cx="48" cy="52" r="28" fill="#1B1916" stroke="#F2F65A" stroke-width="2"/>
|
|
72
|
+
<text x="48" y="58" class="mono" font-size="18" font-weight="700" fill="#F2F65A" text-anchor="middle">07</text>
|
|
73
|
+
<text x="244" y="30" class="mono" font-size="11" font-weight="700" fill="#A5A397" text-anchor="end" letter-spacing="1.5">UNLOCK</text>
|
|
74
|
+
<text x="20" y="116" class="sans" font-size="20" font-weight="700" fill="#EDEDE6">Prose Matched</text>
|
|
75
|
+
<text x="20" y="144" class="mono" font-size="13" font-weight="700" fill="#F2F65A">channels</text>
|
|
76
|
+
<text x="20" y="168" class="sans" font-size="13" fill="#A5A397">Errors, docs, logs</text>
|
|
77
|
+
</g>
|
|
78
|
+
<g transform="translate(900 300)">
|
|
79
|
+
<rect width="264" height="190" rx="4" fill="#23211D" stroke="#34312B"/>
|
|
80
|
+
<circle cx="48" cy="52" r="28" fill="#1B1916" stroke="#F2F65A" stroke-width="2"/>
|
|
81
|
+
<text x="48" y="58" class="mono" font-size="18" font-weight="700" fill="#F2F65A" text-anchor="middle">08</text>
|
|
82
|
+
<text x="244" y="30" class="mono" font-size="11" font-weight="700" fill="#A5A397" text-anchor="end" letter-spacing="1.5">UNLOCK</text>
|
|
83
|
+
<text x="20" y="116" class="sans" font-size="20" font-weight="700" fill="#EDEDE6">Formatter Ignored</text>
|
|
84
|
+
<text x="20" y="144" class="mono" font-size="13" font-weight="700" fill="#F2F65A">fingerprint</text>
|
|
85
|
+
<text x="20" y="168" class="sans" font-size="13" fill="#A5A397">Only unenforced habits</text>
|
|
86
|
+
</g>
|
|
87
|
+
</svg>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 420" width="1200" height="420" role="img" aria-labelledby="t d">
|
|
2
|
+
<title id="t">codedna fingerprint engine</title>
|
|
3
|
+
<desc id="d">Configs and stats feed close reading. The engine writes CODEDNA.md. Match and Check consume the profile so contributions blend in.</desc>
|
|
4
|
+
<style>
|
|
5
|
+
.sans{font-family:"Avenir Next","Helvetica Neue",Helvetica,Arial,sans-serif}
|
|
6
|
+
.mono{font-family:ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace}
|
|
7
|
+
</style>
|
|
8
|
+
<defs>
|
|
9
|
+
<marker id="arrow" markerWidth="8" markerHeight="8" refX="6" refY="3" orient="auto">
|
|
10
|
+
<path d="M0,0 L6,3 L0,6 Z" fill="#F2F65A"/>
|
|
11
|
+
</marker>
|
|
12
|
+
</defs>
|
|
13
|
+
<rect x="0.5" y="0.5" width="1199" height="419" rx="10" fill="#1B1916" stroke="#34312B"/>
|
|
14
|
+
<path d="M1 44H1199V11a10 10 0 0 0-10-10H11A10 10 0 0 0 1 11Z" fill="#23211D"/>
|
|
15
|
+
<line x1="1" y1="44" x2="1199" y2="44" stroke="#34312B"/>
|
|
16
|
+
<text x="32" y="28" class="mono" font-size="13" font-weight="700" fill="#F2F65A" letter-spacing="1.5">FINGERPRINT ENGINE</text>
|
|
17
|
+
<text x="1168" y="28" class="mono" font-size="13" fill="#A5A397" text-anchor="end">SIGNALS IN, PROFILE OUT</text>
|
|
18
|
+
|
|
19
|
+
<g transform="translate(48 90)">
|
|
20
|
+
<rect width="220" height="260" rx="4" fill="#23211D" stroke="#34312B"/>
|
|
21
|
+
<text x="20" y="36" class="mono" font-size="12" font-weight="700" fill="#A5A397" letter-spacing="1.5">INPUT</text>
|
|
22
|
+
<text x="20" y="72" class="sans" font-size="22" font-weight="700" fill="#EDEDE6">Repo signals</text>
|
|
23
|
+
<text x="20" y="110" class="mono" font-size="14" fill="#F2F65A">configs</text>
|
|
24
|
+
<text x="20" y="136" class="mono" font-size="14" fill="#F2F65A">stats histograms</text>
|
|
25
|
+
<text x="20" y="162" class="mono" font-size="14" fill="#F2F65A">comment voice</text>
|
|
26
|
+
<text x="20" y="188" class="mono" font-size="14" fill="#F2F65A">error strings</text>
|
|
27
|
+
<text x="20" y="230" class="sans" font-size="13" fill="#A5A397">Plus close reading of</text>
|
|
28
|
+
<text x="20" y="250" class="sans" font-size="13" fill="#A5A397">representative files</text>
|
|
29
|
+
</g>
|
|
30
|
+
|
|
31
|
+
<path d="M286 220H360" stroke="#F2F65A" stroke-width="2" marker-end="url(#arrow)"/>
|
|
32
|
+
|
|
33
|
+
<g transform="translate(372 90)">
|
|
34
|
+
<rect width="280" height="260" rx="4" fill="#23211D" stroke="#F2F65A"/>
|
|
35
|
+
<text x="20" y="36" class="mono" font-size="12" font-weight="700" fill="#A5A397" letter-spacing="1.5">ENGINE</text>
|
|
36
|
+
<text x="20" y="72" class="sans" font-size="22" font-weight="700" fill="#EDEDE6">Map mode</text>
|
|
37
|
+
<text x="20" y="110" class="sans" font-size="14" fill="#A5A397">Enforced vs observed.</text>
|
|
38
|
+
<text x="20" y="136" class="sans" font-size="14" fill="#A5A397">Specific, not generic.</text>
|
|
39
|
+
<text x="20" y="162" class="sans" font-size="14" fill="#A5A397">Snippet per convention.</text>
|
|
40
|
+
<line x1="20" y1="186" x2="260" y2="186" stroke="#34312B"/>
|
|
41
|
+
<text x="20" y="218" class="mono" font-size="14" font-weight="700" fill="#F2F65A">CODEDNA.md</text>
|
|
42
|
+
<text x="20" y="246" class="sans" font-size="13" fill="#A5A397">Plus agent wiring</text>
|
|
43
|
+
</g>
|
|
44
|
+
|
|
45
|
+
<path d="M670 220H744" stroke="#F2F65A" stroke-width="2" marker-end="url(#arrow)"/>
|
|
46
|
+
|
|
47
|
+
<g transform="translate(756 90)">
|
|
48
|
+
<rect width="396" height="260" rx="4" fill="#23211D" stroke="#34312B"/>
|
|
49
|
+
<text x="20" y="36" class="mono" font-size="12" font-weight="700" fill="#A5A397" letter-spacing="1.5">OUTPUT</text>
|
|
50
|
+
<text x="20" y="72" class="sans" font-size="22" font-weight="700" fill="#EDEDE6">Three playable modes</text>
|
|
51
|
+
<text x="20" y="118" class="mono" font-size="15" font-weight="700" fill="#F2F65A">MAP</text>
|
|
52
|
+
<text x="110" y="118" class="sans" font-size="15" fill="#EDEDE6">Write the fingerprint</text>
|
|
53
|
+
<text x="20" y="156" class="mono" font-size="15" font-weight="700" fill="#F2F65A">MATCH</text>
|
|
54
|
+
<text x="110" y="156" class="sans" font-size="15" fill="#EDEDE6">Contribute in house style</text>
|
|
55
|
+
<text x="20" y="194" class="mono" font-size="15" font-weight="700" fill="#F2F65A">CHECK</text>
|
|
56
|
+
<text x="110" y="194" class="sans" font-size="15" fill="#EDEDE6">Flag foreign tells</text>
|
|
57
|
+
<line x1="20" y1="218" x2="376" y2="218" stroke="#34312B"/>
|
|
58
|
+
<text x="20" y="248" class="sans" font-size="13" fill="#A5A397">Formatters already own quotes and indent. This owns the rest.</text>
|
|
59
|
+
</g>
|
|
60
|
+
</svg>
|
package/assets/hero.svg
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 420" width="1200" height="420" role="img" aria-labelledby="t d">
|
|
2
|
+
<title id="t">codedna 1.2.0</title>
|
|
3
|
+
<desc id="d">codedna wordmark with the line: fingerprint a codebase so AI contributions match the author. A status board lists 3 modes, 2 helpers, 4 install targets, 15 AI tells, and 0 formatter noise.</desc>
|
|
4
|
+
<style>
|
|
5
|
+
.sans{font-family:"Avenir Next","Helvetica Neue",Helvetica,Arial,sans-serif}
|
|
6
|
+
.mono{font-family:ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace}
|
|
7
|
+
</style>
|
|
8
|
+
<rect x="0.5" y="0.5" width="1199" height="419" rx="10" fill="#1B1916" stroke="#34312B"/>
|
|
9
|
+
<path d="M1 44H1199V11a10 10 0 0 0-10-10H11A10 10 0 0 0 1 11Z" fill="#23211D"/>
|
|
10
|
+
<line x1="1" y1="44" x2="1199" y2="44" stroke="#34312B"/>
|
|
11
|
+
<text x="32" y="28" class="mono" font-size="13" font-weight="700" fill="#F2F65A" letter-spacing="1.5">CODEDNA 1.2.0</text>
|
|
12
|
+
<text x="600" y="28" class="mono" font-size="13" fill="#A5A397" text-anchor="middle">@hxp-tools/codedna</text>
|
|
13
|
+
<text x="1168" y="28" class="mono" font-size="13" fill="#A5A397" text-anchor="end">PRESS START map the style</text>
|
|
14
|
+
|
|
15
|
+
<text x="52" y="188" class="sans" font-size="118" font-weight="800" fill="#EDEDE6" letter-spacing="-4">codedna</text>
|
|
16
|
+
<rect x="52" y="208" width="56" height="6" fill="#F2F65A"/>
|
|
17
|
+
<text x="52" y="258" class="sans" font-size="28" font-weight="600" fill="#EDEDE6">Fingerprint a codebase so AI</text>
|
|
18
|
+
<text x="52" y="296" class="sans" font-size="28" font-weight="600" fill="#EDEDE6">contributions match the author.</text>
|
|
19
|
+
<text x="52" y="334" class="sans" font-size="17" fill="#A5A397">Map. Match. Check. Portable skill for Claude, Codex, Cursor, Windsurf.</text>
|
|
20
|
+
|
|
21
|
+
<g transform="translate(776 76)">
|
|
22
|
+
<rect width="392" height="270" rx="4" fill="#23211D" stroke="#34312B"/>
|
|
23
|
+
<text x="20" y="31" class="mono" font-size="12" font-weight="700" fill="#A5A397" letter-spacing="2">STATUS BOARD</text>
|
|
24
|
+
<line x1="0" y1="46" x2="392" y2="46" stroke="#34312B"/>
|
|
25
|
+
<g class="sans" font-size="17" fill="#EDEDE6">
|
|
26
|
+
<text x="20" y="80">Modes</text>
|
|
27
|
+
<text x="20" y="124">Helpers</text>
|
|
28
|
+
<text x="20" y="168">Install targets</text>
|
|
29
|
+
<text x="20" y="212">AI tells catalogued</text>
|
|
30
|
+
<text x="20" y="256">Formatter noise</text>
|
|
31
|
+
</g>
|
|
32
|
+
<g class="mono" font-size="22" font-weight="700" fill="#F2F65A" text-anchor="end">
|
|
33
|
+
<text x="372" y="80">3</text>
|
|
34
|
+
<text x="372" y="124">2</text>
|
|
35
|
+
<text x="372" y="168">4</text>
|
|
36
|
+
<text x="372" y="212">15</text>
|
|
37
|
+
<text x="372" y="256">0</text>
|
|
38
|
+
</g>
|
|
39
|
+
<g stroke="#34312B">
|
|
40
|
+
<line x1="0" y1="90" x2="392" y2="90"/><line x1="0" y1="134" x2="392" y2="134"/>
|
|
41
|
+
<line x1="0" y1="178" x2="392" y2="178"/><line x1="0" y1="222" x2="392" y2="222"/>
|
|
42
|
+
</g>
|
|
43
|
+
</g>
|
|
44
|
+
</svg>
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 420" width="1200" height="420" role="img" aria-labelledby="t d">
|
|
2
|
+
<title id="t">codedna quest map</title>
|
|
3
|
+
<desc id="d">Three levels. 1 Map: write CODEDNA.md. 2 Match: write code that blends in. 3 Check: catch AI tells before they ship.</desc>
|
|
4
|
+
<style>
|
|
5
|
+
.sans{font-family:"Avenir Next","Helvetica Neue",Helvetica,Arial,sans-serif}
|
|
6
|
+
.mono{font-family:ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace}
|
|
7
|
+
</style>
|
|
8
|
+
<rect x="0.5" y="0.5" width="1199" height="419" rx="10" fill="#1B1916" stroke="#34312B"/>
|
|
9
|
+
<path d="M1 44H1199V11a10 10 0 0 0-10-10H11A10 10 0 0 0 1 11Z" fill="#23211D"/>
|
|
10
|
+
<line x1="1" y1="44" x2="1199" y2="44" stroke="#34312B"/>
|
|
11
|
+
<text x="32" y="28" class="mono" font-size="13" font-weight="700" fill="#F2F65A" letter-spacing="1.5">QUEST MAP</text>
|
|
12
|
+
<text x="1168" y="28" class="mono" font-size="13" fill="#A5A397" text-anchor="end">MAP TO CHECK 3 LEVELS</text>
|
|
13
|
+
<path d="M220 230H980" fill="none" stroke="#F2F65A" stroke-width="2" stroke-dasharray="3 7" stroke-linecap="round"/>
|
|
14
|
+
|
|
15
|
+
<g transform="translate(48 84)">
|
|
16
|
+
<rect width="340" height="280" rx="4" fill="#23211D" stroke="#F2F65A"/>
|
|
17
|
+
<text x="24" y="54" class="mono" font-size="38" font-weight="700" fill="#F2F65A">01</text>
|
|
18
|
+
<text x="24" y="96" class="sans" font-size="28" font-weight="700" fill="#EDEDE6">Map</text>
|
|
19
|
+
<text x="24" y="124" class="sans" font-size="14" fill="#A5A397">Scout the repo. Write the profile.</text>
|
|
20
|
+
<line x1="24" y1="144" x2="316" y2="144" stroke="#34312B"/>
|
|
21
|
+
<text x="24" y="172" class="mono" font-size="11" fill="#A5A397" letter-spacing="1.5">CLEAR IT WITH</text>
|
|
22
|
+
<text x="24" y="200" class="mono" font-size="15" font-weight="700" fill="#EDEDE6">build the codedna</text>
|
|
23
|
+
<text x="24" y="224" class="mono" font-size="15" font-weight="700" fill="#EDEDE6">codedna_stats.py</text>
|
|
24
|
+
<line x1="24" y1="244" x2="316" y2="244" stroke="#34312B"/>
|
|
25
|
+
<text x="24" y="268" class="sans" font-size="13" fill="#A5A397">Reward: CODEDNA.md + wiring</text>
|
|
26
|
+
<rect x="252" y="24" width="64" height="22" rx="3" fill="#F2F65A"/>
|
|
27
|
+
<text x="284" y="39" class="mono" font-size="12" font-weight="700" fill="#1B1916" text-anchor="middle" letter-spacing="1.5">START</text>
|
|
28
|
+
</g>
|
|
29
|
+
|
|
30
|
+
<g transform="translate(430 84)">
|
|
31
|
+
<rect width="340" height="280" rx="4" fill="#23211D" stroke="#34312B"/>
|
|
32
|
+
<text x="24" y="54" class="mono" font-size="38" font-weight="700" fill="#F2F65A">02</text>
|
|
33
|
+
<text x="24" y="96" class="sans" font-size="28" font-weight="700" fill="#EDEDE6">Match</text>
|
|
34
|
+
<text x="24" y="124" class="sans" font-size="14" fill="#A5A397">Write so it sounds like the author.</text>
|
|
35
|
+
<line x1="24" y1="144" x2="316" y2="144" stroke="#34312B"/>
|
|
36
|
+
<text x="24" y="172" class="mono" font-size="11" fill="#A5A397" letter-spacing="1.5">CLEAR IT WITH</text>
|
|
37
|
+
<text x="24" y="200" class="mono" font-size="15" font-weight="700" fill="#EDEDE6">add this in house style</text>
|
|
38
|
+
<text x="24" y="224" class="mono" font-size="15" font-weight="700" fill="#EDEDE6">follow CODEDNA.md</text>
|
|
39
|
+
<line x1="24" y1="244" x2="316" y2="244" stroke="#34312B"/>
|
|
40
|
+
<text x="24" y="268" class="sans" font-size="13" fill="#A5A397">Reward: blended contributions</text>
|
|
41
|
+
</g>
|
|
42
|
+
|
|
43
|
+
<g transform="translate(812 84)">
|
|
44
|
+
<rect width="340" height="280" rx="4" fill="#23211D" stroke="#34312B"/>
|
|
45
|
+
<text x="24" y="54" class="mono" font-size="38" font-weight="700" fill="#F2F65A">03</text>
|
|
46
|
+
<text x="24" y="96" class="sans" font-size="28" font-weight="700" fill="#EDEDE6">Check</text>
|
|
47
|
+
<text x="24" y="124" class="sans" font-size="14" fill="#A5A397">Boss fight: catch the impostor.</text>
|
|
48
|
+
<line x1="24" y1="144" x2="316" y2="144" stroke="#34312B"/>
|
|
49
|
+
<text x="24" y="172" class="mono" font-size="11" fill="#A5A397" letter-spacing="1.5">CLEAR IT WITH</text>
|
|
50
|
+
<text x="24" y="200" class="mono" font-size="15" font-weight="700" fill="#EDEDE6">check this against codedna</text>
|
|
51
|
+
<text x="24" y="224" class="mono" font-size="15" font-weight="700" fill="#EDEDE6">pre-commit review</text>
|
|
52
|
+
<line x1="24" y1="244" x2="316" y2="244" stroke="#34312B"/>
|
|
53
|
+
<text x="24" y="268" class="sans" font-size="13" fill="#A5A397">Reward: clean diff, named tells</text>
|
|
54
|
+
</g>
|
|
55
|
+
</svg>
|