Contributing to Clawd Code
Description
Thank you for your interest in contributing to Clawd Code! This document provides guidelines and instructions for contributing.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
Repository README
This is the README for GPT-AGI/Clawd-Code, shared by 3 entries
in this directory. It describes the repository, not this entry specifically.
Contributing to Clawd Code
Thank you for your interest in contributing to Clawd Code! This document provides guidelines and instructions for contributing.
Table of Contents
- Code of Conduct
- Development Setup
- Project Structure
- Coding Standards
- Commit Guidelines
- Pull Request Process
- Testing
Code of Conduct
This project follows the [Contributor Covenant Code of Conduct](https://www.contributor-covenant.org/version/2/0/code_of_conduct/). By participating, you are expected to uphold this code. Please report unacceptable behavior to the project maintainers.
Development Setup
Prerequisites
- Python 3.10 or higher (3.11 recommended for local development)
uv(recommended) orpip- git
- A valid API key from at least one provider (Anthropic, OpenAI, or GLM)
Initial Setup
- Fork and clone the repository
# Fork the repo on GitHub, then:
git clone https://github.com/YOUR_USERNAME/Clawd-Code.git
cd Clawd-Code
- Create a virtual environment
uv venv --python 3.11
source .venv/bin/activate # On Windows: .venv\Scripts\activate
- Install dependencies
uv pip install -r requirements.txt
uv pip install -e ".[dev]"
- Install development tools
uv pip install black isort mypy pytest
- Configure your API key
python -m src.cli login
# or use environment variables such as GLM_API_KEY / OPENAI_API_KEY / ANTHROPIC_API_KEY
- Run tests to verify setup
python -m pytest tests/ -q
Project Structure
Clawd-Code/
├── src/ # Source code
│ ├── providers/ # LLM provider implementations
│ ├── repl/ # Interactive REPL
│ ├── agent/ # Session management
│ ├── skills/ # SKILL.md loading and creation
│ ├── tool_system/ # Tool registry, loop, validation
│ ├── config.py # Configuration management
│ └── cli.py # CLI commands
├── tests/ # Test files
├── .github/ # GitHub workflows and templates
├── requirements.txt # Python dependencies
├── pyproject.toml # Project metadata
└── README.md # Project overview
Key Modules
**`src/providers/`**: LLM provider implementations
base.py: Abstract base class for providersanthropic_provider.py: Anthropic/Claude integrationopenai_provider.py: OpenAI/GPT integrationglm_provider.py: GLM/Zhipu AI integration
**`src/repl/`**: Interactive REPL implementation
core.py: Main REPL logic
**`src/agent/`**: Session and conversation management
session.py: Session persistenceconversation.py: Message history
**`src/config.py`**: Configuration management
- Load/save configuration
- API key management
- Provider settings
**`src/cli.py`
Related Skills
Awesome Go
A curated list of awesome Go frameworks, libraries and software
Development next.js
| The React Framework | 138360 | 1503 | 1 |
Development sharing-skills
skill for guidance.
Development root-cause-tracing
Use when errors occur deep in execution and you need to trace back to find the original trigger.
Development Template Skill
Minimal skeleton for a new skill project structure.
Development Third-party Notices
THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THI
Development