1- # Contributing to ** CTX **
1+ # Contributing
22
3- We're excited to welcome you as a contributor to the ** CTX** project! This guide will help you get started
4- with contributing to our project.
3+ We're excited to welcome you as a contributor to our project!
54
65## How to Contribute
76
@@ -10,17 +9,14 @@ There are many ways to contribute to **CTX**:
1091 . ** Report Issues** : If you find a bug or have a
1110 suggestion, [ create an issue] ( https://github.com/context-hub/generator/issues ) on our GitHub repository.
12112 . ** Submit Pull Requests** : Have a fix or a new feature? Submit a pull request!
13- 3 . ** Improve Documentation** : Help us make our documentation more clear, comprehensive, and accessible.
12+ 3 . ** Improve Documentation** : Help us make our [ documentation] ( https://github.com/context-hub/docs ) more clear,
13+ comprehensive, and accessible.
14144 . ** Share Your Use Cases** : Let us know how you're using ** CTX** in your projects.
1515
1616We label issues that are suitable for community contribution with the ` help wanted ` tag. Additionally, we use labels
1717such as ` good first issue ` for newcomer-friendly tasks, and complexity indicators to help you choose tasks that match
1818your experience level.
1919
20- I'd be happy to write a better instruction for the Getting Started section that highlights the use of the context.yaml
21- file for context generation. This will help new contributors understand how they can use ** CTX** itself to
22- explore and work with the codebase.
23-
2420## Getting Started with Contributing
2521
2622Follow this guide to set up your environment and effectively contribute to the ** CTX** project. We've designed
@@ -37,31 +33,19 @@ cd context-generator
3733composer install
3834
3935# Make the CLI tool available locally
40- chmod +x context-generator
36+ chmod +x ctx
4137
4238# Test the command
43- ./context-generator --help
39+ ./ctx --help
4440```
4541
46- > ** Note:** Use the local ` ./context-generator ` command during development to test your changes. The globally installed
47- ` ctx ` command won't reflect your local modifications.
42+ > ** Note:** Use the local ` ./ctx ` command during development to test your changes. The globally installed` ctx ` command
43+ > won't reflect your local modifications.
4844
4945### 2. Understand the Project Structure
5046
51- Before diving into specific components, familiarize yourself with the project structure:
52-
53- ```
54- └── src/
55- ├── ConfigLoader/ - Configuration loading and processing
56- ├── Console/ - CLI commands and interfaces
57- ├── Document/ - Document generation and formatting
58- ├── Fetcher/ - Content fetching mechanisms
59- ├── Lib/ - Utility libraries and helpers
60- ├── Modifier/ - Content modification systems
61- └── Source/ - Different source type implementations
62- ```
63-
64- To get a more detailed view of the project structure, use the ` tree ` source type:
47+ Before diving into specific components, familiarize yourself with the project structure. To get a detailed view of the
48+ project structure, use the ` tree ` source type:
6549
6650``` yaml
6751documents :
@@ -77,27 +61,13 @@ documents:
7761Run this configuration to generate a visual representation of the codebase structure:
7862
7963` ` ` bash
80- ./context-generator
64+ ./ctx
8165```
8266
83- This will create a ` docs/file-structure.md ` file that outlines the project's organization. Just put this file in the
67+ This will create a ` docs/file-structure.md ` file that outlines the project's organization. Put this file in the
8468Claude project context to help it understand the codebase.
8569
86- ### 3. Explore the Codebase Using ** CTX**
87-
88- The project includes a pre-configured ` context.yaml ` file to help you explore the codebase:
89-
90- ``` bash
91- # Generate context files using the provided configuration
92- ./context-generator
93-
94- # This will create documentation in the .context/ directory
95- ```
96-
97- The generated context files provide a comprehensive overview of the most important parts of the system. Upload documents
98- connected to your task to an LLM like Claude to get a better understanding of the codebase.
99-
100- ### 4. Request Specific Context Using YAML
70+ ### 3. Request Specific Context Using YAML
10171
10272When working on a specific feature or bug fix, create targeted context requests to get exactly the information you need.
10373
@@ -122,7 +92,7 @@ documents:
12292Generate your custom context:
12393
12494` ` ` bash
125- ./context-generator
95+ ./ctx
12696```
12797
12898This structured approach offers several advantages:
@@ -134,7 +104,7 @@ This structured approach offers several advantages:
134104
135105Let me enhance the section on collaborating with AI assistants to include this important recommendation:
136106
137- ### 5 . Collaborate with AI Assistants
107+ ### 4 . Collaborate with AI Assistants
138108
139109Share the generated context files with AI assistants like Claude to get help with:
140110
@@ -176,7 +146,7 @@ Include the problem statement, proposed solution, implementation details, and po
176146This gives the AI assistant exactly the context needed to provide meaningful assistance with your specific task, and the
177147resulting document becomes a valuable asset throughout your development process.
178148
179- ### 6 . Implement Your Changes
149+ ### 5 . Implement Your Changes
180150
181151> **Tip**: When you provide all required context to Claude, it will be able to solve your task efficiently. With proper
182152> context, the solution will be fast, precise, and aligned with the project's patterns and standards.
@@ -196,7 +166,7 @@ With a solid understanding of the codebase:
196166 3. Review and refine the suggested documentation
197167 4. Include the updated documentation in your pull request
198168
199- ### 7 . Document Your Changes
169+ ### 6 . Document Your Changes
200170
201171If you worked with an LLM to implement your changes, ask it to help draft commit messages and pull request descriptions.
202172
@@ -213,7 +183,7 @@ documents:
213183 commit : " unstaged" # or "staged" if you've already staged your changes
214184` ` `
215185
216- ### 8 . Submit Your Pull Request
186+ ### 7 . Submit Your Pull Request
217187
218188- Push your changes to your fork
219189- Open a pull request with a clear description
0 commit comments