oil-oil/see-skill / see
see
Verified使用外部视觉服务或本地 OCR 分析本地图片、截图、视频及明确提供的媒体 URL,输出 Markdown。用户明确要求 see,或当前主模型缺少完成媒体分析所需的视觉能力时使用。不拦截普通文本、任意 URL 或已有原生视觉可以直接完成的任务;不用于生图、编辑图片或自动操作屏幕。使用外部服务前说明发送的媒体与服务范围,无法识别时如实说明限制。
scripts/secure_credentials.py
View on GitHub"""可信程序内部使用的系统凭据适配器,不提供明文输出 CLI。"""
from __future__ import annotations
import importlib
import sys
SERVICE = 'org.oiloil.skill-credentials'
def backend():
"""显式选择系统后端,拒绝自动退回明文或临时存储。"""
target = {
'darwin': ('keyring.backends.macOS', 'Keyring'),
'win32': ('keyring.backends.Windows', 'WinVaultKeyring'),
'linux': ('keyring.backends.SecretService', 'Keyring'),
}.get(sys.platform)
if target is None:
raise RuntimeError('当前系统未实现安全凭据后端;请使用运行时环境变量')
try:
result = getattr(importlib.import_module(target[0]), target[1])()
if result.priority <= 0:
raise RuntimeError('后端不可用')
return result
except Exception:
raise RuntimeError('系统凭据库不可用;请检查 keyring 依赖与系统解锁状态,或使用运行时环境变量') from None
def read(reference: str) -> str:
try:
return backend().get_password(SERVICE, reference) or ''
except Exception:
raise RuntimeError('无法读取系统凭据;不会降级保存明文') from None
def save(reference: str, secret: str) -> None:
if not secret or '\n' in secret or '\r' in secret:
raise ValueError('凭据必须是非空单行文本')
try:
backend().set_password(SERVICE, reference, secret)
except Exception:
raise RuntimeError('系统凭据保存失败;原配置未被改为明文') from None
def delete(reference: str) -> None:
try:
store = backend()
if store.get_password(SERVICE, reference) is not None:
store.delete_password(SERVICE, reference)
except Exception:
raise RuntimeError('系统凭据删除失败;请检查后端状态') from None
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |