Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

Code Hug

v1.1.0

AI驱动的软件开发工作流编排器,基于六层控制系统提供端到端项目管理能力,包含全面的代码分析、商业智能提取和智能工作流自动化。

1· 101·0 current·0 all-time
byroboe@hickhe

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for hickhe/code-hug.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Code Hug" (hickhe/code-hug) from ClawHub.
Skill page: https://clawhub.ai/hickhe/code-hug
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required binaries: python, node, java, git, bash, php
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install code-hug

ClawHub CLI

Package manager switcher

npx clawhub@latest install code-hug
Security Scan
VirusTotalVirusTotal
Suspicious
View report →
OpenClawOpenClaw
Benign
medium confidence
Purpose & Capability
The name/description (end-to-end code analysis, workflow orchestration, auto-fix) matches the things the SKILL.md asks the agent to do (read project_root, run diagnostics, extract rules, write artifacts, manage sessions). The listed required binaries (python, node, java, git, bash, php) are reasonable for multi-language analysis. Minor inconsistency: the Runtime Dependencies section omits PHP even though php is listed in metadata and PHP is referenced elsewhere; this looks like a documentation oversight rather than malicious misdirection.
Instruction Scope
The instructions expect the agent to read the project's files (project_root), write artifacts to a .code-hug directory, and modify ~/.openclaw/config.json for configuration. These actions are coherent with the skill's purpose but grant the skill broad access to local source trees and the agent config. The SKILL.md does not request external credentials or unexpected network endpoints. It also instructs installing Python packages (pip install), which will modify the environment if executed.
Install Mechanism
There is no install spec and no downloaded code; this is an instruction-only skill. That minimizes installer risk. However, the runtime examples explicitly run pip install which would modify the local Python environment if followed.
Credentials
No environment variables or external credentials are requested, which is proportional for a local code-analysis/orchestration tool. The declared binary requirements are numerous but appropriate for a multi-language analyzer that supports Java, JS/TS, Python, PHP and uses Git.
Persistence & Privilege
The skill is not always-enabled and allows model invocation (normal). It asks the user to add configuration into ~/.openclaw/config.json and will write artifacts to .code-hug/ in the workspace; modifying the agent's config and writing project artifacts is within the claimed scope but increases persistence and impact (agent config edits should be reviewed).
Assessment
This skill appears to do what it says: analyze and orchestrate multi-language projects. Before enabling or running it, consider: 1) Backup ~/.openclaw/config.json before adding the skill's config. 2) Understand that the agent will read your entire project_root and write artifacts to a .code-hug directory—avoid pointing project_root at repositories containing secrets. 3) Review and approve any automatic 'auto_fix' changes (use git to inspect diffs and limit max_fix_attempts). 4) Running the provided pip install commands will change your Python environment—prefer a virtualenv/container if you want isolation. 5) Note the small doc inconsistency around PHP in the runtime deps; verify required runtimes yourself. If you need stronger isolation, run the skill's actions in a sandboxed VM or container and require explicit confirmation before any auto-modification steps.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

🤗 Clawdis
OSmacOS · Linux · Windows
Binspython, node, java, git, bash, php
latestvk976nfz2p0ava39jsdsfj515vs83h0ew
101downloads
1stars
2versions
Updated 1mo ago
v1.1.0
MIT-0
macOS, Linux, Windows

Code Hug

Code Hug 是一个先进的 AI 驱动的软件开发工作流编排器,提供全面的端到端项目管理能力。基于六层控制系统构建,它无缝集成了代码考古学、商业智能提取和智能工作流自动化。

核心能力

智能工作流编排

  • 端到端流水线: 需求分析 → 功能分解 → 代码实现 → 集成验证 → 部署准备
  • 质量门禁: 可配置的 YAML 准入/准出标准验证
  • 会话管理: 完整的审计轨迹和决策日志
  • 成果物管理: 各阶段产出物的自动归档和版本跟踪

高级代码分析与商业智能

  • 业务规则提取: 自动发现和记录嵌入的业务逻辑
  • PRD生成: 从代码实现反向工程生成产品需求
  • 工作流映射: 提取和可视化端到端业务流程
  • 数据模型分析: 发现实体关系和数据流
  • 多语言支持: 全面支持 Java、JavaScript/TypeScript、Python、PHP 和 Vue.js 项目

智能诊断与自动修复

  • 失败分析: 支持 Java 和 JavaScript/TypeScript 项目失败诊断
  • 自动修复: 构建配置、依赖冲突、编译错误
  • 智能建议: 上下文感知的代码改进建议
  • 安全控制: 内置安全检查和回滚机制

系统要求

运行时依赖

  • Python 3.10+: 核心编排引擎
  • Node.js 18+: JavaScript/TypeScript 分析能力
  • Java: Java 项目分析和编译支持
  • Git: 版本控制集成
  • Bash: 系统命令执行

安装验证

# Python 依赖
pip install PyYAML requests python-dotenv

# 验证安装
python3 -c "import yaml; print('OK')"
node --version
java -version

可用工具

工具描述参数
codehug:start_session启动新的工作流会话project_name, project_root, tech_stack
codehug:run_stage执行指定阶段session_id, stage, context
codehug:diagnose诊断构建/测试失败session_id, build_log, test_log
codehug:auto_fix尝试自动修复问题session_id, problem_type, project_root
codehug:validate运行集成验证session_id, project_root, test_cases
codehug:get_status获取当前会话状态session_id
codehug:extract_business_rules从代码库提取业务规则project_root, output_format
codehug:generate_prd生成PRD文档project_root, business_context
codehug:map_workflows映射业务工作流project_root, workflow_types

