@juho0719/cckit 0.2.7 → 0.2.8

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 (97) hide show
  1. package/README.md +88 -0
  2. package/package.json +1 -1
  3. package/assets/agents/architect.md +0 -211
  4. package/assets/agents/build-error-resolver.md +0 -114
  5. package/assets/agents/ccwin-code-reviewer.md +0 -224
  6. package/assets/agents/database-reviewer.md +0 -91
  7. package/assets/agents/doc-updater.md +0 -107
  8. package/assets/agents/e2e-runner.md +0 -107
  9. package/assets/agents/planner.md +0 -212
  10. package/assets/agents/python-reviewer.md +0 -98
  11. package/assets/agents/refactor-cleaner.md +0 -85
  12. package/assets/agents/security-reviewer.md +0 -108
  13. package/assets/agents/superpower-code-reviewer.md +0 -48
  14. package/assets/agents/tdd-guide.md +0 -80
  15. package/assets/commands/build-fix.md +0 -62
  16. package/assets/commands/checkpoint.md +0 -74
  17. package/assets/commands/code-review.md +0 -40
  18. package/assets/commands/e2e.md +0 -362
  19. package/assets/commands/eval.md +0 -120
  20. package/assets/commands/orchestrate.md +0 -172
  21. package/assets/commands/plan.md +0 -113
  22. package/assets/commands/python-review.md +0 -297
  23. package/assets/commands/refactor-clean.md +0 -80
  24. package/assets/commands/sessions.md +0 -305
  25. package/assets/commands/tdd.md +0 -326
  26. package/assets/commands/test-coverage.md +0 -69
  27. package/assets/commands/update-codemaps.md +0 -72
  28. package/assets/commands/update-docs.md +0 -84
  29. package/assets/commands/verify.md +0 -59
  30. package/assets/hooks/agent-track.sh +0 -53
  31. package/assets/hooks/auto-commit-push.sh +0 -123
  32. package/assets/hooks/on-prompt-start.sh +0 -6
  33. package/assets/hooks/post-edit-format.js +0 -48
  34. package/assets/hooks/post-edit-typecheck.js +0 -94
  35. package/assets/hooks/skill-track.sh +0 -26
  36. package/assets/hooks/subagent-notify.sh +0 -20
  37. package/assets/rules/common/agents.md +0 -49
  38. package/assets/rules/common/coding-style.md +0 -48
  39. package/assets/rules/common/git-workflow.md +0 -45
  40. package/assets/rules/common/hooks.md +0 -30
  41. package/assets/rules/common/patterns.md +0 -31
  42. package/assets/rules/common/performance.md +0 -55
  43. package/assets/rules/common/security.md +0 -29
  44. package/assets/rules/common/testing.md +0 -29
  45. package/assets/rules/python/coding-style.md +0 -42
  46. package/assets/rules/python/hooks.md +0 -19
  47. package/assets/rules/python/patterns.md +0 -39
  48. package/assets/rules/python/security.md +0 -30
  49. package/assets/rules/python/testing.md +0 -38
  50. package/assets/rules/typescript/coding-style.md +0 -18
  51. package/assets/rules/typescript/hooks.md +0 -19
  52. package/assets/rules/typescript/patterns.md +0 -39
  53. package/assets/rules/typescript/security.md +0 -30
  54. package/assets/rules/typescript/testing.md +0 -38
  55. package/assets/skills/api-design/SKILL.md +0 -522
  56. package/assets/skills/backend-patterns/SKILL.md +0 -597
  57. package/assets/skills/brainstorming/SKILL.md +0 -96
  58. package/assets/skills/coding-standards/SKILL.md +0 -529
  59. package/assets/skills/database-migrations/SKILL.md +0 -334
  60. package/assets/skills/deployment-patterns/SKILL.md +0 -426
  61. package/assets/skills/dispatching-parallel-agents/SKILL.md +0 -180
  62. package/assets/skills/docker-patterns/SKILL.md +0 -363
  63. package/assets/skills/e2e-testing/SKILL.md +0 -325
  64. package/assets/skills/eval-harness/SKILL.md +0 -235
  65. package/assets/skills/executing-plans/SKILL.md +0 -84
  66. package/assets/skills/finishing-a-development-branch/SKILL.md +0 -200
  67. package/assets/skills/frontend-patterns/SKILL.md +0 -641
  68. package/assets/skills/iterative-retrieval/SKILL.md +0 -210
  69. package/assets/skills/postgres-patterns/SKILL.md +0 -145
  70. package/assets/skills/python-patterns/SKILL.md +0 -749
  71. package/assets/skills/python-testing/SKILL.md +0 -815
  72. package/assets/skills/receiving-code-review/SKILL.md +0 -213
  73. package/assets/skills/requesting-code-review/SKILL.md +0 -105
  74. package/assets/skills/requesting-code-review/code-reviewer-template.md +0 -146
  75. package/assets/skills/subagent-driven-development/SKILL.md +0 -242
  76. package/assets/skills/subagent-driven-development/code-quality-reviewer-prompt.md +0 -20
  77. package/assets/skills/subagent-driven-development/implementer-prompt.md +0 -78
  78. package/assets/skills/subagent-driven-development/spec-reviewer-prompt.md +0 -61
  79. package/assets/skills/systematic-debugging/CREATION-LOG.md +0 -114
  80. package/assets/skills/systematic-debugging/SKILL.md +0 -296
  81. package/assets/skills/systematic-debugging/condition-based-waiting-example.ts +0 -158
  82. package/assets/skills/systematic-debugging/condition-based-waiting.md +0 -115
  83. package/assets/skills/systematic-debugging/defense-in-depth.md +0 -122
  84. package/assets/skills/systematic-debugging/root-cause-tracing.md +0 -169
  85. package/assets/skills/systematic-debugging/scripts/find-polluter.sh +0 -63
  86. package/assets/skills/systematic-debugging/test-academic.md +0 -14
  87. package/assets/skills/systematic-debugging/test-pressure-1.md +0 -58
  88. package/assets/skills/systematic-debugging/test-pressure-2.md +0 -68
  89. package/assets/skills/systematic-debugging/test-pressure-3.md +0 -69
  90. package/assets/skills/tdd-workflow/SKILL.md +0 -409
  91. package/assets/skills/test-driven-development/SKILL.md +0 -371
  92. package/assets/skills/test-driven-development/testing-anti-patterns.md +0 -299
  93. package/assets/skills/using-git-worktrees/SKILL.md +0 -218
  94. package/assets/skills/verification-before-completion/SKILL.md +0 -139
  95. package/assets/skills/verification-loop/SKILL.md +0 -125
  96. package/assets/skills/writing-plans/SKILL.md +0 -116
  97. package/assets/statusline/statusline.sh +0 -186
