数据分析

Secure Data Analyst Skill Suite

试用

A secure data analysis workflow suite based on MGC Blackbox, providing credential protection, zero-exposure script application, script sealing collaboration, and knowledge management. Also includes a Data Analyst Agent system prompt template.

它能做什么

A secure data analysis workflow suite based on MGC Blackbox, providing credential protection, zero-exposure script application, script sealing collaboration, and knowledge management. Also includes a Data Analyst Agent system prompt template.

技能文档

Overview

Secure Data Analyst Skill Suite is a documentation skill suite based on MGC Blackbox that helps data analysts securely manage on their local machine:

  • Sensitive credentials
  • User-owned scripts
  • Cross-team collaboration authorization
  • Analysis frameworks and knowledge accumulation

This suite uses a hybrid design:

  • Skill Prompts (prompts/): Provides three core capabilities - Credential Management, Script Management, Knowledge Management
  • Agent System Prompt Template (agent_system_prompt.md): For building Data Analyst Agents that follow strict security boundaries

All sensitive operations require explicit user authorization. This suite does not provide any automated data access capabilities.


Use Cases

This skill suite is suitable for:

  • Enterprise internal data analysis
  • Scenarios requiring sensitive data protection
  • Teams needing secure script sharing
  • Secure usage of vendor scripts
  • Building secure data analysis Agents
  • Building knowledge accumulation systems (can be combined with Self-Improving Agent)

Prerequisites

  1. Install MGC Blackbox (>=1.4.10):
    pip install mgc-blackbox
    
  2. Start MGC service:
    mgc
    
  3. MCP tools available: mgc_save, mgc_get, mgc_run, mgc_seal, mgc_list, mgc_find, mgc_open_webui
  4. Token file: ~/.mgc/database/mgc_black_box/.mgc_token

Core Capabilities

1. Credential Management (credential_management.md)

For securely managing database keys, API tokens, and other sensitive credentials.

Use Cases

  • Need to connect to databases or external services
  • Scripts need secure credential calls
  • Team members need shared access (not data sharing)

Capabilities

  • Local encrypted storage
  • AI cannot see credential content
  • Scripts can call credentials with zero exposure
  • All access requires user authorization

How Agents Use This

Agents can read credentials after user authorization, but never see plaintext.


2. Script Management (script_management.md)

For managing user's own query scripts, cleaning scripts, analysis scripts, etc.

Use Cases

  • User needs to apply their own scripts
  • Scripts need secure credential calls
  • Scripts need cross-team collaboration (sealing)
  • Need to build complete data analysis pipelines (query → cleaning → analysis)

Capabilities

  • Scripts stored encrypted
  • AI cannot see script content
  • Scripts can call credentials with zero exposure
  • Script sealing for collaboration
  • All applications require user authorization

How Agents Use This

Agents apply scripts via MGC after user authorization, and can request authorization step-by-step in multi-step workflows.


3. Knowledge Management (knowledge_management.md)

For managing knowledge assets such as analysis frameworks, prompt templates, methodologies, business rules.

Use Cases

  • Building standardized analysis frameworks
  • Reusing prompt templates
  • Team sharing analysis methods
  • Building knowledge accumulation systems
  • Combining with Self-Improving Agent for automatic knowledge accumulation

Capabilities

  • Knowledge content stored encrypted
  • AI can read knowledge after user authorization
  • Supports knowledge sealing for collaboration
  • Can be used to build analysis report structures

How Agents Use This

Agents can read knowledge after user authorization and use it to guide analysis structures or generate prompts.


Security Boundaries

This Suite Provides

  • Local encrypted credential storage
  • Zero-exposure application of user-owned scripts
  • Script sealing and collaboration authorization
  • Encrypted knowledge management

This Suite Does NOT Provide

  • Automated data access
  • Automated cleaning or analysis
  • Automated transmission
  • Script generation or modification

All scripts must be provided by the user and comply with organizational policies.


File Structure

data-analyst-secure-suite/
├── SKILL.md                    # Main skill document (this file)
├── README.md                   # Detailed usage guide
├── manifest.json               # Skill metadata
├── agent_system_prompt.md      # Agent system prompt template
└── prompts/
    ├── credential_management.md    # Credential management
    ├── script_management.md        # Script management
    └── knowledge_management.md    # Knowledge management

Usage

Mode 1: As a Skill (Skill Mode)

AI can read the three core documents in prompts/:

DocumentUse CaseTriggered By
credential_management.mdNeed to store or access credentialsUser or Agent
script_management.mdNeed to store or apply scriptsUser or Agent
knowledge_management.mdNeed to store or read knowledgeUser or Agent

AI will reference the corresponding document based on user requests and request authorization before each sensitive operation.


Mode 2: As an Agent Template (Agent Mode)

Configure agent_system_prompt.md as the system prompt for the AI Agent.

The Agent will automatically follow these security boundaries:

  • Request user authorization before each sensitive operation
  • Apply scripts only via MGC Blackbox
  • Must not view script content or credentials
  • Must not automatically execute workflows
  • Must not auto-select script names (info_owner must be provided by user)

The Agent can reference documents in prompts/ as workflow guidance after user authorization.


MCP Tools Reference

ToolDescriptionAuthorization Required
mgc_saveStore credentials, scripts, promptsYes
mgc_getRetrieve or apply scriptsYes
mgc_runExecute a stored script (preferred over mgc_get action="run")Yes
mgc_sealSeal scripts for collaborationYes
mgc_listList stored items (exact match)Optional
mgc_findFuzzy-search entries by name (auto-applies LIKE; v1.4.10+)Optional
mgc_open_webuiOpen MGC WebUINo

Security Notes

  1. Zero-exposure: Scripts and credentials execute locally, AI only receives results
  2. Encrypted storage: All content stored encrypted
  3. No plaintext leakage: AI never sees script or credential content
  4. Script sealing: Cross-node collaboration remains encrypted

Contact


Reminder: This skill suite is for secure workflow management. All sensitive operations require explicit user authorization. All scripts are user-owned, and all execution is completed locally via MGC Blackbox.


相关技能

A secure multi‑agent execution engine for zero‑exposure automation. Store, execute, and delegate scripts or credentials locally with full encryption, sealed distribution, and argparse‑driven structured execution.

Zero‑exposure script execution using MGC Blackbox. Store scripts encrypted, execute in blackbox, AI sees no plaintext. Supports MCP (mgc_run) / API / WebUI execution, internal credential calls, and script sealing. Includes MGC 1.4.9 temporary workaround guidelines. This skill only executes scripts w

Secure database credential management using MGC Blackbox 1.4.10. Supports MySQL, PostgreSQL, SQLite, MariaDB and other databases. Credentials are stored encrypted; local scripts retrieve them via HTTP API at runtime, while AI agents never touch plaintext.

1 星标

A documentation‑only meta‑skill that teaches AI agents how to generate secure, zero‑exposure skills using MGC Blackbox 1.4.10. Credentials are stored encrypted; local scripts read them via HTTP API at runtime, while AI agents never touch plaintext.

1 星标

Structure a product data analysis, metric deep-dive, funnel analysis, or cohort study. Use when asked to analyse product metrics, investigate a drop in conve...

Scan skills in a project directory for security issues and generate a markdown table report, then install skills from a local registry. Combines static analysis of code and markdown files with supply chain checks. Use when auditing a skills directory, generating a security summary table, or installi