Completed clean root directory structure: - Root now contains only: .git, .env, docs/, orig/ - Moved all remaining files and directories to orig/: - Config files (.claude, .dockerignore, .drone.yml, etc.) - All .env variants (except active .env) - Git config (.gitconfig, .github, .gitignore, etc.) - Tool configs (.golangci.yml, .revive.toml, etc.) - Documentation (*.md files, @prompts) - Build files (Dockerfiles, Makefile, go.mod, go.sum) - Docker compose files - All source directories (scripts, tests, tools, etc.) - Runtime directories (logs, monitoring, reports) - Dependency files (node_modules, lib, cache) - Special files (--delete) - Removed empty runtime directories (bin/, data/) V2 structure is now clean: - docs/planning/ - V2 planning documents - orig/ - Complete V1 codebase preserved - .env - Active environment config (not in git) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
39 lines
1.7 KiB
Markdown
39 lines
1.7 KiB
Markdown
# Implement Feature with Tests
|
|
|
|
Implement the following feature with comprehensive tests: $ARGUMENTS
|
|
|
|
## Implementation Framework:
|
|
1. **Requirements Analysis**: Break down the feature requirements and acceptance criteria
|
|
2. **Test Planning**: Design test cases before implementation
|
|
3. **Interface Design**: Define clean interfaces between components
|
|
4. **Implementation**: Write the code following language best practices
|
|
5. **Testing**: Create comprehensive unit, integration, and property-based tests
|
|
6. **Documentation**: Update relevant documentation and examples
|
|
|
|
## Implementation Standards:
|
|
- **Code Quality**: Follow language conventions and project coding standards
|
|
- **Error Handling**: Implement robust error handling with context
|
|
- **Logging**: Add appropriate logging with structured fields
|
|
- **Testing**: Achieve >90% test coverage for Go, >95% for Solidity
|
|
- **Performance**: Consider performance implications and add metrics
|
|
- **Security**: Validate all inputs and handle edge cases
|
|
|
|
## File Organization:
|
|
- **Go Code**: Place in appropriate `pkg/` or `internal/` subdirectory
|
|
- **Solidity Contracts**: Place in `contracts/` directory
|
|
- **Frontend Code**: Follow Vue 3 project structure
|
|
- **Tests**: Co-locate with source files (`*_test.go`, `.test.js`, etc.)
|
|
- **Documentation**: Update `docs/` and inline comments
|
|
|
|
## Integration Points:
|
|
- **Backend**: Integrate with existing Go components
|
|
- **Smart Contracts**: Ensure proper contract interaction
|
|
- **Frontend**: Connect to backend APIs and web3 providers
|
|
- **Monitoring**: Add metrics and health checks
|
|
|
|
## Deliverables:
|
|
- Working implementation with tests
|
|
- Updated documentation
|
|
- Configuration updates
|
|
- Performance benchmarks if applicable
|
|
- Migration guide for existing deployments |