Skip to content

aiskillstore/marketplace / skills/21pounder/deep-research

deep-research

Verified

Conduct comprehensive deep research on any topic using Dify-powered workflow - searches documentation, academic papers, tutorials, APIs, best practices, and returns structured analysis with insights.

FileKindSize
SKILL.mdskill md3.4 KB
scripts/dify-client.tsscript9.6 KB
skill-report.jsonconfig88.3 KB

skill-report.json

View on GitHub
{
  "schema_version": "2.0",
  "meta": {
    "generated_at": "2026-07-04T16:32:17.458Z",
    "slug": "21pounder-deep-research",
    "source_url": "https://github.com/21pounder/terminalAgent/tree/main/deepresearch/.claude/skills/deep-research",
    "source_ref": "main",
    "model": "codex",
    "analysis_version": "3.0.0",
    "source_type": "community",
    "content_hash": "62cb78989ab6302a2264dcba46debea92458bf7f279cad7e353360edbe1d7a7e",
    "tree_hash": "ea7dfd48d180d516dc255e48a74d67e6e0067aeb34ad993e4d0e92604e62d985",
    "provenance": {
      "model_effective": "codex",
      "fallback_chain": [
        {
          "agent": "codex",
          "outcome": "success"
        }
      ],
      "analysis_version": "3.0.0"
    }
  },
  "skill": {
    "name": "deep-research",
    "description": "Conduct deep research on coding and technical topics through a Dify workflow, then return task analysis and implementation guidance.",
    "summary": "Research coding tasks through a Dify workflow and return structured implementation guidance.",
    "icon": "📦",
    "version": "3.1.1",
    "author": "21pounder",
    "license": "MIT",
    "tags": [
      "deep-research",
      "dify",
      "coding-research",
      "documentation",
      "implementation-planning"
    ],
    "supported_tools": [
      "claude",
      "codex",
      "claude-code"
    ],
    "risk_factors": [
      "external_commands",
      "network",
      "filesystem",
      "env_access"
    ],
    "category": "research"
  },
  "security_audit": {
    "risk_level": "high",
    "is_blocked": false,
    "safe_to_publish": false,
    "analysis_status": "ok",
    "summary": "Most TypeScript template-literal and Markdown code-fence detections are false positives for shell execution. Confirmed risks remain around implicit .env loading from parent directories, outbound Dify network calls, configurable endpoints receiving bearer tokens, and instructions that may execute remote workflow guidance locally. No prompt injection attempt was found in the reviewed files.",
    "remediation": [
      {
        "issue": "Implicit parent .env loading",
        "suggestion": "Remove upward .env traversal and require an explicit configuration path or environment variables set by the user.",
        "severity": "high"
      },
      {
        "issue": "Configurable endpoint receives an API key",
        "suggestion": "Validate DIFY_BASE_URL against trusted HTTPS hosts before sending the Authorization header.",
        "severity": "high"
      },
      {
        "issue": "External workflow output can drive local changes",
        "suggestion": "Require human review before installing dependencies, editing files, setting environment variables, or running generated verification commands.",
        "severity": "high"
      },
      {
        "issue": "Research prompts leave the local environment",
        "suggestion": "Disclose that task details are sent to Dify and advise users to remove secrets and proprietary code from prompts.",
        "severity": "medium"
      },
      {
        "issue": "npx command execution in the workflow instructions",
        "suggestion": "Use pinned local dependencies or document exact package versions instead of relying on unpinned npx resolution.",
        "severity": "medium"
      }
    ],
    "risk_factor_evidence": [
      {
        "factor": "external_commands",
        "evidence": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 20,
            "line_end": 20
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 114,
            "line_end": 114
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 115,
            "line_end": 115
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 116,
            "line_end": 116
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 117,
            "line_end": 117
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 118,
            "line_end": 118
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 124,
            "line_end": 124
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 127,
            "line_end": 127
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 143,
            "line_end": 143
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 146,
            "line_end": 146
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 162,
            "line_end": 162
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 196,
            "line_end": 196
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 198,
            "line_end": 198
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 203,
            "line_end": 203
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 213,
            "line_end": 213
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 235,
            "line_end": 235
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 238,
            "line_end": 238
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 249,
            "line_end": 249
          },
          {
            "file": "SKILL.md",
            "line_start": 24,
            "line_end": 46
          },
          {
            "file": "SKILL.md",
            "line_start": 46,
            "line_end": 51
          },
          {
            "file": "SKILL.md",
            "line_start": 51,
            "line_end": 52
          },
          {
            "file": "SKILL.md",
            "line_start": 52,
            "line_end": 55
          },
          {
            "file": "SKILL.md",
            "line_start": 55,
            "line_end": 55
          },
          {
            "file": "SKILL.md",
            "line_start": 57,
            "line_end": 59
          },
          {
            "file": "SKILL.md",
            "line_start": 59,
            "line_end": 62
          },
          {
            "file": "SKILL.md",
            "line_start": 62,
            "line_end": 71
          },
          {
            "file": "SKILL.md",
            "line_start": 71,
            "line_end": 75
          },
          {
            "file": "SKILL.md",
            "line_start": 75,
            "line_end": 76
          },
          {
            "file": "SKILL.md",
            "line_start": 76,
            "line_end": 97
          },
          {
            "file": "SKILL.md",
            "line_start": 97,
            "line_end": 98
          },
          {
            "file": "SKILL.md",
            "line_start": 98,
            "line_end": 98
          },
          {
            "file": "SKILL.md",
            "line_start": 103,
            "line_end": 115
          }
        ]
      },
      {
        "factor": "network",
        "evidence": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 124,
            "line_end": 124
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 95,
            "line_end": 95
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 286,
            "line_end": 286
          }
        ]
      },
      {
        "factor": "filesystem",
        "evidence": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 12,
            "line_end": 12
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 13,
            "line_end": 13
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 12,
            "line_end": 12
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 13,
            "line_end": 13
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 12,
            "line_end": 12
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 13,
            "line_end": 13
          }
        ]
      },
      {
        "factor": "env_access",
        "evidence": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 95,
            "line_end": 95
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 96,
            "line_end": 96
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 97,
            "line_end": 97
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 291,
            "line_end": 291
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 95,
            "line_end": 95
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 96,
            "line_end": 96
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 97,
            "line_end": 97
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 291,
            "line_end": 291
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 4,
            "line_end": 4
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 18,
            "line_end": 18
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 96,
            "line_end": 96
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 101,
            "line_end": 101
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 285,
            "line_end": 285
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 291,
            "line_end": 291
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 292,
            "line_end": 292
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 293,
            "line_end": 293
          },
          {
            "file": "SKILL.md",
            "line_start": 98,
            "line_end": 98
          }
        ]
      }
    ],
    "static_findings": [
      {
        "id": "external_commands:scripts/dify-client.ts:20:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "scripts/dify-client.ts",
        "line_start": 20,
        "line_end": 20,
        "snippet": "console.error(`[Dify Client] Loaded env from: ${envPath}`);"
      },
      {
        "id": "external_commands:scripts/dify-client.ts:114:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "scripts/dify-client.ts",
        "line_start": 114,
        "line_end": 114,
        "snippet": "console.error(`[Dify Client] Starting research workflow...`);"
      },
      {
        "id": "external_commands:scripts/dify-client.ts:115:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "scripts/dify-client.ts",
        "line_start": 115,
        "line_end": 115,
        "snippet": "console.error(`[Dify Client] Task: ${codingTask.substring(0, 100)}${codingTask.length > 100 ? \"...\" "
      },
      {
        "id": "external_commands:scripts/dify-client.ts:116:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "scripts/dify-client.ts",
        "line_start": 116,
        "line_end": 116,
        "snippet": "console.error(`[Dify Client] Tech Stack: ${techStack || \"(not specified)\"}`);"
      },
      {
        "id": "external_commands:scripts/dify-client.ts:117:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "scripts/dify-client.ts",
        "line_start": 117,
        "line_end": 117,
        "snippet": "console.error(`[Dify Client] Depth: ${validDepth}`);"
      },
      {
        "id": "external_commands:scripts/dify-client.ts:118:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "scripts/dify-client.ts",
        "line_start": 118,
        "line_end": 118,
        "snippet": "console.error(`[Dify Client] Connecting to ${this.config.baseUrl}...`);"
      },
      {
        "id": "external_commands:scripts/dify-client.ts:124:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "scripts/dify-client.ts",
        "line_start": 124,
        "line_end": 124,
        "snippet": "const response = await fetch(`${this.config.baseUrl}/workflows/run`, {"
      },
      {
        "id": "external_commands:scripts/dify-client.ts:127:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "scripts/dify-client.ts",
        "line_start": 127,
        "line_end": 127,
        "snippet": "\"Authorization\": `Bearer ${this.config.apiKey}`,"
      },
      {
        "id": "external_commands:scripts/dify-client.ts:143:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "scripts/dify-client.ts",
        "line_start": 143,
        "line_end": 143,
        "snippet": "console.error(`[Dify Client] API Error: ${response.status}`);"
      },
      {
        "id": "external_commands:scripts/dify-client.ts:146:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "scripts/dify-client.ts",
        "line_start": 146,
        "line_end": 146,
        "snippet": "error: `Dify API error: ${response.status} - ${errorText}`,"
      },
      {
        "id": "external_commands:scripts/dify-client.ts:162:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "scripts/dify-client.ts",
        "line_start": 162,
        "line_end": 162,
        "snippet": "console.error(`[Dify Client] Receiving streaming response...`);"
      },
      {
        "id": "external_commands:scripts/dify-client.ts:196:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "scripts/dify-client.ts",
        "line_start": 196,
        "line_end": 196,
        "snippet": "console.error(`[Dify Client] ▶ ${event.data.title}`);"
      },
      {
        "id": "external_commands:scripts/dify-client.ts:198:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "scripts/dify-client.ts",
        "line_start": 198,
        "line_end": 198,
        "snippet": "console.error(`[Dify Client] ✓ ${event.data.title}`);"
      },
      {
        "id": "external_commands:scripts/dify-client.ts:203:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "scripts/dify-client.ts",
        "line_start": 203,
        "line_end": 203,
        "snippet": "console.error(`[Dify Client] ✓ Workflow finished`);"
      },
      {
        "id": "external_commands:scripts/dify-client.ts:213:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "scripts/dify-client.ts",
        "line_start": 213,
        "line_end": 213,
        "snippet": "console.error(`[Dify Client] Completed in ${(duration / 1000).toFixed(1)}s`);"
      },
      {
        "id": "external_commands:scripts/dify-client.ts:235:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "scripts/dify-client.ts",
        "line_start": 235,
        "line_end": 235,
        "snippet": "console.error(`[Dify Client] Error: ${errorMessage}`);"
      },
      {
        "id": "external_commands:scripts/dify-client.ts:238:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "scripts/dify-client.ts",
        "line_start": 238,
        "line_end": 238,
        "snippet": "error: `Research failed: ${errorMessage}`,"
      },
      {
        "id": "external_commands:scripts/dify-client.ts:249:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "scripts/dify-client.ts",
        "line_start": 249,
        "line_end": 249,
        "snippet": "const jsonMatch = analysisJson.match(/```json\\s*([\\s\\S]*?)\\s*```/);"
      },
      {
        "id": "network:scripts/dify-client.ts:124:fetch-api-call",
        "category": "network",
        "severity": "low",
        "pattern": "Fetch API call",
        "file": "scripts/dify-client.ts",
        "line_start": 124,
        "line_end": 124,
        "snippet": "const response = await fetch(`${this.config.baseUrl}/workflows/run`, {"
      },
      {
        "id": "network:scripts/dify-client.ts:95:hardcoded-url",
        "category": "network",
        "severity": "low",
        "pattern": "Hardcoded URL",
        "file": "scripts/dify-client.ts",
        "line_start": 95,
        "line_end": 95,
        "snippet": "baseUrl: config.baseUrl || process.env.DIFY_BASE_URL || \"https://api.dify.ai/v1\","
      },
      {
        "id": "network:scripts/dify-client.ts:286:hardcoded-url",
        "category": "network",
        "severity": "low",
        "pattern": "Hardcoded URL",
        "file": "scripts/dify-client.ts",
        "line_start": 286,
        "line_end": 286,
        "snippet": "console.error(\"  DIFY_BASE_URL   Dify API base URL (default: https://api.dify.ai/v1)\");"
      },
      {
        "id": "filesystem:scripts/dify-client.ts:12:path-resolve-with",
        "category": "filesystem",
        "severity": "high",
        "pattern": "Path resolve with ..",
        "file": "scripts/dify-client.ts",
        "line_start": 12,
        "line_end": 12,
        "snippet": "path.resolve(__dirname, \"../../../../.env\"),  // deepresearch/.env"
      },
      {
        "id": "filesystem:scripts/dify-client.ts:13:path-resolve-with",
        "category": "filesystem",
        "severity": "high",
        "pattern": "Path resolve with ..",
        "file": "scripts/dify-client.ts",
        "line_start": 13,
        "line_end": 13,
        "snippet": "path.resolve(__dirname, \"../../../.env\"),     // skills/.env"
      },
      {
        "id": "filesystem:scripts/dify-client.ts:12:path-traversal-sequence",
        "category": "filesystem",
        "severity": "high",
        "pattern": "Path traversal sequence",
        "file": "scripts/dify-client.ts",
        "line_start": 12,
        "line_end": 12,
        "snippet": "path.resolve(__dirname, \"../../../../.env\"),  // deepresearch/.env"
      },
      {
        "id": "filesystem:scripts/dify-client.ts:13:path-traversal-sequence",
        "category": "filesystem",
        "severity": "high",
        "pattern": "Path traversal sequence",
        "file": "scripts/dify-client.ts",
        "line_start": 13,
        "line_end": 13,
        "snippet": "path.resolve(__dirname, \"../../../.env\"),     // skills/.env"
      },
      {
        "id": "filesystem:scripts/dify-client.ts:12:hidden-file-access",
        "category": "filesystem",
        "severity": "medium",
        "pattern": "Hidden file access",
        "file": "scripts/dify-client.ts",
        "line_start": 12,
        "line_end": 12,
        "snippet": "path.resolve(__dirname, \"../../../../.env\"),  // deepresearch/.env"
      },
      {
        "id": "filesystem:scripts/dify-client.ts:13:hidden-file-access",
        "category": "filesystem",
        "severity": "medium",
        "pattern": "Hidden file access",
        "file": "scripts/dify-client.ts",
        "line_start": 13,
        "line_end": 13,
        "snippet": "path.resolve(__dirname, \"../../../.env\"),     // skills/.env"
      },
      {
        "id": "env_access:scripts/dify-client.ts:95:environment-variable-access-dot-notation",
        "category": "env_access",
        "severity": "low",
        "pattern": "Environment variable access (dot notation)",
        "file": "scripts/dify-client.ts",
        "line_start": 95,
        "line_end": 95,
        "snippet": "baseUrl: config.baseUrl || process.env.DIFY_BASE_URL || \"https://api.dify.ai/v1\","
      },
      {
        "id": "env_access:scripts/dify-client.ts:96:environment-variable-access-dot-notation",
        "category": "env_access",
        "severity": "low",
        "pattern": "Environment variable access (dot notation)",
        "file": "scripts/dify-client.ts",
        "line_start": 96,
        "line_end": 96,
        "snippet": "apiKey: config.apiKey || process.env.DIFY_API_KEY || \"\","
      },
      {
        "id": "env_access:scripts/dify-client.ts:97:environment-variable-access-dot-notation",
        "category": "env_access",
        "severity": "low",
        "pattern": "Environment variable access (dot notation)",
        "file": "scripts/dify-client.ts",
        "line_start": 97,
        "line_end": 97,
        "snippet": "workflowId: config.workflowId || process.env.DIFY_WORKFLOW_ID,"
      },
      {
        "id": "env_access:scripts/dify-client.ts:291:environment-variable-access-dot-notation",
        "category": "env_access",
        "severity": "low",
        "pattern": "Environment variable access (dot notation)",
        "file": "scripts/dify-client.ts",
        "line_start": 291,
        "line_end": 291,
        "snippet": "if (!process.env.DIFY_API_KEY) {"
      },
      {
        "id": "env_access:scripts/dify-client.ts:95:environment-variable-object",
        "category": "env_access",
        "severity": "low",
        "pattern": "Environment variable object",
        "file": "scripts/dify-client.ts",
        "line_start": 95,
        "line_end": 95,
        "snippet": "baseUrl: config.baseUrl || process.env.DIFY_BASE_URL || \"https://api.dify.ai/v1\","
      },
      {
        "id": "env_access:scripts/dify-client.ts:96:environment-variable-object",
        "category": "env_access",
        "severity": "low",
        "pattern": "Environment variable object",
        "file": "scripts/dify-client.ts",
        "line_start": 96,
        "line_end": 96,
        "snippet": "apiKey: config.apiKey || process.env.DIFY_API_KEY || \"\","
      },
      {
        "id": "env_access:scripts/dify-client.ts:97:environment-variable-object",
        "category": "env_access",
        "severity": "low",
        "pattern": "Environment variable object",
        "file": "scripts/dify-client.ts",
        "line_start": 97,
        "line_end": 97,
        "snippet": "workflowId: config.workflowId || process.env.DIFY_WORKFLOW_ID,"
      },
      {
        "id": "env_access:scripts/dify-client.ts:291:environment-variable-object",
        "category": "env_access",
        "severity": "low",
        "pattern": "Environment variable object",
        "file": "scripts/dify-client.ts",
        "line_start": 291,
        "line_end": 291,
        "snippet": "if (!process.env.DIFY_API_KEY) {"
      },
      {
        "id": "env_access:scripts/dify-client.ts:4:dotenv-library",
        "category": "env_access",
        "severity": "low",
        "pattern": "dotenv library",
        "file": "scripts/dify-client.ts",
        "line_start": 4,
        "line_end": 4,
        "snippet": "import dotenv from \"dotenv\";"
      },
      {
        "id": "env_access:scripts/dify-client.ts:18:dotenv-library",
        "category": "env_access",
        "severity": "low",
        "pattern": "dotenv library",
        "file": "scripts/dify-client.ts",
        "line_start": 18,
        "line_end": 18,
        "snippet": "const result = dotenv.config({ path: envPath });"
      },
      {
        "id": "env_access:scripts/dify-client.ts:96:generic-api-secret-keys",
        "category": "env_access",
        "severity": "high",
        "pattern": "Generic API/secret keys",
        "file": "scripts/dify-client.ts",
        "line_start": 96,
        "line_end": 96,
        "snippet": "apiKey: config.apiKey || process.env.DIFY_API_KEY || \"\","
      },
      {
        "id": "env_access:scripts/dify-client.ts:101:generic-api-secret-keys",
        "category": "env_access",
        "severity": "high",
        "pattern": "Generic API/secret keys",
        "file": "scripts/dify-client.ts",
        "line_start": 101,
        "line_end": 101,
        "snippet": "throw new Error(\"DIFY_API_KEY is required\");"
      },
      {
        "id": "env_access:scripts/dify-client.ts:285:generic-api-secret-keys",
        "category": "env_access",
        "severity": "high",
        "pattern": "Generic API/secret keys",
        "file": "scripts/dify-client.ts",
        "line_start": 285,
        "line_end": 285,
        "snippet": "console.error(\"  DIFY_API_KEY    Dify API key (required)\");"
      },
      {
        "id": "env_access:scripts/dify-client.ts:291:generic-api-secret-keys",
        "category": "env_access",
        "severity": "high",
        "pattern": "Generic API/secret keys",
        "file": "scripts/dify-client.ts",
        "line_start": 291,
        "line_end": 291,
        "snippet": "if (!process.env.DIFY_API_KEY) {"
      },
      {
        "id": "env_access:scripts/dify-client.ts:292:generic-api-secret-keys",
        "category": "env_access",
        "severity": "high",
        "pattern": "Generic API/secret keys",
        "file": "scripts/dify-client.ts",
        "line_start": 292,
        "line_end": 292,
        "snippet": "console.error(\"Error: DIFY_API_KEY not found in environment variables.\");"
      },
      {
        "id": "env_access:scripts/dify-client.ts:293:generic-api-secret-keys",
        "category": "env_access",
        "severity": "high",
        "pattern": "Generic API/secret keys",
        "file": "scripts/dify-client.ts",
        "line_start": 293,
        "line_end": 293,
        "snippet": "console.error(\"Please set DIFY_API_KEY in your .env file or environment.\");"
      },
      {
        "id": "sensitive:scripts/dify-client.ts:6:environment-file-access",
        "category": "sensitive",
        "severity": "high",
        "pattern": "Environment file access",
        "file": "scripts/dify-client.ts",
        "line_start": 6,
        "line_end": 6,
        "snippet": "// 自动加载 .env 文件(从脚本目录向上查找)"
      },
      {
        "id": "sensitive:scripts/dify-client.ts:10:environment-file-access",
        "category": "sensitive",
        "severity": "high",
        "pattern": "Environment file access",
        "file": "scripts/dify-client.ts",
        "line_start": 10,
        "line_end": 10,
        "snippet": "// 尝试多个位置加载 .env"
      },
      {
        "id": "sensitive:scripts/dify-client.ts:12:environment-file-access",
        "category": "sensitive",
        "severity": "high",
        "pattern": "Environment file access",
        "file": "scripts/dify-client.ts",
        "line_start": 12,
        "line_end": 12,
        "snippet": "path.resolve(__dirname, \"../../../../.env\"),  // deepresearch/.env"
      },
      {
        "id": "sensitive:scripts/dify-client.ts:13:environment-file-access",
        "category": "sensitive",
        "severity": "high",
        "pattern": "Environment file access",
        "file": "scripts/dify-client.ts",
        "line_start": 13,
        "line_end": 13,
        "snippet": "path.resolve(__dirname, \"../../../.env\"),     // skills/.env"
      },
      {
        "id": "sensitive:scripts/dify-client.ts:14:environment-file-access",
        "category": "sensitive",
        "severity": "high",
        "pattern": "Environment file access",
        "file": "scripts/dify-client.ts",
        "line_start": 14,
        "line_end": 14,
        "snippet": "path.resolve(process.cwd(), \".env\"),          // 当前工作目录"
      },
      {
        "id": "sensitive:scripts/dify-client.ts:95:environment-file-access",
        "category": "sensitive",
        "severity": "high",
        "pattern": "Environment file access",
        "file": "scripts/dify-client.ts",
        "line_start": 95,
        "line_end": 95,
        "snippet": "baseUrl: config.baseUrl || process.env.DIFY_BASE_URL || \"https://api.dify.ai/v1\","
      },
      {
        "id": "sensitive:scripts/dify-client.ts:96:environment-file-access",
        "category": "sensitive",
        "severity": "high",
        "pattern": "Environment file access",
        "file": "scripts/dify-client.ts",
        "line_start": 96,
        "line_end": 96,
        "snippet": "apiKey: config.apiKey || process.env.DIFY_API_KEY || \"\","
      },
      {
        "id": "sensitive:scripts/dify-client.ts:97:environment-file-access",
        "category": "sensitive",
        "severity": "high",
        "pattern": "Environment file access",
        "file": "scripts/dify-client.ts",
        "line_start": 97,
        "line_end": 97,
        "snippet": "workflowId: config.workflowId || process.env.DIFY_WORKFLOW_ID,"
      },
      {
        "id": "sensitive:scripts/dify-client.ts:291:environment-file-access",
        "category": "sensitive",
        "severity": "high",
        "pattern": "Environment file access",
        "file": "scripts/dify-client.ts",
        "line_start": 291,
        "line_end": 291,
        "snippet": "if (!process.env.DIFY_API_KEY) {"
      },
      {
        "id": "sensitive:scripts/dify-client.ts:293:environment-file-access",
        "category": "sensitive",
        "severity": "high",
        "pattern": "Environment file access",
        "file": "scripts/dify-client.ts",
        "line_start": 293,
        "line_end": 293,
        "snippet": "console.error(\"Please set DIFY_API_KEY in your .env file or environment.\");"
      },
      {
        "id": "external_commands:SKILL.md:24:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 24,
        "line_end": 46,
        "snippet": "```json"
      },
      {
        "id": "external_commands:SKILL.md:46:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 46,
        "line_end": 51,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:51:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 51,
        "line_end": 52,
        "snippet": "The client script is at: `.claude/skills/deep-research/scripts/dify-client.ts`"
      },
      {
        "id": "external_commands:SKILL.md:52:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 52,
        "line_end": 55,
        "snippet": "Use `Glob` to find the absolute path if needed."
      },
      {
        "id": "external_commands:SKILL.md:55:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 55,
        "line_end": 55,
        "snippet": "Use `Bash` to run the script with `npx tsx`:"
      },
      {
        "id": "external_commands:SKILL.md:57:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 57,
        "line_end": 59,
        "snippet": "```bash"
      },
      {
        "id": "external_commands:SKILL.md:59:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 59,
        "line_end": 62,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:62:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 62,
        "line_end": 71,
        "snippet": "```bash"
      },
      {
        "id": "external_commands:SKILL.md:71:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 71,
        "line_end": 75,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:75:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 75,
        "line_end": 76,
        "snippet": "- `analysis`: Task analysis with knowledge gaps and tech requirements"
      },
      {
        "id": "external_commands:SKILL.md:76:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 76,
        "line_end": 97,
        "snippet": "- `guide`: Complete implementation guide with:"
      },
      {
        "id": "external_commands:SKILL.md:97:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 97,
        "line_end": 98,
        "snippet": "1. The script automatically loads `.env` from the project root (no manual env setup needed)"
      },
      {
        "id": "external_commands:SKILL.md:98:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 98,
        "line_end": 98,
        "snippet": "2. If still failing, check that `.env` contains `DIFY_API_KEY` and `DIFY_BASE_URL`"
      },
      {
        "id": "external_commands:SKILL.md:103:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 103,
        "line_end": 115,
        "snippet": "```json"
      },
      {
        "id": "env_access:SKILL.md:98:generic-api-secret-keys",
        "category": "env_access",
        "severity": "high",
        "pattern": "Generic API/secret keys",
        "file": "SKILL.md",
        "line_start": 98,
        "line_end": 98,
        "snippet": "2. If still failing, check that `.env` contains `DIFY_API_KEY` and `DIFY_BASE_URL`"
      },
      {
        "id": "sensitive:SKILL.md:97:environment-file-access",
        "category": "sensitive",
        "severity": "high",
        "pattern": "Environment file access",
        "file": "SKILL.md",
        "line_start": 97,
        "line_end": 97,
        "snippet": "1. The script automatically loads `.env` from the project root (no manual env setup needed)"
      },
      {
        "id": "sensitive:SKILL.md:98:environment-file-access",
        "category": "sensitive",
        "severity": "high",
        "pattern": "Environment file access",
        "file": "SKILL.md",
        "line_start": 98,
        "line_end": 98,
        "snippet": "2. If still failing, check that `.env` contains `DIFY_API_KEY` and `DIFY_BASE_URL`"
      }
    ],
    "finding_verdicts": [
      {
        "id": "external_commands:scripts/dify-client.ts:20:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "This is TypeScript syntax for logging, string interpolation, request construction, or parsing. It does not invoke a shell or child process."
      },
      {
        "id": "external_commands:scripts/dify-client.ts:114:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "This is TypeScript syntax for logging, string interpolation, request construction, or parsing. It does not invoke a shell or child process."
      },
      {
        "id": "external_commands:scripts/dify-client.ts:115:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "This is TypeScript syntax for logging, string interpolation, request construction, or parsing. It does not invoke a shell or child process."
      },
      {
        "id": "external_commands:scripts/dify-client.ts:116:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "This is TypeScript syntax for logging, string interpolation, request construction, or parsing. It does not invoke a shell or child process."
      },
      {
        "id": "external_commands:scripts/dify-client.ts:117:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "This is TypeScript syntax for logging, string interpolation, request construction, or parsing. It does not invoke a shell or child process."
      },
      {
        "id": "external_commands:scripts/dify-client.ts:118:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "This is TypeScript syntax for logging, string interpolation, request construction, or parsing. It does not invoke a shell or child process."
      },
      {
        "id": "external_commands:scripts/dify-client.ts:124:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "This is TypeScript syntax for logging, string interpolation, request construction, or parsing. It does not invoke a shell or child process."
      },
      {
        "id": "external_commands:scripts/dify-client.ts:127:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "This is TypeScript syntax for logging, string interpolation, request construction, or parsing. It does not invoke a shell or child process."
      },
      {
        "id": "external_commands:scripts/dify-client.ts:143:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "This is TypeScript syntax for logging, string interpolation, request construction, or parsing. It does not invoke a shell or child process."
      },
      {
        "id": "external_commands:scripts/dify-client.ts:146:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "This is TypeScript syntax for logging, string interpolation, request construction, or parsing. It does not invoke a shell or child process."
      },
      {
        "id": "external_commands:scripts/dify-client.ts:162:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "This is TypeScript syntax for logging, string interpolation, request construction, or parsing. It does not invoke a shell or child process."
      },
      {
        "id": "external_commands:scripts/dify-client.ts:196:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "This is TypeScript syntax for logging, string interpolation, request construction, or parsing. It does not invoke a shell or child process."
      },
      {
        "id": "external_commands:scripts/dify-client.ts:198:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "This is TypeScript syntax for logging, string interpolation, request construction, or parsing. It does not invoke a shell or child process."
      },
      {
        "id": "external_commands:scripts/dify-client.ts:203:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "This is TypeScript syntax for logging, string interpolation, request construction, or parsing. It does not invoke a shell or child process."
      },
      {
        "id": "external_commands:scripts/dify-client.ts:213:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "This is TypeScript syntax for logging, string interpolation, request construction, or parsing. It does not invoke a shell or child process."
      },
      {
        "id": "external_commands:scripts/dify-client.ts:235:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "This is TypeScript syntax for logging, string interpolation, request construction, or parsing. It does not invoke a shell or child process."
      },
      {
        "id": "external_commands:scripts/dify-client.ts:238:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "This is TypeScript syntax for logging, string interpolation, request construction, or parsing. It does not invoke a shell or child process."
      },
      {
        "id": "external_commands:scripts/dify-client.ts:249:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "This is TypeScript syntax for logging, string interpolation, request construction, or parsing. It does not invoke a shell or child process."
      },
      {
        "id": "network:scripts/dify-client.ts:124:fetch-api-call",
        "verdict": "confirmed",
        "confidence": 0.9,
        "severity": "medium",
        "reason": "The client posts to the configured Dify workflow endpoint and sends research task details. This is intended network egress that can expose project context."
      },
      {
        "id": "network:scripts/dify-client.ts:95:hardcoded-url",
        "verdict": "confirmed",
        "confidence": 0.86,
        "severity": "medium",
        "reason": "The code defaults to https://api.dify.ai/v1 and allows DIFY_BASE_URL override. This defines an outbound service endpoint for the skill."
      },
      {
        "id": "network:scripts/dify-client.ts:286:hardcoded-url",
        "verdict": "false_positive",
        "confidence": 0.9,
        "reason": "This is CLI help text that prints the default Dify URL. It does not perform a request or change runtime behavior."
      },
      {
        "id": "filesystem:scripts/dify-client.ts:12:path-resolve-with",
        "verdict": "confirmed",
        "confidence": 0.92,
        "severity": "high",
        "reason": "The path walks upward from the script directory to locate parent .env files. Auto-loading secrets outside the skill directory is risky and can surprise users."
      },
      {
        "id": "filesystem:scripts/dify-client.ts:13:path-resolve-with",
        "verdict": "confirmed",
        "confidence": 0.92,
        "severity": "high",
        "reason": "The path walks upward from the script directory to locate parent .env files. Auto-loading secrets outside the skill directory is risky and can surprise users."
      },
      {
        "id": "filesystem:scripts/dify-client.ts:12:path-traversal-sequence",
        "verdict": "confirmed",
        "confidence": 0.92,
        "severity": "high",
        "reason": "The path walks upward from the script directory to locate parent .env files. Auto-loading secrets outside the skill directory is risky and can surprise users."
      },
      {
        "id": "filesystem:scripts/dify-client.ts:13:path-traversal-sequence",
        "verdict": "confirmed",
        "confidence": 0.92,
        "severity": "high",
        "reason": "The path walks upward from the script directory to locate parent .env files. Auto-loading secrets outside the skill directory is risky and can surprise users."
      },
      {
        "id": "filesystem:scripts/dify-client.ts:12:hidden-file-access",
        "verdict": "confirmed",
        "confidence": 0.92,
        "severity": "high",
        "reason": "The path walks upward from the script directory to locate parent .env files. Auto-loading secrets outside the skill directory is risky and can surprise users."
      },
      {
        "id": "filesystem:scripts/dify-client.ts:13:hidden-file-access",
        "verdict": "confirmed",
        "confidence": 0.92,
        "severity": "high",
        "reason": "The path walks upward from the script directory to locate parent .env files. Auto-loading secrets outside the skill directory is risky and can surprise users."
      },
      {
        "id": "env_access:scripts/dify-client.ts:95:environment-variable-access-dot-notation",
        "verdict": "confirmed",
        "confidence": 0.82,
        "severity": "medium",
        "reason": "DIFY_BASE_URL is read from the environment and controls the outbound endpoint. Combined with bearer authorization, endpoint overrides need validation."
      },
      {
        "id": "env_access:scripts/dify-client.ts:96:environment-variable-access-dot-notation",
        "verdict": "confirmed",
        "confidence": 0.86,
        "severity": "high",
        "reason": "The client reads DIFY_API_KEY from the environment and later uses it as a bearer token. This is legitimate configuration but handles a secret."
      },
      {
        "id": "env_access:scripts/dify-client.ts:97:environment-variable-access-dot-notation",
        "verdict": "false_positive",
        "confidence": 0.9,
        "reason": "DIFY_WORKFLOW_ID selects a workflow and is not a secret by itself. This line does not log or expose a sensitive value."
      },
      {
        "id": "env_access:scripts/dify-client.ts:291:environment-variable-access-dot-notation",
        "verdict": "false_positive",
        "confidence": 0.88,
        "reason": "This is a presence check before showing a configuration error. It does not print or transmit the DIFY_API_KEY value."
      },
      {
        "id": "env_access:scripts/dify-client.ts:95:environment-variable-object",
        "verdict": "confirmed",
        "confidence": 0.82,
        "severity": "medium",
        "reason": "DIFY_BASE_URL is read from the environment and controls the outbound endpoint. Combined with bearer authorization, endpoint overrides need validation."
      },
      {
        "id": "env_access:scripts/dify-client.ts:96:environment-variable-object",
        "verdict": "confirmed",
        "confidence": 0.86,
        "severity": "high",
        "reason": "The client reads DIFY_API_KEY from the environment and later uses it as a bearer token. This is legitimate configuration but handles a secret."
      },
      {
        "id": "env_access:scripts/dify-client.ts:97:environment-variable-object",
        "verdict": "false_positive",
        "confidence": 0.9,
        "reason": "DIFY_WORKFLOW_ID selects a workflow and is not a secret by itself. This line does not log or expose a sensitive value."
      },
      {
        "id": "env_access:scripts/dify-client.ts:291:environment-variable-object",
        "verdict": "false_positive",
        "confidence": 0.88,
        "reason": "This is a presence check before showing a configuration error. It does not print or transmit the DIFY_API_KEY value."
      },
      {
        "id": "env_access:scripts/dify-client.ts:4:dotenv-library",
        "verdict": "false_positive",
        "confidence": 0.92,
        "reason": "The import alone does not read files or expose secrets. The actual file loading behavior occurs at dotenv.config and is adjudicated separately."
      },
      {
        "id": "env_access:scripts/dify-client.ts:18:dotenv-library",
        "verdict": "confirmed",
        "confidence": 0.9,
        "severity": "high",
        "reason": "dotenv.config loads .env files from configured paths, including parent and current working directories. That can import local secrets without explicit per-run selection."
      },
      {
        "id": "env_access:scripts/dify-client.ts:96:generic-api-secret-keys",
        "verdict": "confirmed",
        "confidence": 0.88,
        "severity": "high",
        "reason": "The code reads DIFY_API_KEY from the environment and uses it for API authorization. Handling this secret is a real risk if endpoint validation is weak."
      },
      {
        "id": "env_access:scripts/dify-client.ts:101:generic-api-secret-keys",
        "verdict": "false_positive",
        "confidence": 0.86,
        "reason": "This line only names DIFY_API_KEY in validation or help text. It does not access, print, or transmit the secret value."
      },
      {
        "id": "env_access:scripts/dify-client.ts:285:generic-api-secret-keys",
        "verdict": "false_positive",
        "confidence": 0.86,
        "reason": "This line only names DIFY_API_KEY in validation or help text. It does not access, print, or transmit the secret value."
      },
      {
        "id": "env_access:scripts/dify-client.ts:291:generic-api-secret-keys",
        "verdict": "false_positive",
        "confidence": 0.86,
        "reason": "This line only names DIFY_API_KEY in validation or help text. It does not access, print, or transmit the secret value."
      },
      {
        "id": "env_access:scripts/dify-client.ts:292:generic-api-secret-keys",
        "verdict": "false_positive",
        "confidence": 0.86,
        "reason": "This line only names DIFY_API_KEY in validation or help text. It does not access, print, or transmit the secret value."
      },
      {
        "id": "env_access:scripts/dify-client.ts:293:generic-api-secret-keys",
        "verdict": "false_positive",
        "confidence": 0.86,
        "reason": "This line only names DIFY_API_KEY in validation or help text. It does not access, print, or transmit the secret value."
      },
      {
        "id": "sensitive:scripts/dify-client.ts:6:environment-file-access",
        "verdict": "confirmed",
        "confidence": 0.9,
        "severity": "high",
        "reason": "The code and comments show automatic .env loading from multiple locations, including parent and current working directories. That can read sensitive local configuration implicitly."
      },
      {
        "id": "sensitive:scripts/dify-client.ts:10:environment-file-access",
        "verdict": "confirmed",
        "confidence": 0.9,
        "severity": "high",
        "reason": "The code and comments show automatic .env loading from multiple locations, including parent and current working directories. That can read sensitive local configuration implicitly."
      },
      {
        "id": "sensitive:scripts/dify-client.ts:12:environment-file-access",
        "verdict": "confirmed",
        "confidence": 0.9,
        "severity": "high",
        "reason": "The code and comments show automatic .env loading from multiple locations, including parent and current working directories. That can read sensitive local configuration implicitly."
      },
      {
        "id": "sensitive:scripts/dify-client.ts:13:environment-file-access",
        "verdict": "confirmed",
        "confidence": 0.9,
        "severity": "high",
        "reason": "The code and comments show automatic .env loading from multiple locations, including parent and current working directories. That can read sensitive local configuration implicitly."
      },
      {
        "id": "sensitive:scripts/dify-client.ts:14:environment-file-access",
        "verdict": "confirmed",
        "confidence": 0.9,
        "severity": "high",
        "reason": "The code and comments show automatic .env loading from multiple locations, including parent and current working directories. That can read sensitive local configuration implicitly."
      },
      {
        "id": "sensitive:scripts/dify-client.ts:95:environment-file-access",
        "verdict": "confirmed",
        "confidence": 0.82,
        "severity": "high",
        "reason": "Because dotenv has already loaded .env files, this value can come from local environment files and controls the outbound API endpoint."
      },
      {
        "id": "sensitive:scripts/dify-client.ts:96:environment-file-access",
        "verdict": "confirmed",
        "confidence": 0.88,
        "severity": "high",
        "reason": "The client reads DIFY_API_KEY from environment data that may be loaded from .env files. It is a secret used for outbound authorization."
      },
      {
        "id": "sensitive:scripts/dify-client.ts:97:environment-file-access",
        "verdict": "false_positive",
        "confidence": 0.84,
        "reason": "DIFY_WORKFLOW_ID is not a secret by itself and this line does not access an environment file directly. The .env loading risk is covered at the loader lines."
      },
      {
        "id": "sensitive:scripts/dify-client.ts:291:environment-file-access",
        "verdict": "false_positive",
        "confidence": 0.86,
        "reason": "This line only checks whether DIFY_API_KEY exists before showing an error. It does not print or transmit the secret value."
      },
      {
        "id": "sensitive:scripts/dify-client.ts:293:environment-file-access",
        "verdict": "false_positive",
        "confidence": 0.82,
        "reason": "This is user-facing guidance to set an environment variable. It does not read a file or disclose the secret value."
      },
      {
        "id": "external_commands:SKILL.md:24:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.9,
        "reason": "This Markdown span is a code fence, inline tool name, file path, output field, or environment note. It is not shell execution by itself."
      },
      {
        "id": "external_commands:SKILL.md:46:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.9,
        "reason": "This Markdown span is a code fence, inline tool name, file path, output field, or environment note. It is not shell execution by itself."
      },
      {
        "id": "external_commands:SKILL.md:51:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.9,
        "reason": "This Markdown span is a code fence, inline tool name, file path, output field, or environment note. It is not shell execution by itself."
      },
      {
        "id": "external_commands:SKILL.md:52:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.9,
        "reason": "This Markdown span is a code fence, inline tool name, file path, output field, or environment note. It is not shell execution by itself."
      },
      {
        "id": "external_commands:SKILL.md:55:ruby-shell-backtick-execution",
        "verdict": "confirmed",
        "confidence": 0.84,
        "severity": "medium",
        "reason": "The skill explicitly tells the assistant to use Bash with npx tsx to run the client script. That is intentional external command execution and should require user review."
      },
      {
        "id": "external_commands:SKILL.md:57:ruby-shell-backtick-execution",
        "verdict": "confirmed",
        "confidence": 0.84,
        "severity": "medium",
        "reason": "The fenced command invokes npx tsx with user-supplied task text. It executes local tooling and may resolve packages at runtime."
      },
      {
        "id": "external_commands:SKILL.md:59:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.9,
        "reason": "This Markdown span is a code fence, inline tool name, file path, output field, or environment note. It is not shell execution by itself."
      },
      {
        "id": "external_commands:SKILL.md:62:ruby-shell-backtick-execution",
        "verdict": "confirmed",
        "confidence": 0.84,
        "severity": "medium",
        "reason": "The example commands invoke npx tsx for research tasks. This is external command execution even though the examples are documented."
      },
      {
        "id": "external_commands:SKILL.md:71:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.9,
        "reason": "This Markdown span is a code fence, inline tool name, file path, output field, or environment note. It is not shell execution by itself."
      },
      {
        "id": "external_commands:SKILL.md:75:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.9,
        "reason": "This Markdown span is a code fence, inline tool name, file path, output field, or environment note. It is not shell execution by itself."
      },
      {
        "id": "external_commands:SKILL.md:76:ruby-shell-backtick-execution",
        "verdict": "confirmed",
        "confidence": 0.72,
        "severity": "medium",
        "reason": "This section tells users to follow generated dependency installation and verification commands from the workflow guide. That can lead to executing commands supplied by a remote workflow."
      },
      {
        "id": "external_commands:SKILL.md:97:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.9,
        "reason": "This Markdown span is a code fence, inline tool name, file path, output field, or environment note. It is not shell execution by itself."
      },
      {
        "id": "external_commands:SKILL.md:98:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.9,
        "reason": "This Markdown span is a code fence, inline tool name, file path, output field, or environment note. It is not shell execution by itself."
      },
      {
        "id": "external_commands:SKILL.md:103:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.9,
        "reason": "This Markdown span is a code fence, inline tool name, file path, output field, or environment note. It is not shell execution by itself."
      },
      {
        "id": "env_access:SKILL.md:98:generic-api-secret-keys",
        "verdict": "false_positive",
        "confidence": 0.84,
        "reason": "This documentation names required environment variables but does not disclose a secret value. The risky automatic .env loading behavior is covered separately."
      },
      {
        "id": "sensitive:SKILL.md:97:environment-file-access",
        "verdict": "confirmed",
        "confidence": 0.82,
        "severity": "high",
        "reason": "The documentation confirms the script automatically loads .env from the project root and expects DIFY_API_KEY there. That supports implicit sensitive file access."
      },
      {
        "id": "sensitive:SKILL.md:98:environment-file-access",
        "verdict": "confirmed",
        "confidence": 0.82,
        "severity": "high",
        "reason": "The documentation confirms the script automatically loads .env from the project root and expects DIFY_API_KEY there. That supports implicit sensitive file access."
      }
    ],
    "semantic_findings": [
      {
        "title": "Untrusted Remote Workflow Can Drive Local Changes",
        "description": "The skill delegates research to a Dify workflow and then tells users to install dependencies, create files, modify files, set environment variables, and run verification commands from the returned guide. Treating remote workflow output as implementation instructions can lead to unsafe local changes if the workflow or response is compromised.",
        "severity": "high",
        "locations": [
          {
            "file": "SKILL.md",
            "line_start": 86,
            "line_end": 92
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 183,
            "line_end": 203
          }
        ],
        "confidence": 0.9,
        "confidence_reasoning": "SKILL.md explicitly directs users to act on the generated guide, and the client accepts guide output from the remote workflow. This is a clear trust boundary risk."
      },
      {
        "title": "Sensitive Research Context Sent to External Service",
        "description": "The client sends coding_task, tech_stack, and max_iterations to the configured Dify workflow endpoint. Research prompts may include proprietary project details, so the skill needs clear disclosure and consent before transmission.",
        "severity": "medium",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 124,
            "line_end": 138
          },
          {
            "file": "SKILL.md",
            "line_start": 10,
            "line_end": 14
          }
        ],
        "confidence": 0.88,
        "confidence_reasoning": "The request body includes the user task and stack, and the skill description states that research is delegated to Dify. The data transfer is intentional but sensitive."
      },
      {
        "title": "Configurable API Endpoint Receives Bearer Token",
        "description": "DIFY_BASE_URL can override the default endpoint, and the request includes an Authorization bearer token. A malicious or accidental endpoint override could receive the Dify API key.",
        "severity": "high",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 95,
            "line_end": 97
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 124,
            "line_end": 128
          }
        ],
        "confidence": 0.86,
        "confidence_reasoning": "The endpoint is environment configurable and the same request sends the API key in an Authorization header. The risk follows directly from these adjacent behaviors."
      }
    ],
    "critical_findings": [],
    "high_findings": [
      {
        "title": "Path resolve with ..",
        "description": "path.resolve(__dirname, \"../../../../.env\"),  // deepresearch/.env",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 12,
            "line_end": 12
          }
        ],
        "review_kind": "capability",
        "source_category": "filesystem",
        "source_severity": "high",
        "confidence": 0.92,
        "confidence_reasoning": "The path walks upward from the script directory to locate parent .env files. Auto-loading secrets outside the skill directory is risky and can surprise users."
      },
      {
        "title": "Path resolve with ..",
        "description": "path.resolve(__dirname, \"../../../.env\"),     // skills/.env",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 13,
            "line_end": 13
          }
        ],
        "review_kind": "capability",
        "source_category": "filesystem",
        "source_severity": "high",
        "confidence": 0.92,
        "confidence_reasoning": "The path walks upward from the script directory to locate parent .env files. Auto-loading secrets outside the skill directory is risky and can surprise users."
      },
      {
        "title": "Path traversal sequence",
        "description": "path.resolve(__dirname, \"../../../../.env\"),  // deepresearch/.env",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 12,
            "line_end": 12
          }
        ],
        "review_kind": "capability",
        "source_category": "filesystem",
        "source_severity": "high",
        "confidence": 0.92,
        "confidence_reasoning": "The path walks upward from the script directory to locate parent .env files. Auto-loading secrets outside the skill directory is risky and can surprise users."
      },
      {
        "title": "Path traversal sequence",
        "description": "path.resolve(__dirname, \"../../../.env\"),     // skills/.env",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 13,
            "line_end": 13
          }
        ],
        "review_kind": "capability",
        "source_category": "filesystem",
        "source_severity": "high",
        "confidence": 0.92,
        "confidence_reasoning": "The path walks upward from the script directory to locate parent .env files. Auto-loading secrets outside the skill directory is risky and can surprise users."
      },
      {
        "title": "Hidden file access",
        "description": "path.resolve(__dirname, \"../../../../.env\"),  // deepresearch/.env",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 12,
            "line_end": 12
          }
        ],
        "review_kind": "capability",
        "source_category": "filesystem",
        "source_severity": "medium",
        "confidence": 0.92,
        "confidence_reasoning": "The path walks upward from the script directory to locate parent .env files. Auto-loading secrets outside the skill directory is risky and can surprise users."
      },
      {
        "title": "Hidden file access",
        "description": "path.resolve(__dirname, \"../../../.env\"),     // skills/.env",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 13,
            "line_end": 13
          }
        ],
        "review_kind": "capability",
        "source_category": "filesystem",
        "source_severity": "medium",
        "confidence": 0.92,
        "confidence_reasoning": "The path walks upward from the script directory to locate parent .env files. Auto-loading secrets outside the skill directory is risky and can surprise users."
      },
      {
        "title": "Environment variable access (dot notation)",
        "description": "apiKey: config.apiKey || process.env.DIFY_API_KEY || \"\",",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 96,
            "line_end": 96
          }
        ],
        "review_kind": "capability",
        "source_category": "env_access",
        "source_severity": "low",
        "confidence": 0.86,
        "confidence_reasoning": "The client reads DIFY_API_KEY from the environment and later uses it as a bearer token. This is legitimate configuration but handles a secret."
      },
      {
        "title": "Environment variable object",
        "description": "apiKey: config.apiKey || process.env.DIFY_API_KEY || \"\",",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 96,
            "line_end": 96
          }
        ],
        "review_kind": "capability",
        "source_category": "env_access",
        "source_severity": "low",
        "confidence": 0.86,
        "confidence_reasoning": "The client reads DIFY_API_KEY from the environment and later uses it as a bearer token. This is legitimate configuration but handles a secret."
      },
      {
        "title": "dotenv library",
        "description": "const result = dotenv.config({ path: envPath });",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 18,
            "line_end": 18
          }
        ],
        "review_kind": "capability",
        "source_category": "env_access",
        "source_severity": "low",
        "confidence": 0.9,
        "confidence_reasoning": "dotenv.config loads .env files from configured paths, including parent and current working directories. That can import local secrets without explicit per-run selection."
      },
      {
        "title": "Generic API/secret keys",
        "description": "apiKey: config.apiKey || process.env.DIFY_API_KEY || \"\",",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 96,
            "line_end": 96
          }
        ],
        "review_kind": "capability",
        "source_category": "env_access",
        "source_severity": "high",
        "confidence": 0.88,
        "confidence_reasoning": "The code reads DIFY_API_KEY from the environment and uses it for API authorization. Handling this secret is a real risk if endpoint validation is weak."
      },
      {
        "title": "Environment file access",
        "description": "// 自动加载 .env 文件(从脚本目录向上查找)",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 6,
            "line_end": 6
          }
        ],
        "review_kind": "security",
        "source_category": "sensitive",
        "source_severity": "high",
        "confidence": 0.9,
        "confidence_reasoning": "The code and comments show automatic .env loading from multiple locations, including parent and current working directories. That can read sensitive local configuration implicitly."
      },
      {
        "title": "Environment file access",
        "description": "// 尝试多个位置加载 .env",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 10,
            "line_end": 10
          }
        ],
        "review_kind": "security",
        "source_category": "sensitive",
        "source_severity": "high",
        "confidence": 0.9,
        "confidence_reasoning": "The code and comments show automatic .env loading from multiple locations, including parent and current working directories. That can read sensitive local configuration implicitly."
      },
      {
        "title": "Environment file access",
        "description": "path.resolve(__dirname, \"../../../../.env\"),  // deepresearch/.env",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 12,
            "line_end": 12
          }
        ],
        "review_kind": "security",
        "source_category": "sensitive",
        "source_severity": "high",
        "confidence": 0.9,
        "confidence_reasoning": "The code and comments show automatic .env loading from multiple locations, including parent and current working directories. That can read sensitive local configuration implicitly."
      },
      {
        "title": "Environment file access",
        "description": "path.resolve(__dirname, \"../../../.env\"),     // skills/.env",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 13,
            "line_end": 13
          }
        ],
        "review_kind": "security",
        "source_category": "sensitive",
        "source_severity": "high",
        "confidence": 0.9,
        "confidence_reasoning": "The code and comments show automatic .env loading from multiple locations, including parent and current working directories. That can read sensitive local configuration implicitly."
      },
      {
        "title": "Environment file access",
        "description": "path.resolve(process.cwd(), \".env\"),          // 当前工作目录",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 14,
            "line_end": 14
          }
        ],
        "review_kind": "security",
        "source_category": "sensitive",
        "source_severity": "high",
        "confidence": 0.9,
        "confidence_reasoning": "The code and comments show automatic .env loading from multiple locations, including parent and current working directories. That can read sensitive local configuration implicitly."
      },
      {
        "title": "Environment file access",
        "description": "baseUrl: config.baseUrl || process.env.DIFY_BASE_URL || \"https://api.dify.ai/v1\",",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 95,
            "line_end": 95
          }
        ],
        "review_kind": "security",
        "source_category": "sensitive",
        "source_severity": "high",
        "confidence": 0.82,
        "confidence_reasoning": "Because dotenv has already loaded .env files, this value can come from local environment files and controls the outbound API endpoint."
      },
      {
        "title": "Environment file access",
        "description": "apiKey: config.apiKey || process.env.DIFY_API_KEY || \"\",",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 96,
            "line_end": 96
          }
        ],
        "review_kind": "security",
        "source_category": "sensitive",
        "source_severity": "high",
        "confidence": 0.88,
        "confidence_reasoning": "The client reads DIFY_API_KEY from environment data that may be loaded from .env files. It is a secret used for outbound authorization."
      },
      {
        "title": "Environment file access",
        "description": "1. The script automatically loads `.env` from the project root (no manual env setup needed)",
        "locations": [
          {
            "file": "SKILL.md",
            "line_start": 97,
            "line_end": 97
          }
        ],
        "review_kind": "security",
        "source_category": "sensitive",
        "source_severity": "high",
        "confidence": 0.82,
        "confidence_reasoning": "The documentation confirms the script automatically loads .env from the project root and expects DIFY_API_KEY there. That supports implicit sensitive file access."
      },
      {
        "title": "Environment file access",
        "description": "2. If still failing, check that `.env` contains `DIFY_API_KEY` and `DIFY_BASE_URL`",
        "locations": [
          {
            "file": "SKILL.md",
            "line_start": 98,
            "line_end": 98
          }
        ],
        "review_kind": "security",
        "source_category": "sensitive",
        "source_severity": "high",
        "confidence": 0.82,
        "confidence_reasoning": "The documentation confirms the script automatically loads .env from the project root and expects DIFY_API_KEY there. That supports implicit sensitive file access."
      },
      {
        "title": "Untrusted Remote Workflow Can Drive Local Changes",
        "description": "The skill delegates research to a Dify workflow and then tells users to install dependencies, create files, modify files, set environment variables, and run verification commands from the returned guide. Treating remote workflow output as implementation instructions can lead to unsafe local changes if the workflow or response is compromised.",
        "locations": [
          {
            "file": "SKILL.md",
            "line_start": 86,
            "line_end": 92
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 183,
            "line_end": 203
          }
        ],
        "review_kind": "security",
        "source_category": "semantic",
        "source_severity": "high",
        "confidence": 0.9,
        "confidence_reasoning": "SKILL.md explicitly directs users to act on the generated guide, and the client accepts guide output from the remote workflow. This is a clear trust boundary risk."
      },
      {
        "title": "Configurable API Endpoint Receives Bearer Token",
        "description": "DIFY_BASE_URL can override the default endpoint, and the request includes an Authorization bearer token. A malicious or accidental endpoint override could receive the Dify API key.",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 95,
            "line_end": 97
          },
          {
            "file": "scripts/dify-client.ts",
            "line_start": 124,
            "line_end": 128
          }
        ],
        "review_kind": "security",
        "source_category": "semantic",
        "source_severity": "high",
        "confidence": 0.86,
        "confidence_reasoning": "The endpoint is environment configurable and the same request sends the API key in an Authorization header. The risk follows directly from these adjacent behaviors."
      }
    ],
    "medium_findings": [
      {
        "title": "Fetch API call",
        "description": "const response = await fetch(`${this.config.baseUrl}/workflows/run`, {",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 124,
            "line_end": 124
          }
        ],
        "review_kind": "capability",
        "source_category": "network",
        "source_severity": "low",
        "confidence": 0.9,
        "confidence_reasoning": "The client posts to the configured Dify workflow endpoint and sends research task details. This is intended network egress that can expose project context."
      },
      {
        "title": "Hardcoded URL",
        "description": "baseUrl: config.baseUrl || process.env.DIFY_BASE_URL || \"https://api.dify.ai/v1\",",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 95,
            "line_end": 95
          }
        ],
        "review_kind": "capability",
        "source_category": "network",
        "source_severity": "low",
        "confidence": 0.86,
        "confidence_reasoning": "The code defaults to https://api.dify.ai/v1 and allows DIFY_BASE_URL override. This defines an outbound service endpoint for the skill."
      },
      {
        "title": "Environment variable access (dot notation)",
        "description": "baseUrl: config.baseUrl || process.env.DIFY_BASE_URL || \"https://api.dify.ai/v1\",",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 95,
            "line_end": 95
          }
        ],
        "review_kind": "capability",
        "source_category": "env_access",
        "source_severity": "low",
        "confidence": 0.82,
        "confidence_reasoning": "DIFY_BASE_URL is read from the environment and controls the outbound endpoint. Combined with bearer authorization, endpoint overrides need validation."
      },
      {
        "title": "Environment variable object",
        "description": "baseUrl: config.baseUrl || process.env.DIFY_BASE_URL || \"https://api.dify.ai/v1\",",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 95,
            "line_end": 95
          }
        ],
        "review_kind": "capability",
        "source_category": "env_access",
        "source_severity": "low",
        "confidence": 0.82,
        "confidence_reasoning": "DIFY_BASE_URL is read from the environment and controls the outbound endpoint. Combined with bearer authorization, endpoint overrides need validation."
      },
      {
        "title": "Ruby/shell backtick execution",
        "description": "Use `Bash` to run the script with `npx tsx`:",
        "locations": [
          {
            "file": "SKILL.md",
            "line_start": 55,
            "line_end": 55
          }
        ],
        "review_kind": "capability",
        "source_category": "external_commands",
        "source_severity": "medium",
        "confidence": 0.84,
        "confidence_reasoning": "The skill explicitly tells the assistant to use Bash with npx tsx to run the client script. That is intentional external command execution and should require user review."
      },
      {
        "title": "Ruby/shell backtick execution",
        "description": "```bash",
        "locations": [
          {
            "file": "SKILL.md",
            "line_start": 57,
            "line_end": 59
          }
        ],
        "review_kind": "capability",
        "source_category": "external_commands",
        "source_severity": "medium",
        "confidence": 0.84,
        "confidence_reasoning": "The fenced command invokes npx tsx with user-supplied task text. It executes local tooling and may resolve packages at runtime."
      },
      {
        "title": "Ruby/shell backtick execution",
        "description": "```bash",
        "locations": [
          {
            "file": "SKILL.md",
            "line_start": 62,
            "line_end": 71
          }
        ],
        "review_kind": "capability",
        "source_category": "external_commands",
        "source_severity": "medium",
        "confidence": 0.84,
        "confidence_reasoning": "The example commands invoke npx tsx for research tasks. This is external command execution even though the examples are documented."
      },
      {
        "title": "Ruby/shell backtick execution",
        "description": "- `guide`: Complete implementation guide with:",
        "locations": [
          {
            "file": "SKILL.md",
            "line_start": 76,
            "line_end": 97
          }
        ],
        "review_kind": "capability",
        "source_category": "external_commands",
        "source_severity": "medium",
        "confidence": 0.72,
        "confidence_reasoning": "This section tells users to follow generated dependency installation and verification commands from the workflow guide. That can lead to executing commands supplied by a remote workflow."
      },
      {
        "title": "Sensitive Research Context Sent to External Service",
        "description": "The client sends coding_task, tech_stack, and max_iterations to the configured Dify workflow endpoint. Research prompts may include proprietary project details, so the skill needs clear disclosure and consent before transmission.",
        "locations": [
          {
            "file": "scripts/dify-client.ts",
            "line_start": 124,
            "line_end": 138
          },
          {
            "file": "SKILL.md",
            "line_start": 10,
            "line_end": 14
          }
        ],
        "review_kind": "security",
        "source_category": "semantic",
        "source_severity": "medium",
        "confidence": 0.88,
        "confidence_reasoning": "The request body includes the user task and stack, and the skill description states that research is delegated to Dify. The data transfer is intentional but sensitive."
      }
    ],
    "low_findings": [],
    "dangerous_patterns": [],
    "files_scanned": 2,
    "total_lines": 444,
    "audit_model": "codex",
    "audited_at": "2026-07-04T16:32:17.458Z",
    "agent_auto_install_policy": "confirmation_required",
    "manual_install_policy": "allowed"
  },
  "content": {
    "user_title": "Research Complex Topics with Dify",
    "value_statement": "Complex coding questions often require current sources and implementation context. This skill sends the topic to a Dify workflow and returns a structured research guide.",
    "seo_keywords": [
      "Claude",
      "Codex",
      "Claude Code",
      "Dify research skill",
      "AI research workflow",
      "coding research assistant",
      "implementation guide",
      "developer research",
      "technical documentation search",
      "software best practices"
    ],
    "actual_capabilities": [
      "Runs a Dify workflow for coding and technology research.",
      "Accepts a task, optional tech stack, and depth from one to five.",
      "Streams workflow events and reports progress to standard error.",
      "Returns task analysis and an implementation guide when the workflow succeeds.",
      "Parses task analysis from plain text or structured fenced blocks."
    ],
    "limitations": [
      "Requires a valid DIFY_API_KEY and network access to Dify.",
      "Sends task details to an external Dify endpoint.",
      "Quality depends on the configured Dify workflow and its sources.",
      "Generated implementation steps need human review before use."
    ],
    "use_cases": [
      {
        "title": "Evaluate a New API",
        "description": "Research endpoints, examples, and integration concerns before implementation work starts.",
        "target_user": "Application developer"
      },
      {
        "title": "Compare Technical Options",
        "description": "Gather tradeoffs, ecosystem notes, and source-backed recommendations for architecture decisions.",
        "target_user": "Technical lead"
      },
      {
        "title": "Prepare Implementation Notes",
        "description": "Turn a complex task into analysis, dependencies, file changes, and verification steps.",
        "target_user": "Engineering researcher"
      }
    ],
    "prompt_templates": [
      {
        "title": "Research a Library",
        "scenario": "Beginner research request",
        "prompt": "Research how to use [library] for [task]. Use [tech stack] and depth 2."
      },
      {
        "title": "Plan an Integration",
        "scenario": "Implementation planning",
        "prompt": "Research how to integrate [service or API] into [project stack]. Include setup needs, risks, and verification steps."
      },
      {
        "title": "Compare Approaches",
        "scenario": "Decision support",
        "prompt": "Compare [approach A] and [approach B] for [project goal]. Focus on maintainability, performance, security, and migration effort."
      },
      {
        "title": "Build a Research Brief",
        "scenario": "Advanced implementation research",
        "prompt": "Research [complex task] for [stack]. Include architecture choices, dependencies, risks, migration steps, verification, and source priorities. Use depth 5."
      }
    ],
    "output_examples": [
      {
        "input": "Research OAuth2 login for a Next.js app.",
        "output": [
          "Task summary with key decisions.",
          "Recommended authentication flow.",
          "Implementation guide with verification steps."
        ]
      },
      {
        "input": "Compare Prisma and Drizzle for a PostgreSQL service.",
        "output": "A comparison brief covering schema workflow, query style, migration support, ecosystem maturity, and decision criteria."
      },
      {
        "input": "Research real-time notifications for a React and Node.js product.",
        "output": "A research report with transport options, dependency notes, implementation sequence, common issues, and source references."
      }
    ],
    "best_practices": [
      "Review the Dify endpoint and API key before running the skill.",
      "Remove secrets and customer data from research prompts.",
      "Treat generated install and verification steps as recommendations until reviewed."
    ],
    "anti_patterns": [
      "Do not send proprietary source code or credentials as research input.",
      "Do not run generated commands without checking package names and flags.",
      "Do not rely on the report as the only source for security decisions."
    ],
    "faq": [
      {
        "question": "What does this skill research?",
        "answer": "It researches coding tasks, APIs, libraries, implementation options, and technical best practices through a Dify workflow."
      },
      {
        "question": "Does it require external network access?",
        "answer": "Yes. It sends the research request to the configured Dify API endpoint."
      },
      {
        "question": "What credentials are needed?",
        "answer": "The client requires DIFY_API_KEY. DIFY_BASE_URL and DIFY_WORKFLOW_ID can also be configured."
      },
      {
        "question": "Can it change local files?",
        "answer": "The script returns guidance only. Users must review any suggested file changes before applying them."
      },
      {
        "question": "Is the output source-backed?",
        "answer": "The workflow is designed to search documentation, tutorials, papers, and examples, but source quality depends on the Dify workflow."
      },
      {
        "question": "Should I include private code in prompts?",
        "answer": "No. Remove secrets, customer data, and proprietary code before sending research prompts to an external service."
      }
    ]
  },
  "file_structure": [
    {
      "name": "scripts",
      "type": "dir",
      "path": "scripts",
      "children": [
        {
          "name": "dify-client.ts",
          "type": "file",
          "path": "scripts/dify-client.ts",
          "lines": 321
        }
      ]
    },
    {
      "name": "SKILL.md",
      "type": "file",
      "path": "SKILL.md",
      "lines": 123
    }
  ]
}
rea-changelog-updatemorluto/reaPrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
academy-guideanthropics/skillsStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
claude-apianthropics/skillsReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file).Stars: 198kUpdated Claude CodeCodexUnverifiedInstall
doc-coauthoringanthropics/skillsGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.Stars: 198kUpdated Claude CodeCodexVerifiedInstall