配置

~/.openclaw/config.json 中添加:

{
  "skills": {
    "code-hug": {
      "project_root": "/path/to/your/project",
      "auto_fix_enabled": true,
      "max_fix_attempts": 3,
      "enable_safety_checks": true,
      "enable_rollback": true,
      "notification_channels": ["webchat", "email"],
      "business_intelligence_enabled": true
    }
  }
}

配置选项

选项类型默认值描述
project_rootstring必填项目根目录
auto_fix_enabledbooleantrue启用自动修复
max_fix_attemptsinteger3最大自动修复尝试次数
enable_safety_checksbooleantrue启用安全验证
enable_rollbackbooleantrue启用回滚机制
notification_channelsarray["webchat"]通知渠道
business_intelligence_enabledbooleantrue启用商业智能提取

使用示例

1. 启动新会话

/codehug:start_session {
  "project_name": "membership-service",
  "project_root": "/Users/dev/projects/membership-service", 
  "tech_stack": ["Java 17", "Spring Boot 3", "MySQL 8"]
}

2. 执行需求分析(包含商业智能)

/codehug:run_stage {
  "session_id": "membership-service-001",
  "stage": "requirements_analysis",
  "context": {
    "business_context_provided": true,
    "success_metrics_defined": true,
    "stakeholder_identified": true,
    "extract_business_rules": true,
    "generate_prd": true
  }
}

3. 提取业务规则

/codehug:extract_business_rules {
  "project_root": "/Users/dev/projects/membership-service",
  "output_format": "markdown"
}

4. 诊断构建失败

/codehug:diagnose {
  "session_id": "membership-service-001",
  "build_log": "[ERROR] COMPILATION ERROR: cannot find symbol...",
  "test_log": ""
}

5. 自动修复

/codehug:auto_fix {
  "session_id": "membership-service-001",
  "problem_type": "compilation_error",
  "project_root": "/Users/dev/projects/membership-service"
}

阶段定义

阶段准入标准准出标准产出物
requirements_analysis业务背景、成功指标、干系人PRD完整性≥0.8、干系人批准、技术可行性确认prd.md, business_rules.json
functional_decompositionPRD批准、架构约束、技术栈技术规格完整性≥0.9、API契约验证、数据库Schema评审tech_spec.md, api_contracts.json
code_implementation技术规格批准、编码规范、开发环境单元测试覆盖率≥80%、静态分析通过、代码评审≥0.85source_code/, test_coverage.json
integration_validation代码批准、构建脚本、测试环境构建成功、集成测试通过、冒烟测试通过test_results.json, integration_report.md
deployment_preparation集成验证批准、部署脚本、回滚计划部署包验证、生产就绪确认、监控配置deployment_plan.md, production_checklist.md

支持的项目类型

  • Java: Maven/Gradle 项目、Spring Boot、Java EE
  • JavaScript/TypeScript: npm/yarn/pnpm、Node.js、React、Vue.js
  • Python: Django、Flask、数据科学项目
  • PHP: 遗留企业应用、现代框架
  • 混合项目: 多语言微服务架构

问题类型与自动修复支持

问题类型描述自动修复支持
build_configuration构建配置错误(Java版本、Maven/Gradle配置)✅ 完全支持
dependency_conflict依赖冲突、版本不兼容✅ 完全支持
compilation_error编译错误、语法错误、符号未找到✅ 完全支持
test_failure单元/集成测试失败⚠️ 部分支持
runtime_error运行时错误(空指针、内存溢出)⚠️ 建议性修复
environment_issue环境问题(权限、磁盘空间、网络)⚠️ 建议性修复
business_rule_violation违反提取的业务规则✅ 完全支持

错误处理

常见错误码

错误码描述解决方案
SESSION_NOT_FOUND会话不存在验证 session_id
STAGE_INVALID阶段名称无效检查阶段是否在定义列表中
ENTRY_CRITERIA_NOT_MET不满足准入标准验证上下文先决条件
EXIT_CRITERIA_NOT_MET不满足准出标准完成所需产出物
AUTO_FIX_FAILED自动修复失败查看日志,考虑手动干预
VALIDATION_FAILED集成验证失败检查构建日志和测试报告

审计日志

所有操作都会记录到审计轨迹中:

{
  "timestamp": "2026-03-24T12:50:00Z",
  "action": "stage_completed",
  "actor": "code-hug",
  "details": {
    "session_id": "membership-service-001",
    "stage": "requirements_analysis",
    "artifact": "/path/to/prd.md",
    "business_rules_extracted": true
  }
}

与代码考古学集成

Code Hug 与代码考古学技能无缝集成,提供:

  • 增强的商业智能: 更深入的业务规则提取和PRD生成
  • 全面分析: 结合技术和业务视角
  • 智能工作流: 业务感知的工作流编排
  • 统一报告: 集成的技术和业务评估报告

最佳实践

  • 渐进式采用: 从单个阶段开始,再启用完整流水线
  • 安全第一: 始终启用安全检查和回滚机制
  • 业务上下文: 提供丰富的业务上下文以获得更好的智能提取
  • 定期验证: 与领域专家验证假设和提取的规则
  • 持续改进: 使用审计日志优化工作流配置

版本历史

版本日期变更
1.0.02026-03-24初始发布,从 workflow-orchestrator 演化而来,增强了商业智能能力

Comments

Loading comments...