[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FA9QVRX82KM363MY0R6NGN":3,"skill-same:01M6FA9QVRX82KM363MY0R6NGN":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":55,"ownerHtmlUrl":56,"ownerBlogUrl":6,"ownerDescription":57,"updatedAt":58,"install":59,"resources":72},"01M6FA9QVRX82KM363MY0R6NGN","evernote-security-basics",null,"Implement security best practices for Evernote integrations.\nUse when securing API credentials, implementing OAuth securely,\nor hardening Evernote integrations.\nTrigger with phrases like \"evernote security\", \"secure evernote\",\n\"evernote credentials\", \"evernote oauth security\".","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fevernote-security-basics\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"security","evernote","evernote security basics","basics","best practices","security best practices","OAuth","saas","credentials","api","integrations","read","write","edit","use","code","io","trigger","secure","openclaw","2026-11-10 10:12:30",false,"---\nname: evernote-security-basics\ndescription: |\n  Implement security best practices for Evernote integrations.\n  Use when securing API credentials, implementing OAuth securely,\n  or hardening Evernote integrations.\n  Trigger with phrases like \"evernote security\", \"secure evernote\",\n  \"evernote credentials\", \"evernote oauth security\".\nallowed-tools: Read, Write, Edit, Grep\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\ntags: [saas, evernote, api, security]\n\n---\n# Evernote Security Basics\n\n## Overview\nSecurity best practices for Evernote API integrations, covering credential management, OAuth hardening, token storage, data protection, and secure logging patterns.\n\n## Prerequisites\n- Evernote SDK setup\n- Understanding of OAuth 1.0a\n- Basic cryptography concepts (AES encryption, hashing)\n\n## Instructions\n\n### Step 1: Credential Management\n\nStore `consumerKey`, `consumerSecret`, and access tokens in environment variables or a secrets manager (AWS Secrets Manager, GCP Secret Manager, HashiCorp Vault). Never commit credentials to source control. Add `.env` to `.gitignore`.\n\n```javascript\n\u002F\u002F Load from environment, fail fast if missing\nconst requiredVars = ['EVERNOTE_CONSUMER_KEY', 'EVERNOTE_CONSUMER_SECRET'];\nfor (const v of requiredVars) {\n  if (!process.env[v]) throw new Error(`Missing required env var: ${v}`);\n}\n```\n\n### Step 2: Secure OAuth Flow\n\nAdd CSRF protection with a state parameter stored in the session. Validate the callback URL matches your registered domain. Use HTTPS-only for all OAuth endpoints. Set secure cookie flags for session tokens.\n\n```javascript\n\u002F\u002F Generate CSRF token for OAuth state\nconst csrfToken = crypto.randomBytes(32).toString('hex');\nreq.session.oauthCsrf = csrfToken;\n\n\u002F\u002F Verify on callback\nif (req.query.state !== req.session.oauthCsrf) {\n  return res.status(403).send('CSRF validation failed');\n}\n```\n\n### Step 3: Encrypted Token Storage\n\nEncrypt access tokens at rest using AES-256-GCM before storing in your database. Decrypt only when making API calls. Store the encryption key separately from the database.\n\n### Step 4: Input Validation\n\nSanitize all user input before embedding in ENML. Validate note titles (max 255 chars), tag names (max 100 chars, no commas), and notebook names (max 100 chars). Strip forbidden HTML elements and attributes.\n\n### Step 5: Secure Logging\n\nRedact access tokens, consumer secrets, and user email addresses from log output. Log only the first 8 characters of tokens for debugging correlation.\n\n```javascript\nfunction redactToken(token) {\n  if (!token || token.length \u003C 12) return '***';\n  return token.slice(0, 8) + '...[REDACTED]';\n}\n```\n\n### Step 6: Token Lifecycle Management\n\nTrack token expiration (`edam_expires`), implement proactive refresh before expiry, and handle `AUTH_EXPIRED` errors gracefully. Tokens default to 1-year validity but users can set shorter durations.\n\nFor the complete security implementation including encrypted storage, CSRF-protected OAuth, input validation, and audit logging, see [Implementation Guide](references\u002Fimplementation-guide.md).\n\n## Output\n- Environment-based credential management with validation\n- CSRF-protected OAuth 1.0a flow\n- AES-256-GCM encrypted token storage\n- Input sanitization for ENML content and metadata\n- Redacted logging utility\n- Token expiration tracking and refresh\n\n## Error Handling\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `INVALID_AUTH` | Token revoked or invalid | Re-authenticate via OAuth; check token not corrupted during encryption |\n| `AUTH_EXPIRED` | Token past expiration date | Implement proactive refresh before `edam_expires` |\n| `PERMISSION_DENIED` | API key lacks required scope | Request appropriate permissions from Evernote |\n| CSRF mismatch | Session expired or attack attempt | Regenerate CSRF token and restart OAuth flow |\n\n## Resources\n- [OAuth Documentation](https:\u002F\u002Fdev.evernote.com\u002Fdoc\u002Farticles\u002Fauthentication.php)\n- [API Key Permissions](https:\u002F\u002Fdev.evernote.com\u002Fdoc\u002Farticles\u002Fpermissions.php)\n- [OWASP Security Guidelines](https:\u002F\u002Fowasp.org\u002Fwww-project-web-security-testing-guide\u002F)\n- [Node.js Crypto (AES)](https:\u002F\u002Fnodejs.org\u002Fapi\u002Fcrypto.html)\n\n## Next Steps\nFor production deployment checklist, see `evernote-prod-checklist`.\n\n## Examples\n\n**Secure credential setup**: Store credentials in AWS Secrets Manager, load at startup, validate all required values are present, and fail fast on missing configuration.\n\n**Token rotation**: Monitor `edam_expires` for all stored tokens, send re-authentication emails 30 days before expiry, and gracefully degrade to read-only mode when tokens expire.\n\n","# Evernote Security Basics\n\n## Overview\nSecurity best practices for Evernote API integrations, covering credential management, OAuth hardening, token storage, data protection, and secure logging patterns.\n\n## Prerequisites\n- Evernote SDK setup\n- Understanding of OAuth 1.0a\n- Basic cryptography concepts (AES encryption, hashing)\n\n## Instructions\n\n### Step 1: Credential Management\n\nStore `consumerKey`, `consumerSecret`, and access tokens in environment variables or a secrets manager (AWS Secrets Manager, GCP Secret Manager, HashiCorp Vault). Never commit credentials to source control. Add `.env` to `.gitignore`.\n\n```javascript\n\u002F\u002F Load from environment, fail fast if missing\nconst requiredVars = ['EVERNOTE_CONSUMER_KEY', 'EVERNOTE_CONSUMER_SECRET'];\nfor (const v of requiredVars) {\n  if (!process.env[v]) throw new Error(`Missing required env var: ${v}`);\n}\n```\n\n### Step 2: Secure OAuth Flow\n\nAdd CSRF protection with a state parameter stored in the session. Validate the callback URL matches your registered domain. Use HTTPS-only for all OAuth endpoints. Set secure cookie flags for session tokens.\n\n```javascript\n\u002F\u002F Generate CSRF token for OAuth state\nconst csrfToken = crypto.randomBytes(32).toString('hex');\nreq.session.oauthCsrf = csrfToken;\n\n\u002F\u002F Verify on callback\nif (req.query.state !== req.session.oauthCsrf) {\n  return res.status(403).send('CSRF validation failed');\n}\n```\n\n### Step 3: Encrypted Token Storage\n\nEncrypt access tokens at rest using AES-256-GCM before storing in your database. Decrypt only when making API calls. Store the encryption key separately from the database.\n\n### Step 4: Input Validation\n\nSanitize all user input before embedding in ENML. Validate note titles (max 255 chars), tag names (max 100 chars, no commas), and notebook names (max 100 chars). Strip forbidden HTML elements and attributes.\n\n### Step 5: Secure Logging\n\nRedact access tokens, consumer secrets, and user email addresses from log output. Log only the first 8 characters of tokens for debugging correlation.\n\n```javascript\nfunction redactToken(token) {\n  if (!token || token.length \u003C 12) return '***';\n  return token.slice(0, 8) + '...[REDACTED]';\n}\n```\n\n### Step 6: Token Lifecycle Management\n\nTrack token expiration (`edam_expires`), implement proactive refresh before expiry, and handle `AUTH_EXPIRED` errors gracefully. Tokens default to 1-year validity but users can set shorter durations.\n\nFor the complete security implementation including encrypted storage, CSRF-protected OAuth, input validation, and audit logging, see [Implementation Guide](references\u002Fimplementation-guide.md).\n\n## Output\n- Environment-based credential management with validation\n- CSRF-protected OAuth 1.0a flow\n- AES-256-GCM encrypted token storage\n- Input sanitization for ENML content and metadata\n- Redacted logging utility\n- Token expiration tracking and refresh\n\n## Error Handling\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `INVALID_AUTH` | Token revoked or invalid | Re-authenticate via OAuth; check token not corrupted during encryption |\n| `AUTH_EXPIRED` | Token past expiration date | Implement proactive refresh before `edam_expires` |\n| `PERMISSION_DENIED` | API key lacks required scope | Request appropriate permissions from Evernote |\n| CSRF mismatch | Session expired or attack attempt | Regenerate CSRF token and restart OAuth flow |\n\n## Resources\n- [OAuth Documentation](https:\u002F\u002Fdev.evernote.com\u002Fdoc\u002Farticles\u002Fauthentication.php)\n- [API Key Permissions](https:\u002F\u002Fdev.evernote.com\u002Fdoc\u002Farticles\u002Fpermissions.php)\n- [OWASP Security Guidelines](https:\u002F\u002Fowasp.org\u002Fwww-project-web-security-testing-guide\u002F)\n- [Node.js Crypto (AES)](https:\u002F\u002Fnodejs.org\u002Fapi\u002Fcrypto.html)\n\n## Next Steps\nFor production deployment checklist, see `evernote-prod-checklist`.\n\n## Examples\n\n**Secure credential setup**: Store credentials in AWS Secrets Manager, load at startup, validate all required values are present, and fail fast on missing configuration.\n\n**Token rotation**: Monitor `edam_expires` for all stored tokens, send re-authentication emails 30 days before expiry, and gracefully degrade to read-only mode when tokens expire.\n\n",{"name":5,"tags":44,"author":45,"license":15,"version":46,"description":47,"allowed-tools":48,"compatible-with":49},[26,20,28,19],"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Implement security best practices for Evernote integrations.\nUse when securing API credentials, implementing OAuth securely,\nor hardening Evernote integrations.\nTrigger with phrases like \"evernote security\", \"secure evernote\",\n\"evernote credentials\", \"evernote oauth security\".\n","Read, Write, Edit, Grep","claude-code, codex, openclaw","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fevernote-security-basics",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill evernote-security-basics",{"tool":65,"command":66},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill evernote-security-basics",{"tool":68,"command":69},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill evernote-security-basics","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fevernote-security-basics\u002FSKILL.md",true,[],[74,83,92,101,107,113],{"skillNo":75,"name":76,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[80,81,82],"model","model hierarchy","model hierarchy skill",{"skillNo":84,"name":85,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[89,90,91],"MCP","zoom","zoom mcp",{"skillNo":93,"name":94,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[98,99,100,90],"sdk","zoom apps sdk","apps",{"skillNo":102,"name":103,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[103],{"skillNo":108,"name":109,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[109],{"skillNo":114,"name":115,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[115]]