claudenv 1.0.1
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/LICENSE +21 -0
- package/README.md +156 -0
- package/bin/cli.js +205 -0
- package/package.json +60 -0
- package/scaffold/.claude/agents/doc-analyzer.md +70 -0
- package/scaffold/.claude/commands/init-docs.md +69 -0
- package/scaffold/.claude/commands/update-docs.md +49 -0
- package/scaffold/.claude/commands/validate-docs.md +40 -0
- package/scaffold/.claude/skills/doc-generator/SKILL.md +56 -0
- package/scaffold/.claude/skills/doc-generator/scripts/validate.sh +108 -0
- package/scaffold/.claude/skills/doc-generator/templates/detection-patterns.md +76 -0
- package/src/constants.js +237 -0
- package/src/detector.js +346 -0
- package/src/generator.js +259 -0
- package/src/index.js +5 -0
- package/src/prompts.js +267 -0
- package/src/validator.js +206 -0
- package/templates/claude-md.ejs +49 -0
- package/templates/rules-code-style.ejs +64 -0
- package/templates/rules-testing.ejs +64 -0
- package/templates/rules-workflow.ejs +49 -0
- package/templates/settings-json.ejs +28 -0
- package/templates/state-md.ejs +23 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hooks": {
|
|
3
|
+
"PostToolUse": [
|
|
4
|
+
{
|
|
5
|
+
"matcher": "Write",
|
|
6
|
+
"hooks": [
|
|
7
|
+
{
|
|
8
|
+
"type": "command",
|
|
9
|
+
"command": "bash -c 'FILE_PATH=$(echo $TOOL_INPUT | jq -r \".file_path // empty\"); if echo \"$FILE_PATH\" | grep -qE \"(CLAUDE\\.md|\\.claude/rules/|\\.claude/skills/)\"; then bash <%= validationScriptPath %> ; fi'",
|
|
10
|
+
"timeout": 30
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
]<% if (enableStopHook) { %>,
|
|
15
|
+
"Stop": [
|
|
16
|
+
{
|
|
17
|
+
"matcher": "",
|
|
18
|
+
"hooks": [
|
|
19
|
+
{
|
|
20
|
+
"type": "command",
|
|
21
|
+
"command": "bash -c 'if [ -f CLAUDE.md ]; then bash <%= validationScriptPath %> ; fi'",
|
|
22
|
+
"timeout": 15
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
]<% } %>
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Project State
|
|
2
|
+
|
|
3
|
+
> This file tracks project decisions, current focus, and known issues across Claude Code sessions.
|
|
4
|
+
> Update it when making significant changes. Review it at the start of each session.
|
|
5
|
+
|
|
6
|
+
## Current Focus
|
|
7
|
+
<!-- What is being worked on right now -->
|
|
8
|
+
|
|
9
|
+
## Key Decisions
|
|
10
|
+
<!-- Architecture and design decisions made -->
|
|
11
|
+
<% if (framework) { %>- Using **<%= framework %>**<% if (language) { %> with **<%= language %>**<% } %>
|
|
12
|
+
<% } -%>
|
|
13
|
+
<% if (deployment) { %>- Deploying to **<%= deployment %>**
|
|
14
|
+
<% } -%>
|
|
15
|
+
<% if (packageManager) { %>- Package manager: **<%= packageManager %>**
|
|
16
|
+
<% } -%>
|
|
17
|
+
<% if (testFramework) { %>- Testing with **<%= testFramework %>**
|
|
18
|
+
<% } %>
|
|
19
|
+
## Known Issues
|
|
20
|
+
<!-- Bugs, tech debt, gotchas to be aware of -->
|
|
21
|
+
|
|
22
|
+
## Session Notes
|
|
23
|
+
<!-- Updated between sessions to preserve context -->
|