[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C40SXQJZGWM4EEST8KXTD0":3,"skill-same:01M7C40SXQJZGWM4EEST8KXTD0":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":13,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":49,"install":50,"resources":62},"01M7C40SXQJZGWM4EEST8KXTD0","1password",null,"Set up op CLI, sign in, and read or inject secrets.","fengwhang\u002Fmercury","fengwhang","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F325040254?v=4","01M7C3K54Y41KVGPHEMKEP9X70","01M7C3K55NTZ4B36YP2JY1NMJ0",0,"MIT","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fhermes\u002Foptional-skills\u002Fsecurity\u002F1password\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: 1password\ndescription: Set up op CLI, sign in, and read or inject secrets.\nversion: 1.0.0\nauthor: arceus77-7, enhanced by Hermes Agent\nlicense: MIT\nplatforms: [linux, macos, windows]\nmetadata:\n  mercury:\n    tags: [security, secrets, 1password, op, cli]\n    category: security\nsetup:\n  help: \"Create a service account at https:\u002F\u002Fmy.1password.com → Settings → Service Accounts\"\n  collect_secrets:\n    - env_var: OP_SERVICE_ACCOUNT_TOKEN\n      prompt: \"1Password Service Account Token\"\n      provider_url: \"https:\u002F\u002Fdeveloper.1password.com\u002Fdocs\u002Fservice-accounts\u002F\"\n      secret: true\n---\n\n# 1Password CLI\n\nUse this skill when the user wants secrets managed through 1Password instead of plaintext env vars or files.\n\n## Requirements\n\n- 1Password account\n- 1Password CLI (`op`) installed\n- One of: desktop app integration, service account token (`OP_SERVICE_ACCOUNT_TOKEN`), or Connect server\n- `tmux` available for stable authenticated sessions during Hermes terminal calls (desktop app flow only)\n\n## When to Use\n\n- Install or configure 1Password CLI\n- Sign in with `op signin`\n- Read secret references like `op:\u002F\u002FVault\u002FItem\u002Ffield`\n- Inject secrets into config\u002Ftemplates using `op inject`\n- Run commands with secret env vars via `op run`\n\n## Authentication Methods\n\n### Service Account (recommended for Hermes)\n\nSet `OP_SERVICE_ACCOUNT_TOKEN` in `$MERCURY_HOME\u002F.env` (the skill will prompt for this on first load).\nNo desktop app needed. Supports `op read`, `op inject`, `op run`.\n\n```bash\nexport OP_SERVICE_ACCOUNT_TOKEN=\"your-token-here\"\nop whoami  # verify — should show Type: SERVICE_ACCOUNT\n```\n\n### Desktop App Integration (interactive)\n\n1. Enable in 1Password desktop app: Settings → Developer → Integrate with 1Password CLI\n2. Ensure app is unlocked\n3. Run `op signin` and approve the biometric prompt\n\n### Connect Server (self-hosted)\n\n```bash\nexport OP_CONNECT_HOST=\"http:\u002F\u002Flocalhost:8080\"\nexport OP_CONNECT_TOKEN=\"your-connect-token\"\n```\n\n## Setup\n\n1. Install CLI:\n\n```bash\n# macOS\nbrew install 1password-cli\n\n# Linux (official package\u002Finstall docs)\n# See references\u002Fget-started.md for distro-specific links.\n\n# Windows (winget)\nwinget install AgileBits.1Password.CLI\n```\n\n2. Verify:\n\n```bash\nop --version\n```\n\n3. Choose an auth method above and configure it.\n\n## Hermes Execution Pattern (desktop app flow)\n\nHermes terminal commands are non-interactive by default and can lose auth context between calls.\nFor reliable `op` use with desktop app integration, run sign-in and secret operations inside a dedicated tmux session.\n\nNote: This is NOT needed when using `OP_SERVICE_ACCOUNT_TOKEN` — the token persists across terminal calls automatically.\n\n```bash\nSOCKET_DIR=\"${TMPDIR:-\u002Ftmp}\u002Fhermes-tmux-sockets\"\nmkdir -p \"$SOCKET_DIR\"\nSOCKET=\"$SOCKET_DIR\u002Fhermes-op.sock\"\nSESSION=\"op-auth-$(date +%Y%m%d-%H%M%S)\"\n\ntmux -S \"$SOCKET\" new -d -s \"$SESSION\" -n shell\n\n# Sign in (approve in desktop app when prompted)\ntmux -S \"$SOCKET\" send-keys -t \"$SESSION\":0.0 -- \"eval \\\"\\$(op signin --account my.1password.com)\\\"\" Enter\n\n# Verify auth\ntmux -S \"$SOCKET\" send-keys -t \"$SESSION\":0.0 -- \"op whoami\" Enter\n\n# Example read\ntmux -S \"$SOCKET\" send-keys -t \"$SESSION\":0.0 -- \"op read 'op:\u002F\u002FPrivate\u002FNpmjs\u002Fone-time password?attribute=otp'\" Enter\n\n# Capture output when needed\ntmux -S \"$SOCKET\" capture-pane -p -J -t \"$SESSION\":0.0 -S -200\n\n# Cleanup\ntmux -S \"$SOCKET\" kill-session -t \"$SESSION\"\n```\n\n## Common Operations\n\n### Read a secret\n\n```bash\nop read \"op:\u002F\u002Fapp-prod\u002Fdb\u002Fpassword\"\n```\n\n### Get OTP\n\n```bash\nop read \"op:\u002F\u002Fapp-prod\u002Fnpm\u002Fone-time password?attribute=otp\"\n```\n\n### Inject into template\n\n```bash\necho \"db_password: {{ op:\u002F\u002Fapp-prod\u002Fdb\u002Fpassword }}\" | op inject\n```\n\n### Run a command with secret env var\n\n```bash\nexport DB_PASSWORD=\"op:\u002F\u002Fapp-prod\u002Fdb\u002Fpassword\"  # example op:\u002F\u002F reference, resolved by `op run`\nop run -- sh -c '[ -n \"$DB_PASSWORD\" ] && echo \"DB_PASSWORD is set\" || echo \"DB_PASSWORD missing\"'\n```\n\n## Guardrails\n\n- Never print raw secrets back to user unless they explicitly request the value.\n- Prefer `op run` \u002F `op inject` instead of writing secrets into files.\n- If command fails with \"account is not signed in\", run `op signin` again in the same tmux session.\n- If desktop app integration is unavailable (headless\u002FCI), use service account token flow.\n\n## CI \u002F Headless note\n\nFor non-interactive use, authenticate with `OP_SERVICE_ACCOUNT_TOKEN` and avoid interactive `op signin`.\nService accounts require CLI v2.18.0+.\n\n## References\n\n- `references\u002Fget-started.md`\n- `references\u002Fcli-examples.md`\n- https:\u002F\u002Fdeveloper.1password.com\u002Fdocs\u002Fcli\u002F\n- https:\u002F\u002Fdeveloper.1password.com\u002Fdocs\u002Fservice-accounts\u002F\n","# 1Password CLI\n\nUse this skill when the user wants secrets managed through 1Password instead of plaintext env vars or files.\n\n## Requirements\n\n- 1Password account\n- 1Password CLI (`op`) installed\n- One of: desktop app integration, service account token (`OP_SERVICE_ACCOUNT_TOKEN`), or Connect server\n- `tmux` available for stable authenticated sessions during Hermes terminal calls (desktop app flow only)\n\n## When to Use\n\n- Install or configure 1Password CLI\n- Sign in with `op signin`\n- Read secret references like `op:\u002F\u002FVault\u002FItem\u002Ffield`\n- Inject secrets into config\u002Ftemplates using `op inject`\n- Run commands with secret env vars via `op run`\n\n## Authentication Methods\n\n### Service Account (recommended for Hermes)\n\nSet `OP_SERVICE_ACCOUNT_TOKEN` in `$MERCURY_HOME\u002F.env` (the skill will prompt for this on first load).\nNo desktop app needed. Supports `op read`, `op inject`, `op run`.\n\n```bash\nexport OP_SERVICE_ACCOUNT_TOKEN=\"your-token-here\"\nop whoami  # verify — should show Type: SERVICE_ACCOUNT\n```\n\n### Desktop App Integration (interactive)\n\n1. Enable in 1Password desktop app: Settings → Developer → Integrate with 1Password CLI\n2. Ensure app is unlocked\n3. Run `op signin` and approve the biometric prompt\n\n### Connect Server (self-hosted)\n\n```bash\nexport OP_CONNECT_HOST=\"http:\u002F\u002Flocalhost:8080\"\nexport OP_CONNECT_TOKEN=\"your-connect-token\"\n```\n\n## Setup\n\n1. Install CLI:\n\n```bash\n# macOS\nbrew install 1password-cli\n\n# Linux (official package\u002Finstall docs)\n# See references\u002Fget-started.md for distro-specific links.\n\n# Windows (winget)\nwinget install AgileBits.1Password.CLI\n```\n\n2. Verify:\n\n```bash\nop --version\n```\n\n3. Choose an auth method above and configure it.\n\n## Hermes Execution Pattern (desktop app flow)\n\nHermes terminal commands are non-interactive by default and can lose auth context between calls.\nFor reliable `op` use with desktop app integration, run sign-in and secret operations inside a dedicated tmux session.\n\nNote: This is NOT needed when using `OP_SERVICE_ACCOUNT_TOKEN` — the token persists across terminal calls automatically.\n\n```bash\nSOCKET_DIR=\"${TMPDIR:-\u002Ftmp}\u002Fhermes-tmux-sockets\"\nmkdir -p \"$SOCKET_DIR\"\nSOCKET=\"$SOCKET_DIR\u002Fhermes-op.sock\"\nSESSION=\"op-auth-$(date +%Y%m%d-%H%M%S)\"\n\ntmux -S \"$SOCKET\" new -d -s \"$SESSION\" -n shell\n\n# Sign in (approve in desktop app when prompted)\ntmux -S \"$SOCKET\" send-keys -t \"$SESSION\":0.0 -- \"eval \\\"\\$(op signin --account my.1password.com)\\\"\" Enter\n\n# Verify auth\ntmux -S \"$SOCKET\" send-keys -t \"$SESSION\":0.0 -- \"op whoami\" Enter\n\n# Example read\ntmux -S \"$SOCKET\" send-keys -t \"$SESSION\":0.0 -- \"op read 'op:\u002F\u002FPrivate\u002FNpmjs\u002Fone-time password?attribute=otp'\" Enter\n\n# Capture output when needed\ntmux -S \"$SOCKET\" capture-pane -p -J -t \"$SESSION\":0.0 -S -200\n\n# Cleanup\ntmux -S \"$SOCKET\" kill-session -t \"$SESSION\"\n```\n\n## Common Operations\n\n### Read a secret\n\n```bash\nop read \"op:\u002F\u002Fapp-prod\u002Fdb\u002Fpassword\"\n```\n\n### Get OTP\n\n```bash\nop read \"op:\u002F\u002Fapp-prod\u002Fnpm\u002Fone-time password?attribute=otp\"\n```\n\n### Inject into template\n\n```bash\necho \"db_password: {{ op:\u002F\u002Fapp-prod\u002Fdb\u002Fpassword }}\" | op inject\n```\n\n### Run a command with secret env var\n\n```bash\nexport DB_PASSWORD=\"op:\u002F\u002Fapp-prod\u002Fdb\u002Fpassword\"  # example op:\u002F\u002F reference, resolved by `op run`\nop run -- sh -c '[ -n \"$DB_PASSWORD\" ] && echo \"DB_PASSWORD is set\" || echo \"DB_PASSWORD missing\"'\n```\n\n## Guardrails\n\n- Never print raw secrets back to user unless they explicitly request the value.\n- Prefer `op run` \u002F `op inject` instead of writing secrets into files.\n- If command fails with \"account is not signed in\", run `op signin` again in the same tmux session.\n- If desktop app integration is unavailable (headless\u002FCI), use service account token flow.\n\n## CI \u002F Headless note\n\nFor non-interactive use, authenticate with `OP_SERVICE_ACCOUNT_TOKEN` and avoid interactive `op signin`.\nService accounts require CLI v2.18.0+.\n\n## References\n\n- `references\u002Fget-started.md`\n- `references\u002Fcli-examples.md`\n- https:\u002F\u002Fdeveloper.1password.com\u002Fdocs\u002Fcli\u002F\n- https:\u002F\u002Fdeveloper.1password.com\u002Fdocs\u002Fservice-accounts\u002F\n",{"name":5,"setup":23,"author":31,"license":14,"version":32,"metadata":33,"platforms":40,"description":7},{"help":24,"collect_secrets":25},"Create a service account at https:\u002F\u002Fmy.1password.com → Settings → Service Accounts",[26],{"prompt":27,"secret":28,"env_var":29,"provider_url":30},"1Password Service Account Token",true,"OP_SERVICE_ACCOUNT_TOKEN","https:\u002F\u002Fdeveloper.1password.com\u002Fdocs\u002Fservice-accounts\u002F","arceus77-7, enhanced by Hermes Agent","1.0.0",{"mercury":34},{"tags":35,"category":36},[36,37,5,38,39],"security","secrets","op","cli",[41,42,43],"linux","macos","windows","main","94a12cab2ce32e2020d179b5d579d0cbcbd0f206","hermes\u002Foptional-skills\u002Fsecurity\u002F1password","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury","https:\u002F\u002Fgithub.com\u002Ffengwhang","2026-10-09 08:26:42",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":28},[52,55,58],{"tool":53,"command":54},"npx","npx skills add fengwhang\u002Fmercury --skill 1password",{"tool":56,"command":57},"bunx","bunx skills add fengwhang\u002Fmercury --skill 1password",{"tool":59,"command":60},"pnpm","pnpm dlx skills add fengwhang\u002Fmercury --skill 1password","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fhermes\u002Foptional-skills\u002Fsecurity\u002F1password\u002FSKILL.md",[63,69],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fcli-examples.md","REFERENCE","参考文档",599,"https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fhermes\u002Foptional-skills\u002Fsecurity\u002F1password\u002Freferences\u002Fcli-examples.md",{"path":70,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fget-started.md",527,"https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fhermes\u002Foptional-skills\u002Fsecurity\u002F1password\u002Freferences\u002Fget-started.md",[74,81,88,95,101,108],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M7C4BTY3ND38CN200ZCTH6NV","greet","A greeting skill for testing","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Fmarketplace\u002Ffixtures\u002Fvalid-marketplace\u002Fplugins\u002Fhello-plugin\u002Fskills\u002Fgreet\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7C4BSNZTPW8JR5NGCQXGSEZ","valid-skill","A valid skill for testing purposes.","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fvalid-skill\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M7C4BRA7J8C06KSVW100F1W1","unknown-field","A skill with an unknown frontmatter field.","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Funknown-field\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":18},"01M7C4BNB04KQGCJ835JE8AR13","no-frontmatter","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fno-frontmatter\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":18},"01M7C4BM38TZFYT1AJ6SKHPZZ2","child-skill","A nested skill in a subdirectory.","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fnested\u002Fchild-skill\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":18},"01M7C4BJDN7RFFCM28CGX15Q97","different-name","A skill with a name that doesn't match the directory.","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fname-mismatch\u002FSKILL.md",[],[]]