create-religion 0.1.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 +47 -0
  3. package/dist/bin/religion.js +209 -0
  4. package/dist/lib/dashboard.js +123 -0
  5. package/dist/lib/doctor.js +164 -0
  6. package/dist/lib/install.js +170 -0
  7. package/dist/lib/paths.js +40 -0
  8. package/dist/lib/state.js +117 -0
  9. package/dist/lib/status.js +88 -0
  10. package/package.json +40 -0
  11. package/template/.agents/skills/audit/SKILL.md +169 -0
  12. package/template/.agents/skills/auto/SKILL.md +110 -0
  13. package/template/.agents/skills/browser-tests/SKILL.md +65 -0
  14. package/template/.agents/skills/check/SKILL.md +86 -0
  15. package/template/.agents/skills/ci/SKILL.md +79 -0
  16. package/template/.agents/skills/complete/SKILL.md +184 -0
  17. package/template/.agents/skills/debug/SKILL.md +72 -0
  18. package/template/.agents/skills/discovery/SKILL.md +83 -0
  19. package/template/.agents/skills/distill/SKILL.md +95 -0
  20. package/template/.agents/skills/doctor/SKILL.md +65 -0
  21. package/template/.agents/skills/extend/SKILL.md +102 -0
  22. package/template/.agents/skills/feature/SKILL.md +172 -0
  23. package/template/.agents/skills/feature/reference/spec-template.md +67 -0
  24. package/template/.agents/skills/fix/SKILL.md +76 -0
  25. package/template/.agents/skills/implement/SKILL.md +174 -0
  26. package/template/.agents/skills/overview/SKILL.md +150 -0
  27. package/template/.agents/skills/overview/reference/project-overview-template.md +101 -0
  28. package/template/.agents/skills/prototype/SKILL.md +90 -0
  29. package/template/.agents/skills/release/SKILL.md +88 -0
  30. package/template/.agents/skills/rollback/SKILL.md +114 -0
  31. package/template/.agents/skills/setup/SKILL.md +105 -0
  32. package/template/.agents/skills/status/SKILL.md +63 -0
  33. package/template/.agents/skills/tests/SKILL.md +90 -0
  34. package/template/.agents/skills/try/SKILL.md +59 -0
  35. package/template/.claude/hooks/guard-rendered-output.mjs +49 -0
  36. package/template/.claude/hooks/guard-tier-one.mjs +63 -0
  37. package/template/.claude/hooks/write-handoff.mjs +83 -0
  38. package/template/.claude/skills/audit/SKILL.md +169 -0
  39. package/template/.claude/skills/auto/SKILL.md +110 -0
  40. package/template/.claude/skills/browser-tests/SKILL.md +65 -0
  41. package/template/.claude/skills/check/SKILL.md +86 -0
  42. package/template/.claude/skills/ci/SKILL.md +79 -0
  43. package/template/.claude/skills/complete/SKILL.md +184 -0
  44. package/template/.claude/skills/debug/SKILL.md +72 -0
  45. package/template/.claude/skills/discovery/SKILL.md +83 -0
  46. package/template/.claude/skills/distill/SKILL.md +95 -0
  47. package/template/.claude/skills/doctor/SKILL.md +65 -0
  48. package/template/.claude/skills/extend/SKILL.md +102 -0
  49. package/template/.claude/skills/feature/SKILL.md +172 -0
  50. package/template/.claude/skills/feature/reference/spec-template.md +67 -0
  51. package/template/.claude/skills/fix/SKILL.md +76 -0
  52. package/template/.claude/skills/implement/SKILL.md +174 -0
  53. package/template/.claude/skills/overview/SKILL.md +150 -0
  54. package/template/.claude/skills/overview/reference/project-overview-template.md +101 -0
  55. package/template/.claude/skills/prototype/SKILL.md +90 -0
  56. package/template/.claude/skills/release/SKILL.md +88 -0
  57. package/template/.claude/skills/rollback/SKILL.md +114 -0
  58. package/template/.claude/skills/setup/SKILL.md +105 -0
  59. package/template/.claude/skills/status/SKILL.md +63 -0
  60. package/template/.claude/skills/tests/SKILL.md +90 -0
  61. package/template/.claude/skills/try/SKILL.md +59 -0
  62. package/template/AGENTS.md +206 -0
  63. package/template/CLAUDE.md +175 -0
  64. package/template/religion/.state/README.md +10 -0
  65. package/template/religion/.state/settings-template.json +19 -0
  66. package/template/religion/build-plan.md +43 -0
  67. package/template/religion/config.json +26 -0
  68. package/template/religion/context/ai-interaction.md +84 -0
  69. package/template/religion/context/coding-standards.md +77 -0
  70. package/template/religion/context/current-work.md +8 -0
  71. package/template/religion/context/findings.md +9 -0
  72. package/template/religion/context/handoff.md +8 -0
  73. package/template/religion/context/project-overview.md +8 -0
  74. package/template/religion/history/features/README.md +8 -0
  75. package/template/religion/history/fixes/README.md +6 -0
  76. package/template/religion/history/rollbacks/README.md +7 -0
  77. package/template/religion/learning/journal.md +7 -0
  78. package/template/religion/learning/lessons.md +8 -0
  79. package/template/religion/project-plan.md +49 -0
  80. package/template/religion/reference/README.md +7 -0
