Skip to content

Commit e7cad23

Browse files
committed
docs: update README and documentation for clarity and consistency - Revise project description and features for better understanding - Improve installation instructions and usage examples - Enhance styling and layout for better readability - Remove outdated content and streamline sections for a more professional presentation
1 parent db5868b commit e7cad23

6 files changed

Lines changed: 280 additions & 524 deletions

File tree

README.md

Lines changed: 44 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,81 @@
11
<div align="center">
22

3-
# ContextCraft</center>
4-
</div>
5-
6-
<div align="center">
3+
# ContextCraft
74

85
[![CI](https://github.com/Shorzinator/ContextCraft/workflows/ContextCraft%20CI/badge.svg)](https://github.com/Shorzinator/ContextCraft/actions)
96
[![Coverage](https://img.shields.io/badge/coverage-77%25-yellow)](https://github.com/Shorzinator/ContextCraft)
107
[![Python](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)
118
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
129
[![Code style: Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
1310

14-
</div>
11+
**The missing link between your codebase and AI assistants.**
1512

16-
<div align="center">
13+
*Stop copying files. Start solving problems.*
1714

18-
**A powerful CLI toolkit to generate comprehensive project context for Large Language Models (LLMs).</center>**
1915
</div>
2016

21-
ContextCraft transforms your codebase into well-structured, LLM-friendly documentation by intelligently aggregating directory trees, code files, dependencies, and Git context into clean, consumable formats. It's like a translator between your repo and the digital mind you just hired to read it.
17+
ContextCraft is a production-ready CLI toolkit that solves the core problem developers face when working with AI assistants: manually preparing context from their projects. Whether you're debugging with ChatGPT, explaining your codebase to Claude, or preparing documentation for any LLM, ContextCraft provides the essential tools to create rich, contextual project summaries in seconds, not minutes.
18+
19+
## Core Problem Solved
2220

23-
Transform your entire codebase into AI-ready context with one command.
24-
No more copy-paste nightmares. No more explaining your project structure.
25-
Just instant, comprehensive context that LLMs actually understand.
21+
Developers waste 5-10 minutes manually copying files, explaining project structure, and gathering context every time they need AI assistance. ContextCraft reduces this to a single command that takes seconds.
2622

27-
## Features
23+
## Essential Features
2824

29-
### 🌳 **Smart Directory Trees**
30-
- Beautiful, hierarchical project structure visualization
31-
- Rich console output with emojis and colors
32-
- Intelligent filtering with `.llmignore` support
25+
### **Smart Directory Trees**
26+
- Hierarchical project structure visualization
27+
- Rich console output with intelligent formatting
28+
- Advanced filtering with `.llmignore` support
3329
- Clean file output for documentation
3430

35-
### 📄 **Code Flattening**
31+
### **Code Flattening**
3632
- Concatenate multiple files into organized documents
3733
- Clear file markers and intelligent content handling
3834
- Support for include/exclude patterns
3935
- Binary file detection and graceful handling
4036

41-
### 📦 **Dependency Analysis**
37+
### **Dependency Analysis**
4238
- Multi-language dependency extraction (Python, Node.js)
4339
- Support for Poetry, pip, npm, and yarn
4440
- Clean Markdown output with language grouping
4541
- Extensible architecture for additional languages
4642

47-
### 🔄 **Git Context**
43+
### **Git Context**
4844
- Current branch and status information
4945
- Recent commit history with configurable depth
5046
- Diff analysis for understanding changes
5147
- Graceful handling of non-Git repositories
5248

53-
### 📋 **Context Bundling**
49+
### **Context Bundling**
5450
- Aggregate multiple tools into comprehensive bundles
5551
- Configurable section inclusion/exclusion
5652
- Well-structured Markdown with navigation
57-
- Perfect for LLM consumption
53+
- Optimized for LLM consumption
5854

59-
### 📋 **Clipboard Integration**
55+
### **Clipboard Integration**
6056
- Copy output directly to clipboard with `--to-clipboard` or `-c`
6157
- Available for all commands (tree, flatten, deps, git-info, bundle)
6258
- Smart behavior: only works when no output file specified
6359
- Cross-platform support with graceful error handling
6460

65-
### 🎯 **Intelligent Filtering**
61+
### **Intelligent Filtering**
6662
- `.llmignore` files with `.gitignore`-style syntax
6763
- Configurable global patterns via `pyproject.toml`
6864
- Smart precedence hierarchy
6965
- Tool-specific fallback exclusions
7066

7167
---
7268

73-
## 🚀 Quick Start
69+
## Quick Start
7470

7571
### Installation
7672

7773
```bash
78-
# Install from PyPI (coming soon)
74+
# Install from PyPI
7975
pip install contextcraft
8076

81-
# Or install from source
82-
git clone https://github.com/Shorzinator/ContextCraft.git
83-
cd ContextCraft
84-
poetry install
77+
# Or install with Poetry
78+
poetry add contextcraft
8579
```
8680

8781
### Basic Usage
@@ -146,9 +140,9 @@ global_exclude_patterns = [
146140
]
147141
```
148142

149-
## 📖 Documentation
143+
## Documentation
150144

151-
**🌐 [Live Documentation Website](https://shorzinator.github.io/ContextCraft/)**
145+
**[Live Documentation Website](https://shorzinator.github.io/ContextCraft/)**
152146

153147
Comprehensive documentation including:
154148

@@ -159,7 +153,7 @@ Comprehensive documentation including:
159153
- **[Examples](https://shorzinator.github.io/ContextCraft/examples/)** - Real-world usage examples
160154
- **[Tutorials](https://shorzinator.github.io/ContextCraft/tutorials/)** - Step-by-step guides
161155

162-
## 🛠️ Development
156+
## Development
163157

164158
### Prerequisites
165159

@@ -189,15 +183,15 @@ poetry run pytest --cov=src/contextcraft --cov-report=html
189183

190184
### Code Quality
191185

192-
We maintain high code quality standards. Some say it's obsessive. We say it's... necessary:
186+
We maintain high code quality standards:
193187

194-
- **Linting**: Ruff for fast Python linting (not a dog, but still keeps your repo clean)
188+
- **Linting**: Ruff for fast Python linting
195189
- **Formatting**: Ruff formatter for consistent code style
196190
- **Security**: Bandit for security vulnerability scanning
197-
- **Testing**: Pytest with 77%+ coverage (because 100% would be... suspicious)
198-
- **Commits**: Conventional Commits for clear history and less git shame
191+
- **Testing**: Pytest with 77%+ coverage
192+
- **Commits**: Conventional Commits for clear history
199193

200-
## 🤝 Contributing
194+
## Contributing
201195

202196
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details on:
203197

@@ -206,34 +200,34 @@ We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) f
206200
- Code standards and testing
207201
- Pull request process
208202

209-
## 📄 License
203+
## License
210204

211-
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. (TL;DR: Use it, don’t sue us.)
205+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
212206

213-
## 🙏 Acknowledgments
207+
## Acknowledgments
214208

215209
- Built with [Typer](https://typer.tiangolo.com/) for the CLI framework
216-
- Styled with [Rich](https://rich.readthedocs.io/) for beautiful terminal output
210+
- Styled with [Rich](https://rich.readthedocs.io/) for clean terminal output
217211
- Powered by [Poetry](https://python-poetry.org/) for dependency management
218212
- Quality assured with [Ruff](https://github.com/astral-sh/ruff) and [Pytest](https://pytest.org/)
219213

220-
## 📊 Project Status
214+
## Project Status
221215

222216
ContextCraft is actively developed and maintained. Current status:
223217

224-
- **Core Tools**: All primary tools implemented and tested
225-
- **CLI Interface**: Complete command-line interface
226-
- **Documentation**: Comprehensive docs with examples
227-
- **Testing**: 175+ tests with 77% coverage
228-
- **CI/CD**: Automated testing and quality checks
229-
- 🚀 **V1.0**: Feature-complete and production-ready
218+
- **Core Tools**: All primary tools implemented and tested
219+
- **CLI Interface**: Complete command-line interface
220+
- **Documentation**: Comprehensive docs with examples
221+
- **Testing**: 175+ tests with 77% coverage
222+
- **CI/CD**: Automated testing and quality checks
223+
- **V1.0.2**: Production-ready with critical fixes resolved
230224

231225
---
232226

233227
<div align="center">
234228

235-
**[📖 Documentation](https://shorzinator.github.io/ContextCraft/)[🐛 Issues](https://github.com/Shorzinator/ContextCraft/issues)[💬 Discussions](https://shorzinator.github.io/ContextCraft/community/)**
229+
**[Documentation](https://shorzinator.github.io/ContextCraft/)[Issues](https://github.com/Shorzinator/ContextCraft/issues)[Discussions](https://shorzinator.github.io/ContextCraft/community/)**
236230

237-
Made with ❤️ for the developer community
231+
Made for the developer community
238232

239233
</div>
-33.3 KB
Binary file not shown.

dist/contextcraft-1.0.2.tar.gz

-30 KB
Binary file not shown.

docs/getting-started/installation.md

Lines changed: 26 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -11,40 +11,40 @@ Get ContextCraft up and running on your system in just a few minutes!
1111

1212
### Installing Prerequisites
1313

14-
=== "macOS"
14+
#### macOS
1515

16-
```bash
17-
# Install Python via Homebrew
18-
brew install python@3.11
16+
```bash
17+
# Install Python via Homebrew
18+
brew install python@3.11
1919

20-
# Install Poetry
21-
curl -sSL https://install.python-poetry.org | python3 -
22-
```
20+
# Install Poetry
21+
curl -sSL https://install.python-poetry.org | python3 -
22+
```
2323

24-
=== "Ubuntu/Debian"
24+
#### Ubuntu/Debian
2525

26-
```bash
27-
# Update package list
28-
sudo apt update
26+
```bash
27+
# Update package list
28+
sudo apt update
2929

30-
# Install Python and pip
31-
sudo apt install python3.11 python3.11-pip python3.11-venv
30+
# Install Python and pip
31+
sudo apt install python3.11 python3.11-pip python3.11-venv
3232

33-
# Install Poetry
34-
curl -sSL https://install.python-poetry.org | python3 -
35-
```
33+
# Install Poetry
34+
curl -sSL https://install.python-poetry.org | python3 -
35+
```
3636

37-
=== "Windows"
37+
#### Windows
3838

39-
```powershell
40-
# Install Python from Microsoft Store or python.org
41-
# Then install Poetry
42-
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
43-
```
39+
```powershell
40+
# Install Python from Microsoft Store or python.org
41+
# Then install Poetry
42+
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
43+
```
4444

45-
=== "Other Systems"
45+
#### Other Systems
4646

47-
Visit [Python.org](https://www.python.org/downloads/) for Python installation and [Poetry's documentation](https://python-poetry.org/docs/#installation) for Poetry setup.
47+
Visit [Python.org](https://www.python.org/downloads/) for Python installation and [Poetry's documentation](https://python-poetry.org/docs/#installation) for Poetry setup.
4848

4949
## Installation Methods
5050

@@ -54,7 +54,7 @@ The fastest way to get started with ContextCraft:
5454

5555
```bash
5656
# Clone the repository
57-
git clone https://github.com/YOUR_USERNAME/ContextCraft.git
57+
git clone https://github.com/Shorzinator/ContextCraft.git
5858
cd ContextCraft
5959

6060
# Install with Poetry
@@ -67,18 +67,13 @@ poetry shell
6767
contextcraft --version
6868
```
6969

70-
### 📦 PyPI Installation (Coming Soon)
70+
### 📦 PyPI Installation
7171

72-
Once ContextCraft is published to PyPI, you'll be able to install it directly:
7372

7473
```bash
75-
# This will be available soon!
7674
pip install contextcraft
7775
```
7876

79-
!!! note "PyPI Status"
80-
ContextCraft will be published to PyPI soon. For now, please use the source installation method above.
81-
8277
### 🛠️ Development Installation
8378

8479
For contributors and developers who want to work on ContextCraft itself:
@@ -101,24 +96,6 @@ poetry run pytest
10196
poetry shell
10297
```
10398

104-
### 🐳 Docker Installation (Advanced)
105-
106-
For containerized environments:
107-
108-
```dockerfile
109-
# Dockerfile example
110-
FROM python:3.11-slim
111-
112-
WORKDIR /app
113-
COPY . .
114-
115-
RUN pip install poetry && \
116-
poetry config virtualenvs.create false && \
117-
poetry install --only main
118-
119-
ENTRYPOINT ["contextcraft"]
120-
```
121-
12299
## Verification
123100

124101
After installation, verify that ContextCraft is working correctly:
@@ -159,33 +136,6 @@ cd ..
159136
rm -rf contextcraft-test
160137
```
161138

162-
## Configuration
163-
164-
### Shell Completion (Optional)
165-
166-
Enable command completion for your shell:
167-
168-
=== "Bash"
169-
170-
```bash
171-
# Add to ~/.bashrc
172-
eval "$(_CONTEXTCRAFT_COMPLETE=bash_source contextcraft)"
173-
```
174-
175-
=== "Zsh"
176-
177-
```zsh
178-
# Add to ~/.zshrc
179-
eval "$(_CONTEXTCRAFT_COMPLETE=zsh_source contextcraft)"
180-
```
181-
182-
=== "Fish"
183-
184-
```fish
185-
# Add to ~/.config/fish/config.fish
186-
eval (env _CONTEXTCRAFT_COMPLETE=fish_source contextcraft)
187-
```
188-
189139
### Environment Variables
190140

191141
Configure ContextCraft behavior with environment variables:

0 commit comments

Comments
 (0)