feat(config): extract setup flow into gmgn-config skill; simplify CLI output

- Add skills/gmgn-config/SKILL.md with complete setup flow: key pair
  generation, credential writing, and verification via track follow-wallet.
  Verification result is output in the user's conversation language.
- Simplify all 6 SKILL.md BEFORE RUNNING ANY COMMAND to one line that
  delegates to gmgn-config skill, removing duplicate logic.
- Remove locale detection from CLI — output only the link; Agent handles
  all user-facing guidance in the conversation language.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gina888666
2026-06-24 20:20:29 +08:00
parent cc2fc0ed00
commit ec35707d15
8 changed files with 62 additions and 43 deletions
-13
View File
@@ -38,19 +38,6 @@ export function registerConfigCommands(program: Command): void {
const link = `${GMGN_API_URL}?pbk=${encodeURIComponent(publicPem)}`;
const locale = (process.env.LANG ?? process.env.LC_ALL ?? process.env.LC_MESSAGES ?? "").toLowerCase();
let message: string;
if (locale.startsWith("zh_tw") || locale.startsWith("zh_hk")) {
message = "請點擊連結建立你的 GMGN API Key,完成後將 Key 發給我,我來幫你完成配置:";
} else if (locale.startsWith("zh")) {
message = "请点击链接创建你的 GMGN API Key,完成后将 Key 发给我,我来帮你完成配置:";
} else {
message = "Please click the link below to create your GMGN API Key. Once created, send me the API Key and I will finish the configuration:";
}
console.log("");
console.log(message);
console.log(link);
console.log("");
});
}