跳到主要内容
知仓学习社ZHICANG

outline

Search, read, and manage Outline wiki documents. Use when: (1) searching wiki for documentation, (2) reading wiki pages or articles, (3) listing wik…

读凭据联网写文件严重 12 · 高危 4sanjay3290/ai-skills

它会碰到什么

扫了多少5 个文本文件,34 KB
它会碰到什么读凭据联网写文件
命中总数22 处
命中统计严重 12 · 高 4 · 中 4 · 低 2
逐条看命中(16 条严重或高危)
  • 严重 README.md:36cred-paths
    cp .env.example .env
  • 严重 README.md:36cred-paths
    cp .env.example .env
  • 严重 README.md:38cred-paths
    # Edit .env with your API key
  • 严重 README.md:207cred-paths
    Or create a `.env` file in the skill directory.
  • 严重 scripts/outline.py:45cred-paths
    # Load environment variables from .env file
  • 严重 scripts/outline.py:47cred-paths
    """Load environment variables from .env file if python-dotenv is available."""
  • 严重 scripts/outline.py:51cred-paths
    env_file = skill_dir / ".env"
  • 严重 scripts/outline.py:54cred-paths
    elif Path(".env").exists():
  • 严重 scripts/outline.py:313cred-paths
    print("   Or create a .env file with: OUTLINE_API_KEY=your-key", file=sys.stderr)
  • 严重 SKILL.md:27cred-paths
    cp .env.example .env
  • 严重 SKILL.md:27cred-paths
    cp .env.example .env
  • 严重 SKILL.md:28cred-paths
    # Edit .env with your API key
  • scripts/outline.py:307cred-envread
    api_key = os.environ.get("OUTLINE_API_KEY", "")
  • scripts/outline.py:316cred-envread
    api_url = os.environ.get("OUTLINE_API_URL", "https://app.getoutline.com/api")
  • scripts/outline.py:318cred-envread
    timeout = int(os.environ.get("OUTLINE_TIMEOUT", "30"))
  • scripts/outline.py:322cred-envread
    verify_ssl = os.environ.get("OUTLINE_VERIFY_SSL", "true").lower() not in ("false", "0", "no")

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Outline Wiki Skill

Search, read, create, and manage documents in any Outline wiki instance. Works with all AI clients supporting the Agent Skills Standard.

Requirements

  • Python 3.8+
  • Dependencies: pip install -r requirements.txt

Setup

  1. Get your API key from your Outline wiki:
  • Go to Settings > API Tokens
  • Create a new token with appropriate permissions
  1. Configure the environment:
   cp .env.example .env
   # Edit .env with your API key
  1. Set the environment variables:
   export OUTLINE_API_KEY=your-api-key-here
   # Optional: for self-hosted instances
   export OUTLINE_API_URL=https://your-wiki.example.com/api

Usage

Search documents

python3 scripts/outline.py search "deployment guide"
python3 scripts/outline.py search "API documentation" --limit 10
python3 scripts/outline.py search "onboarding" --collection-id <id>

Read a document

python3 scripts/outline.py read <document-id>
python3 scripts/outline.py read <document-id> --json

List collections

python3 scripts/outline.py list-collections
python3 scripts/outline.py list-collections --limit 50

List documents in a collection

python3 scripts/outline.py list-documents --collection-id <id>

Get collection details

python3 scripts/outline.py get-collection <collection-id>

Create a document

python3 scripts/outline.py create --title "New Guide" --collection-id <id>
python3 scripts/outline.py create --title "Guide" --collection-id <id> --text "# Content here"
python3 scripts/outline.py create --title "Draft" --collection-id <id> --draft

Update a document

python3 scripts/outline.py update <document-id> --title "Updated Title"
python3 scripts/outline.py update <document-id> --text "New content"
python3 scripts/outline.py update <document-id> --publish

Export document as markdown

python3 scripts/outline.py export <document-id>
python3 scripts/outline.py export <document-id> --output doc.md

Test authentication

python3 scripts/outline.py auth-info

JSON Output

Add --json flag to any command for machine-readable output:

python3 scripts/outline.py search "query" --json
python3 scripts/outline.py read <id> --json

Operations Reference

| Command | Description | Required Args |

|---------|-------------|---------------|

| search | Full-text search | query |

| read | Get document content | document_id |

| list-collections | List all collections | - |

| list-documents | List docs (optionally in collection) | - |

| get-collection | Get collection details | collection_id |

| create | Create new document | --title, --collection-id |

| update | Update existing document | document_id |

| export | Export as markdown | document_id |

| auth-info | Test API connection | - |

Environment Variables

| Variable | Required | Default | Description |

|----------|----------|---------|-------------|

| OUTLINE_API_KEY | Yes | - | Your Outline API token |

| OUTLINE_API_URL | No | https://app.getoutline.com/api | API URL |

| OUTLINE_TIMEOUT | No | 30 | Request timeout (seconds) |

| OUTLINE_VERIFY_SSL | No | true | Set to false to skip SSL verification (for self-hosted instances with self-signed certs) |

Troubleshooting

| Error | Solution |

|-------|----------|

| API key not configured | Set OUTLINE_API_KEY environment variable |

| Authentication failed | Verify API key is valid and not expired |

| Connection timeout | Check OUTLINE_API_URL and network connectivity |

| SSL certificate error | Set OUTLINE_VERIFY_SSL=false for self-signed certs |

| Document not found | Verify document ID is correct |

| Permission denied | Check API token has required permissions |

Exit Codes

  • 0: Success
  • 1: Error (auth failed, not found, invalid request)

Workflow

  1. Run auth-info to verify connection
  2. Run list-collections to see available collections
  3. Run search or list-documents to find content
  4. Run read to get full document content
  5. Use create/update to modify wiki content

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 424
本站分层T2
该仓技能数24
原文件路径skills/outline/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 24 个技能