Luong NGUYEN
0fcac18357
docs: Add blog post and new slash commands for development workflow
...
- Add blog post: 4 Essential Slash Commands I Use in Every Project
- Add new slash commands: /doc-refactor, /setup-ci-cd, /unit-test-expand
- Update slash-commands README with comprehensive documentation
- Simplify /push-all command structure
- Archive add-blog-post-slash-commands change
- Add blog-post spec and pending openspec changes
2025-12-26 11:02:19 +01:00
Luong NGUYEN
fa9603af11
chore: Archive add-cli-lesson change
2025-12-25 00:02:55 +01:00
Luong NGUYEN
513171332e
fix: correct token calculation in context-usage hook example
...
The hook was converting total_chars to string before calculating tokens,
resulting in ~0 tokens reported. Fixed to calculate directly from char count.
- Remove unused estimate_tokens() function
- Calculate tokens as total_chars // 4 directly
- Archive fix-context-usage-hook change
2025-12-24 23:54:35 +01:00
Luong NGUYEN
ecd3dba49a
chore: Archive update-skills-lesson change
2025-12-24 23:52:39 +01:00
Luong NGUYEN
b44d9d6a77
chore: Archive update-subagents-lesson change
2025-12-24 23:28:19 +01:00
Luong NGUYEN
d291519452
chore: Archive add-context-usage-hook-example change
2025-12-24 23:22:58 +01:00
Luong NGUYEN
9c5c7c5049
docs: Add context usage reporter hook example
...
Add Example 6 showing how to create a hook that reports context/token
usage after each Claude response:
- Python script reads transcript_path to access conversation history
- Estimates tokens using ~4 chars/token heuristic
- Outputs one-line report: "Context: ~45k/200k tokens (77% remaining)"
- Documents both Stop and UserPromptSubmit hook configurations
- Explains limitations (estimate vs exact /context command)
2025-12-24 23:21:38 +01:00
Luong NGUYEN
e144e42b20
chore: Archive update-hooks-lesson change
...
Move completed change to archive and create hooks-documentation spec.
2025-12-24 15:48:15 +01:00
Luong NGUYEN
eb72f002ef
docs: Add CLI Reference lesson (10-cli)
...
Add comprehensive CLI reference documentation covering:
- All CLI commands and flags with examples
- Model configuration, system prompts, permissions
- Output formats (text, JSON, stream-JSON)
- Session management and MCP configuration
- 7 high-value use cases: CI/CD, piping, batch processing,
multi-session workflows, custom agents, security, JSON API
Update README.md and LEARNING-ROADMAP.md with CLI lesson
navigation and learning path integration.
2025-12-24 15:42:24 +01:00
Luong NGUYEN
c807674593
chore: Archive update-slash-commands-session change
...
- Move change to archive/2025-12-24-update-slash-commands-session
- Create specs/slash-commands/spec.md with 10 requirements
2025-12-24 15:32:26 +01:00
Luong NGUYEN
ee0f4bd5d9
docs: Update slash commands documentation with official features
...
- Add comprehensive built-in commands reference (40+ commands)
- Document argument handling ($ARGUMENTS, $1, $2, etc.)
- Add bash execution syntax (! prefix) and file references (@ prefix)
- Update frontmatter to official fields (allowed-tools, argument-hint, model, etc.)
- Add Plugin Commands and MCP Slash Commands sections
- Add SlashCommand Tool documentation for programmatic invocation
- Add Skills vs Slash Commands comparison table
- Create commit.md example with bash execution and context
- Update existing examples to use official frontmatter format
- Add OpenSpec proposal for change tracking
2025-12-24 15:30:47 +01:00