@@ -0,0 +1,77 @@
1
+ # Coding Standards
2
+
3
+ > Your conventions. The rules below apply to any codebase. The stack-specific sections at
4
+ > the bottom are written by `setup` from what this project actually does, and are
5
+ > yours to edit afterwards.
6
+
7
+ ## Testing
8
+
9
+ Testing is opt-in, and one signal turns it on: **a `test` command declared in the Commands
10
+ section of the project entry file.**
11
+
12
+ Declare one and tests become a gate for logic-bearing work. Leave it out and the loop
13
+ verifies logic with the evidence it already has: running it, a screenshot, the build.
14
+ Adding a runner is a deliberate step, never a silent install in the middle of unrelated
15
+ work. Run `tests` to add one.
16
+
17
+ - **What to test:** pure logic where a wrong answer is possible. Parsers, formatters,
18
+ validators, identifier builders, server actions. These have assertable inputs and
19
+ outputs and real edge cases: empty, missing, malformed.
20
+ - **What not to test:** user interface components and integration-level surfaces. Verify
21
+ those with a screenshot and the build, not brittle unit tests.
22
+ - **The gate:** a step that adds in-scope logic ships a passing test in the same reviewable
23
+ diff. The suite must be green before the step is approved and before the work is
24
+ completed. Interface and integration steps are exempt.
25
+ - An empty suite should fail, not pass, so that "no tests ran" never looks like "passed".
26
+ - Test files live next to the source they cover.
27
+ - Run them through the project's declared test command, never a hardcoded tool name.
28
+
29
+ ## Code quality
30
+
31
+ - No commented-out code.
32
+ - No unused imports or variables.
33
+ - Keep functions short enough to hold in your head at once.
34
+ - Make the minimal change that accomplishes the task. Do not refactor unrelated code
35
+ unless asked, and do not add capabilities nobody requested.
36
+ - Preserve the patterns already in the codebase over generic best practice.
37
+
38
+ ## Comments
39
+
40
+ Write code that explains itself, and comment only what the code cannot say.
41
+ Over-commenting is a common tell of generated code, so resist it.
42
+
43
+ - Comment the **why**, not the **what**. Delete any comment that restates the code.
44
+ - No banner blocks, section dividers, or narration of obvious code.
45
+ - A comment earns its place when it captures something the code cannot: a non-obvious
46
+ decision, a gotcha or workaround, why a value is what it is, or a link to a spec.
47
+ - Keep documentation comments minimal. A one-line purpose on an exported symbol is plenty;
48
+ do not restate the signature.
49
+ - When in doubt, leave it out.
50
+
51
+ ## Writing
52
+
53
+ Applies to everything generated: documentation, comments, commit messages, specs.
54
+
55
+ - No em dashes. Use a hyphen for a `term - description` separator, or rephrase with
56
+ commas, parentheses, or a colon. Avoid en dashes and the ellipsis character too.
57
+ - No AI attribution anywhere in git history: no co-author trailers, no "generated with"
58
+ footers, no "via" markings in commit messages or pull request descriptions.
59
+ - Commit messages describe what the change does. They never reference a plan number,
60
+ roadmap phase, or planning document, because someone reading the history later has none
61
+ of those open.
62
+
63
+ ## Errors and inputs
64
+
65
+ - Validate anything crossing a trust boundary before using it.
66
+ - Scope every user-owned query by the authenticated user's identity taken from the server,
67
+ never from a client-supplied value.
68
+ - Fail loudly at the boundary and handle it deliberately; do not swallow errors to make a
69
+ check pass.
70
+
71
+ ## Stack conventions
72
+
73
+ <!-- religion:setup-required -->
74
+
75
+ Empty until `setup` detects the stack and writes this section: language conventions,
76
+ file organization, naming, framework patterns, styling, and data access as this project
77
+ actually does them.
@@ -0,0 +1,8 @@
1
+ # Current Work
2
+
3
+ > **Generated file.** Holds the one feature, fix, or rollback being built right now. Run
4
+ > `feature` to spec a build-plan item, `fix` for an unplanned bug or change,
5
+ > or `rollback` to plan a safe reversal. Build one thing at a time;
6
+ > `complete` archives it under `religion/history/` and resets this file.
7
+
8
+ _Nothing in progress. Run `feature`, `fix`, or `rollback` to start._
@@ -0,0 +1,9 @@
1
+ # Findings
2
+
3
+ > **Generated file.** The findings ledger: review findings raised by `audit` against
4
+ > the work in progress, each with a durable identifier, a severity from P0 to P3, and a
5
+ > status. `implement` marks a repair `fixed`, a later `audit` pass moves it to
6
+ > `closed`, and `complete` refuses to finish while any P0 or P1 finding is `open` or
7
+ > `fixed`, then archives the resolved ones with the work and resets this file.
8
+
9
+ _No findings recorded. `audit` appends findings here when it finds them._
@@ -0,0 +1,8 @@
1
+ # Handoff
2
+
3
+ > **Generated file.** Regenerated from the other state files, so it is never the record of
4
+ > anything: it is a fast way for whoever picks this project up next, human or agent, to see
5
+ > where the work sits, what to read first, and which gotchas are live. Losing it costs
6
+ > nothing.
7
+
8
+ _Nothing recorded yet. This is written as soon as there is work to hand off._
@@ -0,0 +1,8 @@
1
+ # Project Overview
2
+
3
+ > **Generated file.** The single source of truth this project's agents read every session,
4
+ > distilled from `project-plan.md` and `build-plan.md`. Do not hand-edit it: fix the plans
5
+ > and re-run `overview`, which also refreshes this automatically when the plans have
6
+ > changed underneath it.
7
+
8
+ _Not generated yet. Fill in the two planning documents, then run `overview`._
@@ -0,0 +1,8 @@
1
+ # Completed features
2
+
3
+ One file per completed feature, named `NN-slug.md`, where `NN` is its build-plan number.
4
+ Written by `complete` when the work lands, and never edited afterwards: this is the
5
+ record of what was built and what was known at the time.
6
+
7
+ Each archive holds the spec as it stood at completion, plus a `## Findings` section listing
8
+ the findings resolved with that work.
@@ -0,0 +1,6 @@
1
+ # Completed fixes
2
+
3
+ One file per completed fix, named for the problem it solved. Written by `complete`.
4
+
5
+ A fix is not a build-plan item, so these carry no number and nothing is ticked when one
6
+ lands.
@@ -0,0 +1,7 @@
1
+ # Rollbacks
2
+
3
+ One file per reversal, named `YYYY-MM-DD-NN-slug.md` for the item that was rolled back.
4
+ Written by `complete`.
5
+
6
+ The original feature archive stays exactly where it was. A rollback adds a record; it never
7
+ rewrites history to make a feature look as though it never existed.
@@ -0,0 +1,7 @@
1
+ # Journal
2
+
3
+ > **Generated file.** Raw observations appended as work happens: what went wrong, what was
4
+ > surprising, what a correction revealed. Not loaded into context. `distill` reads
5
+ > it, promotes what has proved stable into `lessons.md`, and archives what it processed.
6
+
7
+ _No entries yet._
@@ -0,0 +1,8 @@
1
+ # Lessons
2
+
3
+ > **Generated file.** What previous runs learned about working in this project, promoted
4
+ > from the journal by `distill` once an observation has proved stable. Loaded every
5
+ > session, so keep it short: a lesson that is not worth its place in every context window
6
+ > is not a lesson.
7
+
8
+ _Nothing learned yet._
@@ -0,0 +1,49 @@
1
+ # Project Plan
2
+
3
+ > One of the two planning documents you own. Use as much detail as the project needs,
4
+ > including rationale, constraints, examples, edge cases, and the exclusions that should
5
+ > guide later work. Write it directly, develop it through any AI conversation, or run the
6
+ > `discovery` skill for a guided session. When it is filled in, run
7
+ > `overview` to generate the project overview from this and `build-plan.md`.
8
+
9
+ Sections 1 through 5 are required: the overview generator maps them, and later work reads
10
+ the result. Sections 6 through 8 are optional, and a library, CLI, or internal tool can
11
+ delete them outright rather than writing "not applicable".
12
+
13
+ ## 1. Problem
14
+
15
+ What problem this solves and why it matters. What is broken or missing today.
16
+
17
+ ## 2. Users
18
+
19
+ Who this is for, and what each kind of user needs from it. Note any access tiers, such as
20
+ anonymous versus signed in.
21
+
22
+ ## 3. Features
23
+
24
+ A high-level list of what the first version needs. One line each, no deep detail; the
25
+ detail belongs in each work item's spec.
26
+
27
+ ## 4. Data
28
+
29
+ What gets stored: the entities, roughly what they hold, and how they relate. Enough that
30
+ the overview can turn it into a concrete data model.
31
+
32
+ ## 5. Tech
33
+
34
+ The stack, one line each on what it is for.
35
+
36
+ ## 6. Monetization (optional)
37
+
38
+ How this makes money, if it does. Delete this section if it does not apply.
39
+
40
+ ## 7. UI and UX (optional)
41
+
42
+ The look and feel, and the main routes or screens. Delete this section for a project with
43
+ no user interface.
44
+
45
+ ## 8. Deployment (optional)
46
+
47
+ Target host, app type, build and start commands, output directory, environment variables
48
+ by name, database or storage needs, background jobs, health check path, and domain notes.
49
+ Delete this section until deployment is a real question.
@@ -0,0 +1,7 @@
1
+ # Reference material
2
+
3
+ Screenshots and images that a spec points at, for visual or replication work. Prose
4
+ underspecifies a visual target, so `feature` asks for an image and saves it here
5
+ rather than building from a description.
6
+
7
+ Delete anything whose work has landed and whose look is now the code.