marvis-credential-manager
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "marvis-credential-manager" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b56d000d8af629cdf8ee249ae404f775c4efc17dadbe31d7adbc0b56e0dfe6e3. Verify the upstream source and version against https://skillhub.cn/skills/user_b22a52ba/marvis-credential-manager before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Cross-conversation credential manager that centrally stores and automatically validates various API keys and tokens.
Introduction source: third_party · user_b22a52ba · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: credential-manager
slug: marvis-credential-manager
displayName: 凭据管理器
version: 1.0.0
description: 跨对话凭据管理,统一存储和自动验证各类 API 密钥与 Token。
AIGC:
Label: "1"
ContentProducer: 001191440300708461136T1XGW3
ProduceID: 27ee0165a7827e021f5a427189ca97db_2f610c36825b11f18a64525400826444
ReservedCode1: rztPyY31fePefCcN1O63e+nTyzDxCUmUnOy2DriiqE31mEjNTH8wJsMXerdbfJ4pJQPPrwiPjLIzSvjdHsmmCqkiMY56+lbkAK5Kydc3NN414bIHlfqQHSqKadQlsvCTG4p/tSHzUS18AEn0w+bFaoAE0EfQs0HdLGBV0kdgL5jmDpizZk10+vloV4w=
ContentPropagator: 001191440300708461136T1XGW3
PropagateID: 27ee0165a7827e021f5a427189ca97db_2f610c36825b11f18a64525400826444
ReservedCode2: rztPyY31fePefCcN1O63e+nTyzDxCUmUnOy2DriiqE31mEjNTH8wJsMXerdbfJ4pJQPPrwiPjLIzSvjdHsmmCqkiMY56+lbkAK5Kydc3NN414bIHlfqQHSqKadQlsvCTG4p/tSHzUS18AEn0w+bFaoAE0EfQs0HdLGBV0kdgL5jmDpizZk10+vloV4w=Credential Manager
跨对话凭据管理,所有凭据存储在 %USERPROFILE%\.marvis\credentials.json。
核心脚本:%USERPROFILE%\.marvis\credman.ps1
每条对话开始时必须执行
powershell -ExecutionPolicy Bypass -File "$env:USERPROFILE\.marvis\credman.ps1" check
返回 JSON 数组,每个凭据一行。解析后:
needCheck=true→ 执行credman.ps1 verify <category>验证expiryWarning非空 → 在回复中提醒用户status=expired→ 通知用户凭据已过期
如果 check 返回空或报错(无存储文件),跳过后续步骤。
按需恢复 SkillHub 登录
当对话中需要调用 skillhub 命令但 skillhub auth whoami 失败时:
powershell -ExecutionPolicy Bypass -File "$env:USERPROFILE\.marvis\credman.ps1" restore skillhub
成功后即可正常使用 skillhub 命令。
按需读取凭据值
当对话中需要某个 API 密钥(如 OpenAI、混元等),直接用 Python 读取 JSON 文件中的对应字段,不要用 credman 的命令(list 会脱敏)。
import json, os
d = json.load(open(os.path.expandvars(r'%USERPROFILE%\.marvis\credentials.json'), encoding='utf-8'))
token = d['credentials']['model']['openai'] # 示例
获取后直接用于 API 调用,不要在回复中展示完整密钥。
用户命令对照表
| 用户说 | 执行命令 |
|---|---|
| 存密钥 / 保存密钥 | 收集 category key value expires verifyMethod → credman.ps1 store |
| 列出凭据 / 查看凭据 | powershell -ExecutionPolicy Bypass -File "%USERPROFILE%\.marvis\credman.ps1" list |
| 检查凭据 / 密钥有效吗 | powershell -ExecutionPolicy Bypass -File "%USERPROFILE%\.marvis\credman.ps1" verify <cat> |
| 删除凭据 | powershell -ExecutionPolicy Bypass -File "%USERPROFILE%\.marvis\credman.ps1" delete <cat> <key> |
存储凭据模板
powershell -ExecutionPolicy Bypass -File "%USERPROFILE%\.marvis\credman.ps1" store <category> <key> <value> [expires] [verifyMethod]
| 场景 | 命令 |
|---|---|
| OpenAI 密钥 90天过期 | store model openai sk-xxx +90 openai_list_models |
| 混元 API Key 永久 | store model hunyuan xxx permanent http_get |
| QQ邮箱授权码 | store email qq xxxxxx permanent smtp_check |
| GitHub Token | store custom github ghp_xxx permanent http_get |
安全规则
- 绝不在回复中展示完整密钥,始终脱敏如
sk-***a1b2 - 覆盖已有凭据前需确认用户
- 凭据文件仅本地存储,不同步云端 (内容由AI生成,仅供参考)
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决多对话场景下凭据分散管理的核心痛点
- 提供统一的凭据存储与自动验证机制,实用性强
Highlights
- 触发描述清晰完整,覆盖主要使用场景
- 边界定义明确,不易与其他 Skill 混淆
Areas to improve
-
排版问题 Reported severity: Minor
部分代码块缩进不一致,影响阅读体验
Recommendation: 统一代码块缩进格式,提升文档可读性
Highlights
- 结构完整,包含执行流程、命令对照、存储模板
- 提供端到端代码示例,便于用户理解执行
Areas to improve
-
网络验证失败处理 Reported severity: Minor
verify 命令在网络异常时的处理逻辑未详细说明
Recommendation: 补充网络验证失败时的重试机制或错误提示说明
Highlights
- 工具来源明确,参数定义清晰
- 安全规则完善,包含脱敏展示和本地存储保护
- 覆盖主要异常场景,具备确认机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 2, 3, 6, 19, 21 -
Administrator or elevated privileges
Elevate only when necessary. Keep protection and certificate validation enabled and avoid broad system access.
Mentioned in main document · lines 30, 47, 73, 74, 75
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.