chanjing-credentials-guard
Installation
SKILL.md
Chanjing Credentials Guard
When to Run
- Before any other Chanjing skill: Run this skill first to validate credentials; if missing, guide the user.
- When the user asks to generate chanjing keys, get keys, or configure AK/SK: Run this skill and follow the “Guide to generate keys” flow below.
Before calling any Chanjing API (list voices, TTS, avatar, voice clone, etc.), credentials must be validated.
Execution Flow
1. Check if local AK/SK exists
└─ No → Run open_login_page (open login in browser) → Offer two setup options (user runs command, or pastes AK/SK for the agent to apply) → After config, continue the original action without asking the user to re-run it
└─ Yes → Continue
2. Check if local Token exists and is not expired
└─ No → Call API to request/refresh Token → Save
└─ Yes → Continue