@@ -1,186 +0,0 @@
1
- #!/usr/bin/env bash
2
- # Docs:
3
- # - https://code.claude.com/docs/en/statusline
4
- # - https://code.claude.com/docs/en/settings
5
- #
6
- # Notes:
7
- # - Claude Code reruns the statusline when conversation state changes, debounced at about 300ms.
8
- # - `agent.name` is officially provided.
9
- # - Active skills are not officially exposed in the statusline JSON, so `skills` below is a best-effort
10
- # inference from recent `/skill-name` or `$skill-name` mentions in the transcript.
11
-
12
- if ! command -v jq >/dev/null 2>&1; then
13
- printf '[--] | 📁 -- | default\n'
14
- printf '◉ CTX unavailable | 🤖 main | 🧩 --\n'
15
- exit 0
16
- fi
17
-
18
- input=$(cat 2>/dev/null)
19
- [ -n "$input" ] || exit 0
20
-
21
- repeat_char() {
22
- local count="$1"
23
- local char="$2"
24
- local out=""
25
- while [ "$count" -gt 0 ]; do
26
- out="${out}${char}"
27
- count=$((count - 1))
28
- done
29
- printf '%s' "$out"
30
- }
31
-
32
- shorten() {
33
- local text="$1"
34
- local max="${2:-24}"
35
- if [ "${#text}" -le "$max" ]; then
36
- printf '%s' "$text"
37
- else
38
- printf '%s…' "${text:0:max-1}"
39
- fi
40
- }
41
-
42
- current_dir_name() {
43
- local path="$1"
44
- path="${path%/}"
45
-
46
- if [ -z "$path" ]; then
47
- printf '/'
48
- elif [ "$path" = "$HOME" ]; then
49
- printf '~'
50
- else
51
- printf '%s' "${path##*/}"
52
- fi
53
- }
54
-
55
- current_effort() {
56
- if [ "${MAX_THINKING_TOKENS:-}" = "0" ]; then
57
- printf 'off'
58
- elif [ -n "${CLAUDE_CODE_EFFORT_LEVEL:-}" ]; then
59
- printf '%s' "$CLAUDE_CODE_EFFORT_LEVEL"
60
- elif [ "${CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING:-}" = "1" ] && [ -n "${MAX_THINKING_TOKENS:-}" ]; then
61
- printf 'think:%s' "$MAX_THINKING_TOKENS"
62
- elif [ "${CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING:-}" = "1" ]; then
63
- printf 'fixed'
64
- else
65
- printf 'default'
66
- fi
67
- }
68
-
69
- infer_skills() {
70
- local transcript="$1"
71
- local skills
72
-
73
- if [ -z "$transcript" ] || [ ! -f "$transcript" ]; then
74
- printf '%s' '--'
75
- return
76
- fi
77
-
78
- skills=$(
79
- tail -n 200 "$transcript" 2>/dev/null |
80
- jq -r '.. | .text? // empty' 2>/dev/null |
81
- grep -Eo '(^|[[:space:]])(\$|/)[A-Za-z][A-Za-z0-9_-]+' |
82
- sed -E 's/^[[:space:]]+//; s#^[/$]##' |
83
- grep -Evi '^(add-dir|agents|bug|clear|compact|config|cost|doctor|help|init|login|logout|mcp|memory|model|permissions|plugin|plugins|pr-comments|review|status|statusline|terminal-setup|vim)$' |
84
- awk '!seen[$0]++' |
85
- head -n 3 |
86
- awk 'BEGIN{ORS=""} {if (NR>1) printf ", "; printf $0}'
87
- )
88
-
89
- printf '%s' "${skills:---}"
90
- }
91
-
92
- ctx_color() {
93
- local pct="$1"
94
- if [ "$pct" -ge 85 ]; then
95
- printf '\033[38;2;255;107;107m'
96
- elif [ "$pct" -ge 60 ]; then
97
- printf '\033[38;2;255;184;77m'
98
- else
99
- printf '\033[38;2;92;224;163m'
100
- fi
101
- }
102
-
103
- IFS=$'\t' read -r model dir agent transcript ctx_size cur_in cur_cache_create cur_cache_read used_fallback worktree_branch < <(
104
- printf '%s' "$input" | jq -r '[
105
- .model.display_name // .model.id // "--",
106
- .workspace.current_dir // .cwd // "",
107
- .agent.name // "main",
108
- .transcript_path // "",
109
- (.context_window.context_window_size // 0),
110
- (.context_window.current_usage.input_tokens? // 0),
111
- (.context_window.current_usage.cache_creation_input_tokens? // 0),
112
- (.context_window.current_usage.cache_read_input_tokens? // 0),
113
- (.context_window.used_percentage // 0 | floor),
114
- .worktree.branch // ""
115
- ] | @tsv'
116
- )
117
-
118
- dir="${dir:-$PWD}"
119
- model="${model:---}"
120
- agent="${agent:-main}"
121
-
122
- used_tokens=$((cur_in + cur_cache_create + cur_cache_read))
123
- if [ "$ctx_size" -gt 0 ] && [ "$used_tokens" -gt 0 ]; then
124
- used_pct=$((used_tokens * 100 / ctx_size))
125
- else
126
- used_pct="${used_fallback:-0}"
127
- fi
128
-
129
- case "$used_pct" in
130
- ''|*[!0-9]*)
131
- used_pct=0
132
- ;;
133
- esac
134
-
135
- [ "$used_pct" -lt 0 ] && used_pct=0
136
- [ "$used_pct" -gt 100 ] && used_pct=100
137
-
138
- branch="$worktree_branch"
139
- if [ -z "$branch" ] && [ -n "$dir" ] && git -C "$dir" rev-parse --is-inside-work-tree >/dev/null 2>&1; then
140
- branch="$(git -C "$dir" symbolic-ref --quiet --short HEAD 2>/dev/null || git -C "$dir" rev-parse --short HEAD 2>/dev/null)"
141
- fi
142
-
143
- skills="$(infer_skills "$transcript")"
144
- effort="$(current_effort)"
145
-
146
- dir_label="$(shorten "$(current_dir_name "$dir")" 24)"
147
- branch_label="$(shorten "$branch" 26)"
148
- agent_label="$(shorten "$agent" 18)"
149
- skills_label="$(shorten "$skills" 32)"
150
-
151
- bar_width=20
152
- filled=$((used_pct * bar_width / 100))
153
- empty=$((bar_width - filled))
154
-
155
- RESET=$'\033[0m'
156
- BOLD=$'\033[1m'
157
- DIM=$'\033[2m'
158
-
159
- MODEL_C=$'\033[1;38;2;110;200;255m'
160
- DIR_C=$'\033[38;2;142;180;255m'
161
- BRANCH_C=$'\033[38;2;120;230;160m'
162
- EFFORT_C=$'\033[38;2;255;196;107m'
163
- AGENT_C=$'\033[38;2;94;234;212m'
164
- SKILL_C=$'\033[38;2;255;121;198m'
165
- SEP_C=$'\033[38;2;108;114;134m'
166
- FRAME_C=$'\033[38;2;96;103;122m'
167
- TRACK_C=$'\033[38;2;62;68;84m'
168
- LABEL_C=$'\033[38;2;145;215;255m'
169
- PCT_C="$(ctx_color "$used_pct")"
170
-
171
- filled_bar="$(repeat_char "$filled" '█')"
172
- empty_bar="$(repeat_char "$empty" '░')"
173
-
174
- line1="${MODEL_C}[${model}]${RESET} ${SEP_C}|${RESET} ${DIR_C}📁 ${dir_label}${RESET}"
175
- if [ -n "$branch_label" ]; then
176
- line1="${line1} ${SEP_C}|${RESET} ${BRANCH_C}⎇ ${branch_label}${RESET}"
177
- fi
178
- line1="${line1} ${SEP_C}|${RESET} ${EFFORT_C}${effort}${RESET}"
179
-
180
- line2="${LABEL_C}◉ CTX ${FRAME_C}▕${PCT_C}${filled_bar}${TRACK_C}${empty_bar}${FRAME_C}▏ ${PCT_C}${used_pct}%${RESET}"
181
- line2="${line2} ${SEP_C}|${RESET} ${AGENT_C}🤖 ${agent_label}${RESET}"
182
- line2="${line2} ${SEP_C}|${RESET} ${SKILL_C}🧩 ${skills_label}${RESET}"
183
-
184
- printf '%b\n' "$line1"
185
- printf '%b\n' "$line2"
186
-