- 新增 Harbor 容器镜像仓库维护模块 - 新增 GitLab 代码托管平台维护模块 - 创建 SYSTEM-CONFIG.md 系统配置概览文档 - 完善 README.md 项目说明文档 - 更新部署脚本支持新模块 - 集成 Ollama AI 模型服务配置信息 主要功能: - Harbor: Docker 镜像仓库管理 (端口 8080/8443) - GitLab: 企业级代码托管 (端口 8890/8929) - 系统配置文档:便于 Claude 和 CI/CD 理解架构 - 统一备份策略和健康监控 - 模块化部署和管理 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
90 lines
2.4 KiB
Python
Executable File
90 lines
2.4 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
"""
|
|
Claude Bluebook Context Generator (v1.2)
|
|
自动生成Claude开发上下文
|
|
"""
|
|
|
|
import json
|
|
import os
|
|
from pathlib import Path
|
|
from datetime import datetime
|
|
|
|
def generate_context():
|
|
"""生成Claude上下文"""
|
|
project_root = Path.cwd()
|
|
|
|
context = f"""# Claude AI Development Context v1.2
|
|
|
|
## Project Information
|
|
**Name**: {project_root.name}
|
|
**Root**: {project_root}
|
|
**Copyright**: © 2025 灵境万象智能科技有限公司
|
|
|
|
## Current Development Phase
|
|
**Phase**: AI-Powered Development
|
|
**Focus**: High-quality enterprise-grade development
|
|
|
|
## Quality Standards
|
|
**Code Quality**:
|
|
- Type coverage: ≥90%
|
|
- Test coverage: ≥80%
|
|
- Code quality: ≥B级
|
|
|
|
**Performance**:
|
|
- API response P95: ≤3s
|
|
- Concurrent users: ≥1000
|
|
- CPU usage: ≤70%
|
|
|
|
**Security**:
|
|
- Zero high-severity vulnerabilities
|
|
- OWASP Top 10 compliance
|
|
- Authentication and authorization complete
|
|
|
|
## Development Guidelines
|
|
1. **Enterprise-Grade Code**: Industry best practices with comprehensive documentation
|
|
2. **Quality-First**: All quality gates must be passed
|
|
3. **Security-First**: Security by design and default
|
|
4. **Performance-Optimized**: Efficient, scalable code
|
|
5. **Well-Tested**: High test coverage and automated quality checks
|
|
|
|
## My Role & Approach
|
|
**Role**: Senior Full-Stack Developer specializing in AI-powered systems
|
|
**Approach**:
|
|
- Structured responses with clear progress tracking
|
|
- Ask clarifying questions when requirements are ambiguous
|
|
- Suggest improvements and alternative approaches
|
|
- Focus on practical, maintainable, enterprise-grade solutions
|
|
|
|
## Quality Assurance
|
|
All deliverables validated against:
|
|
- Functional requirements ✓
|
|
- Performance benchmarks ✓
|
|
- Security standards ✓
|
|
- Code quality metrics ✓
|
|
- Documentation completeness ✓
|
|
|
|
Let's build high-quality, enterprise-grade software together!
|
|
"""
|
|
|
|
return context.strip()
|
|
|
|
def main():
|
|
context = generate_context()
|
|
cache_file = Path.cwd() / ".claude-bluebook-cache.json"
|
|
|
|
cache_data = {
|
|
"version": "2.0.0",
|
|
"copyright": "© 2025 灵境万象智能科技有限公司",
|
|
"timestamp": datetime.now().isoformat(),
|
|
"claude_context": context
|
|
}
|
|
|
|
with open(cache_file, 'w', encoding='utf-8') as f:
|
|
json.dump(cache_data, f, indent=2, ensure_ascii=False)
|
|
|
|
print(f"✅ Context saved to: {cache_file}")
|
|
print("🚀 Ready for Claude AI collaboration!")
|
|
|
|
if __name__ == "__main__":
|
|
main()
|