[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76K38PW3DEM6WYAC22TDH25":3,"skill-same:01M76K38PW3DEM6WYAC22TDH25":87},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":13,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M76K38PW3DEM6WYAC22TDH25","octolens",null,"Query and analyze brand mentions from Octolens API. Use when the user wants to fetch mentions, track keywords, filter by source platforms (Twitter, Reddit, GitHub, LinkedIn, etc.), sentiment analysis, or analyze social media engagement. Supports complex filtering with AND\u002FOR logic, date ranges, follower counts, and bookmarks.","meghal86\u002Fstacksignal","meghal86","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F37388715?v=4","01M6CS2EW8SK89GH52R2ZEN8QQ","01M728J5CGY456EETEFG6HJBTM",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Foctolens\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: octolens\ndescription: Query and analyze brand mentions from Octolens API. Use when the user wants to fetch mentions, track keywords, filter by source platforms (Twitter, Reddit, GitHub, LinkedIn, etc.), sentiment analysis, or analyze social media engagement. Supports complex filtering with AND\u002FOR logic, date ranges, follower counts, and bookmarks.\nlicense: MIT\nmetadata:\n  author: octolens\n  version: \"1.0\"\ncompatibility: Requires Node.js 18+ (for fetch API) and access to the internet\nallowed-tools: Node Read\n---\n\n# Octolens API Skill\n\n## When to use this skill\n\nUse this skill when the user needs to:\n- Fetch brand mentions from social media and other platforms\n- Filter mentions by source (Twitter, Reddit, GitHub, LinkedIn, YouTube, HackerNews, DevTO, StackOverflow, Bluesky, newsletters, podcasts)\n- Analyze sentiment (positive, neutral, negative)\n- Filter by author follower count or engagement\n- Search for specific keywords or tags\n- Query mentions by date range\n- List available keywords or saved views\n- Apply complex filtering logic with AND\u002FOR conditions\n\n## API Authentication\n\nThe Octolens API requires a Bearer token for authentication. The user should provide their API key, which you'll use in the `Authorization` header:\n\n```\nAuthorization: Bearer YOUR_API_KEY\n```\n\n**Important**: Always ask the user for their API key before making any API calls. Store it in a variable for subsequent requests.\n\n## Base URL\n\nAll API endpoints use the base URL: `https:\u002F\u002Fapp.octolens.com\u002Fapi\u002Fv1`\n\n## Rate Limits\n\n- **Limit**: 500 requests per hour\n- **Check headers**: `X-RateLimit-*` headers indicate current usage\n\n## Available Endpoints\n\n### 1. POST \u002Fmentions\n\nFetch mentions matching keywords with optional filtering. Returns posts sorted by timestamp (newest first).\n\n**Key Parameters:**\n- `limit` (number, 1-100): Maximum results to return (default: 20)\n- `cursor` (string): Pagination cursor from previous response\n- `includeAll` (boolean): Include low-relevance posts (default: false)\n- `view` (number): View ID to use for filtering\n- `filters` (object): Filter criteria (see filtering section)\n\n**Example Response:**\n```json\n{\n  \"data\": [\n    {\n      \"id\": \"abc123\",\n      \"url\": \"https:\u002F\u002Ftwitter.com\u002Fuser\u002Fstatus\u002F123\",\n      \"body\": \"Just discovered @YourProduct - this is exactly what I needed!\",\n      \"source\": \"twitter\",\n      \"timestamp\": \"2024-01-15T10:30:00Z\",\n      \"author\": \"user123\",\n      \"authorName\": \"John Doe\",\n      \"authorFollowers\": 5420,\n      \"relevance\": \"relevant\",\n      \"sentiment\": \"positive\",\n      \"language\": \"en\",\n      \"tags\": [\"feature-request\"],\n      \"keywords\": [{ \"id\": 1, \"keyword\": \"YourProduct\" }],\n      \"bookmarked\": false,\n      \"engaged\": false\n    }\n  ],\n  \"cursor\": \"eyJsYXN0SWQiOiAiYWJjMTIzIn0=\"\n}\n```\n\n### 2. GET \u002Fkeywords\n\nList all keywords configured for the organization.\n\n**Example Response:**\n```json\n{\n  \"data\": [\n    {\n      \"id\": 1,\n      \"keyword\": \"YourProduct\",\n      \"platforms\": [\"twitter\", \"reddit\", \"github\"],\n      \"color\": \"#6366f1\",\n      \"paused\": false,\n      \"context\": \"Our main product name\"\n    }\n  ]\n}\n```\n\n### 3. GET \u002Fviews\n\nList all saved views (pre-configured filters).\n\n**Example Response:**\n```json\n{\n  \"data\": [\n    {\n      \"id\": 1,\n      \"name\": \"High Priority\",\n      \"icon\": \"star\",\n      \"filters\": {\n        \"sentiment\": [\"positive\", \"negative\"],\n        \"source\": [\"twitter\"]\n      },\n      \"createdAt\": \"2024-01-01T00:00:00Z\"\n    }\n  ]\n}\n```\n\n## Filtering Mentions\n\nThe `\u002Fmentions` endpoint supports powerful filtering with two modes:\n\n### Simple Mode (Implicit AND)\n\nPut fields directly in filters. All conditions are ANDed together.\n\n```json\n{\n  \"filters\": {\n    \"source\": [\"twitter\", \"linkedin\"],\n    \"sentiment\": [\"positive\"],\n    \"minXFollowers\": 1000\n  }\n}\n```\n→ `source IN (twitter, linkedin) AND sentiment = positive AND followers ≥ 1000`\n\n### Exclusions\n\nPrefix any array field with ! to exclude values:\n\n```json\n{\n  \"filters\": {\n    \"source\": [\"twitter\"],\n    \"!keyword\": [5, 6]\n  }\n}\n```\n→ `source = twitter AND keyword NOT IN (5, 6)`\n\n### Advanced Mode (AND\u002FOR Groups)\n\nUse `operator` and `groups` for complex logic:\n\n```json\n{\n  \"filters\": {\n    \"operator\": \"AND\",\n    \"groups\": [\n      {\n        \"operator\": \"OR\",\n        \"conditions\": [\n          { \"source\": [\"twitter\"] },\n          { \"source\": [\"linkedin\"] }\n        ]\n      },\n      {\n        \"operator\": \"AND\",\n        \"conditions\": [\n          { \"sentiment\": [\"positive\"] },\n          { \"!tag\": [\"spam\"] }\n        ]\n      }\n    ]\n  }\n}\n```\n→ `(source = twitter OR source = linkedin) AND (sentiment = positive AND tag ≠ spam)`\n\n### Available Filter Fields\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `source` | string[] | Platforms: twitter, reddit, github, linkedin, youtube, hackernews, devto, stackoverflow, bluesky, newsletter, podcast |\n| `sentiment` | string[] | Values: positive, neutral, negative |\n| `keyword` | string[] | Keyword IDs (get from \u002Fkeywords endpoint) |\n| `language` | string[] | ISO 639-1 codes: en, es, fr, de, pt, it, nl, ja, ko, zh |\n| `tag` | string[] | Tag names |\n| `bookmarked` | boolean | Filter bookmarked (true) or non-bookmarked (false) posts |\n| `engaged` | boolean | Filter engaged (true) or non-engaged (false) posts |\n| `minXFollowers` | number | Minimum Twitter follower count |\n| `maxXFollowers` | number | Maximum Twitter follower count |\n| `startDate` | string | ISO 8601 format (e.g., \"2024-01-15T00:00:00Z\") |\n| `endDate` | string | ISO 8601 format |\n\n## Using the Bundled Scripts\n\nThis skill includes helper scripts for common operations. Use them to quickly interact with the API:\n\n### Fetch Mentions\n```bash\nnode scripts\u002Ffetch-mentions.js YOUR_API_KEY [limit] [includeAll]\n```\n\n### List Keywords\n```bash\nnode scripts\u002Flist-keywords.js YOUR_API_KEY\n```\n\n### List Views\n```bash\nnode scripts\u002Flist-views.js YOUR_API_KEY\n```\n\n### Custom Filter Query\n```bash\nnode scripts\u002Fquery-mentions.js YOUR_API_KEY '{\"source\": [\"twitter\"], \"sentiment\": [\"positive\"]}' [limit]\n```\n\n### Advanced Query\n```bash\nnode scripts\u002Fadvanced-query.js YOUR_API_KEY [limit]\n```\n\n## Best Practices\n\n1. **Always ask for the API key** before making requests\n2. **Use views** when possible to leverage pre-configured filters\n3. **Start with simple filters** and add complexity as needed\n4. **Check rate limits** in response headers (`X-RateLimit-*`)\n5. **Use pagination** with cursor for large result sets\n6. **Dates must be ISO 8601** format (e.g., \"2024-01-15T00:00:00Z\")\n7. **Get keyword IDs** from `\u002Fkeywords` endpoint before filtering by keyword\n8. **Use exclusions** (!) to filter out unwanted content\n9. **Combine includeAll=false** with relevance filtering for quality results\n\n## Common Use Cases\n\n### Find positive Twitter mentions with high followers\n```json\n{\n  \"limit\": 20,\n  \"filters\": {\n    \"source\": [\"twitter\"],\n    \"sentiment\": [\"positive\"],\n    \"minXFollowers\": 1000\n  }\n}\n```\n\n### Exclude spam and get Reddit + GitHub mentions\n```json\n{\n  \"limit\": 50,\n  \"filters\": {\n    \"source\": [\"reddit\", \"github\"],\n    \"!tag\": [\"spam\", \"irrelevant\"]\n  }\n}\n```\n\n### Complex query: (Twitter OR LinkedIn) AND positive sentiment, last 7 days\n```json\n{\n  \"limit\": 30,\n  \"filters\": {\n    \"operator\": \"AND\",\n    \"groups\": [\n      {\n        \"operator\": \"OR\",\n        \"conditions\": [\n          { \"source\": [\"twitter\"] },\n          { \"source\": [\"linkedin\"] }\n        ]\n      },\n      {\n        \"operator\": \"AND\",\n        \"conditions\": [\n          { \"sentiment\": [\"positive\"] },\n          { \"startDate\": \"2024-01-20T00:00:00Z\" }\n        ]\n      }\n    ]\n  }\n}\n```\n\n## Error Handling\n\n| Status | Error | Description |\n|--------|-------|-------------|\n| 401 | unauthorized | Missing or invalid API key |\n| 403 | forbidden | Valid key but no permission |\n| 404 | not_found | Resource (e.g., view ID) not found |\n| 429 | rate_limit_exceeded | Too many requests |\n| 400 | invalid_request | Malformed request body |\n| 500 | internal_error | Server error, retry later |\n\n## Step-by-Step Workflow\n\nWhen a user asks to query Octolens data:\n\n1. **Ask for API key** if not already provided\n2. **Understand the request**: What are they looking for?\n3. **Determine filters needed**: Source, sentiment, date range, etc.\n4. **Check if a view applies**: List views first if user mentions saved filters\n5. **Build the query**: Use simple mode first, advanced mode for complex logic\n6. **Execute the request**: Use bundled Node.js scripts or fetch API directly\n7. **Parse results**: Extract key information (author, body, sentiment, source)\n8. **Handle pagination**: If more results needed, use cursor from response\n9. **Present findings**: Summarize insights, highlight patterns\n\n## Examples\n\n### Example 1: Simple Query\n**User**: \"Show me positive mentions from Twitter in the last 7 days\"\n\n**Action** (using bundled script):\n```bash\nnode scripts\u002Fquery-mentions.js YOUR_API_KEY '{\"source\": [\"twitter\"], \"sentiment\": [\"positive\"], \"startDate\": \"2024-01-20T00:00:00Z\"}'\n```\n\n**Alternative** (using fetch API directly):\n```javascript\nconst response = await fetch('https:\u002F\u002Fapp.octolens.com\u002Fapi\u002Fv1\u002Fmentions', {\n  method: 'POST',\n  headers: {\n    'Authorization': `Bearer ${API_KEY}`,\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    limit: 20,\n    filters: {\n      source: ['twitter'],\n      sentiment: ['positive'],\n      startDate: '2024-01-20T00:00:00Z',\n    },\n  }),\n});\nconst data = await response.json();\n```\n\n### Example 2: Advanced Query\n**User**: \"Find mentions from Reddit or GitHub, exclude spam tag, with positive or neutral sentiment\"\n\n**Action** (using bundled script):\n```bash\nnode scripts\u002Fquery-mentions.js YOUR_API_KEY '{\"operator\": \"AND\", \"groups\": [{\"operator\": \"OR\", \"conditions\": [{\"source\": [\"reddit\"]}, {\"source\": [\"github\"]}]}, {\"operator\": \"OR\", \"conditions\": [{\"sentiment\": [\"positive\"]}, {\"sentiment\": [\"neutral\"]}]}, {\"operator\": \"AND\", \"conditions\": [{\"!tag\": [\"spam\"]}]}]}'\n```\n\n**Alternative** (using fetch API directly):\n```javascript\nconst response = await fetch('https:\u002F\u002Fapp.octolens.com\u002Fapi\u002Fv1\u002Fmentions', {\n  method: 'POST',\n  headers: {\n    'Authorization': `Bearer ${API_KEY}`,\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    limit: 30,\n    filters: {\n      operator: 'AND',\n      groups: [\n        {\n          operator: 'OR',\n          conditions: [\n            { source: ['reddit'] },\n            { source: ['github'] },\n          ],\n        },\n        {\n          operator: 'OR',\n          conditions: [\n            { sentiment: ['positive'] },\n            { sentiment: ['neutral'] },\n          ],\n        },\n        {\n          operator: 'AND',\n          conditions: [\n            { '!tag': ['spam'] },\n          ],\n        },\n      ],\n    },\n  }),\n});\nconst data = await response.json();\n```\n\n### Example 3: Get Keywords First\n**User**: \"Show mentions for our main product keyword\"\n\n**Actions**:\n1. First, list keywords:\n```bash\nnode scripts\u002Flist-keywords.js YOUR_API_KEY\n```\n\n2. Then query mentions with the keyword ID:\n```bash\nnode scripts\u002Fquery-mentions.js YOUR_API_KEY '{\"keyword\": [1]}'\n```\n\n## Tips for Agents\n\n- **Use bundled scripts**: The Node.js scripts handle JSON parsing automatically\n- **Cache keywords**: After fetching keywords once, remember them for the session\n- **Explain filters**: When using complex filters, explain the logic to the user\n- **Show examples**: When users are unsure, show example filter structures\n- **Paginate wisely**: Ask if user wants more results before fetching next page\n- **Summarize insights**: Don't just dump data, provide analysis (sentiment trends, top authors, platform distribution)\n","# Octolens API Skill\n\n## When to use this skill\n\nUse this skill when the user needs to:\n- Fetch brand mentions from social media and other platforms\n- Filter mentions by source (Twitter, Reddit, GitHub, LinkedIn, YouTube, HackerNews, DevTO, StackOverflow, Bluesky, newsletters, podcasts)\n- Analyze sentiment (positive, neutral, negative)\n- Filter by author follower count or engagement\n- Search for specific keywords or tags\n- Query mentions by date range\n- List available keywords or saved views\n- Apply complex filtering logic with AND\u002FOR conditions\n\n## API Authentication\n\nThe Octolens API requires a Bearer token for authentication. The user should provide their API key, which you'll use in the `Authorization` header:\n\n```\nAuthorization: Bearer YOUR_API_KEY\n```\n\n**Important**: Always ask the user for their API key before making any API calls. Store it in a variable for subsequent requests.\n\n## Base URL\n\nAll API endpoints use the base URL: `https:\u002F\u002Fapp.octolens.com\u002Fapi\u002Fv1`\n\n## Rate Limits\n\n- **Limit**: 500 requests per hour\n- **Check headers**: `X-RateLimit-*` headers indicate current usage\n\n## Available Endpoints\n\n### 1. POST \u002Fmentions\n\nFetch mentions matching keywords with optional filtering. Returns posts sorted by timestamp (newest first).\n\n**Key Parameters:**\n- `limit` (number, 1-100): Maximum results to return (default: 20)\n- `cursor` (string): Pagination cursor from previous response\n- `includeAll` (boolean): Include low-relevance posts (default: false)\n- `view` (number): View ID to use for filtering\n- `filters` (object): Filter criteria (see filtering section)\n\n**Example Response:**\n```json\n{\n  \"data\": [\n    {\n      \"id\": \"abc123\",\n      \"url\": \"https:\u002F\u002Ftwitter.com\u002Fuser\u002Fstatus\u002F123\",\n      \"body\": \"Just discovered @YourProduct - this is exactly what I needed!\",\n      \"source\": \"twitter\",\n      \"timestamp\": \"2024-01-15T10:30:00Z\",\n      \"author\": \"user123\",\n      \"authorName\": \"John Doe\",\n      \"authorFollowers\": 5420,\n      \"relevance\": \"relevant\",\n      \"sentiment\": \"positive\",\n      \"language\": \"en\",\n      \"tags\": [\"feature-request\"],\n      \"keywords\": [{ \"id\": 1, \"keyword\": \"YourProduct\" }],\n      \"bookmarked\": false,\n      \"engaged\": false\n    }\n  ],\n  \"cursor\": \"eyJsYXN0SWQiOiAiYWJjMTIzIn0=\"\n}\n```\n\n### 2. GET \u002Fkeywords\n\nList all keywords configured for the organization.\n\n**Example Response:**\n```json\n{\n  \"data\": [\n    {\n      \"id\": 1,\n      \"keyword\": \"YourProduct\",\n      \"platforms\": [\"twitter\", \"reddit\", \"github\"],\n      \"color\": \"#6366f1\",\n      \"paused\": false,\n      \"context\": \"Our main product name\"\n    }\n  ]\n}\n```\n\n### 3. GET \u002Fviews\n\nList all saved views (pre-configured filters).\n\n**Example Response:**\n```json\n{\n  \"data\": [\n    {\n      \"id\": 1,\n      \"name\": \"High Priority\",\n      \"icon\": \"star\",\n      \"filters\": {\n        \"sentiment\": [\"positive\", \"negative\"],\n        \"source\": [\"twitter\"]\n      },\n      \"createdAt\": \"2024-01-01T00:00:00Z\"\n    }\n  ]\n}\n```\n\n## Filtering Mentions\n\nThe `\u002Fmentions` endpoint supports powerful filtering with two modes:\n\n### Simple Mode (Implicit AND)\n\nPut fields directly in filters. All conditions are ANDed together.\n\n```json\n{\n  \"filters\": {\n    \"source\": [\"twitter\", \"linkedin\"],\n    \"sentiment\": [\"positive\"],\n    \"minXFollowers\": 1000\n  }\n}\n```\n→ `source IN (twitter, linkedin) AND sentiment = positive AND followers ≥ 1000`\n\n### Exclusions\n\nPrefix any array field with ! to exclude values:\n\n```json\n{\n  \"filters\": {\n    \"source\": [\"twitter\"],\n    \"!keyword\": [5, 6]\n  }\n}\n```\n→ `source = twitter AND keyword NOT IN (5, 6)`\n\n### Advanced Mode (AND\u002FOR Groups)\n\nUse `operator` and `groups` for complex logic:\n\n```json\n{\n  \"filters\": {\n    \"operator\": \"AND\",\n    \"groups\": [\n      {\n        \"operator\": \"OR\",\n        \"conditions\": [\n          { \"source\": [\"twitter\"] },\n          { \"source\": [\"linkedin\"] }\n        ]\n      },\n      {\n        \"operator\": \"AND\",\n        \"conditions\": [\n          { \"sentiment\": [\"positive\"] },\n          { \"!tag\": [\"spam\"] }\n        ]\n      }\n    ]\n  }\n}\n```\n→ `(source = twitter OR source = linkedin) AND (sentiment = positive AND tag ≠ spam)`\n\n### Available Filter Fields\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `source` | string[] | Platforms: twitter, reddit, github, linkedin, youtube, hackernews, devto, stackoverflow, bluesky, newsletter, podcast |\n| `sentiment` | string[] | Values: positive, neutral, negative |\n| `keyword` | string[] | Keyword IDs (get from \u002Fkeywords endpoint) |\n| `language` | string[] | ISO 639-1 codes: en, es, fr, de, pt, it, nl, ja, ko, zh |\n| `tag` | string[] | Tag names |\n| `bookmarked` | boolean | Filter bookmarked (true) or non-bookmarked (false) posts |\n| `engaged` | boolean | Filter engaged (true) or non-engaged (false) posts |\n| `minXFollowers` | number | Minimum Twitter follower count |\n| `maxXFollowers` | number | Maximum Twitter follower count |\n| `startDate` | string | ISO 8601 format (e.g., \"2024-01-15T00:00:00Z\") |\n| `endDate` | string | ISO 8601 format |\n\n## Using the Bundled Scripts\n\nThis skill includes helper scripts for common operations. Use them to quickly interact with the API:\n\n### Fetch Mentions\n```bash\nnode scripts\u002Ffetch-mentions.js YOUR_API_KEY [limit] [includeAll]\n```\n\n### List Keywords\n```bash\nnode scripts\u002Flist-keywords.js YOUR_API_KEY\n```\n\n### List Views\n```bash\nnode scripts\u002Flist-views.js YOUR_API_KEY\n```\n\n### Custom Filter Query\n```bash\nnode scripts\u002Fquery-mentions.js YOUR_API_KEY '{\"source\": [\"twitter\"], \"sentiment\": [\"positive\"]}' [limit]\n```\n\n### Advanced Query\n```bash\nnode scripts\u002Fadvanced-query.js YOUR_API_KEY [limit]\n```\n\n## Best Practices\n\n1. **Always ask for the API key** before making requests\n2. **Use views** when possible to leverage pre-configured filters\n3. **Start with simple filters** and add complexity as needed\n4. **Check rate limits** in response headers (`X-RateLimit-*`)\n5. **Use pagination** with cursor for large result sets\n6. **Dates must be ISO 8601** format (e.g., \"2024-01-15T00:00:00Z\")\n7. **Get keyword IDs** from `\u002Fkeywords` endpoint before filtering by keyword\n8. **Use exclusions** (!) to filter out unwanted content\n9. **Combine includeAll=false** with relevance filtering for quality results\n\n## Common Use Cases\n\n### Find positive Twitter mentions with high followers\n```json\n{\n  \"limit\": 20,\n  \"filters\": {\n    \"source\": [\"twitter\"],\n    \"sentiment\": [\"positive\"],\n    \"minXFollowers\": 1000\n  }\n}\n```\n\n### Exclude spam and get Reddit + GitHub mentions\n```json\n{\n  \"limit\": 50,\n  \"filters\": {\n    \"source\": [\"reddit\", \"github\"],\n    \"!tag\": [\"spam\", \"irrelevant\"]\n  }\n}\n```\n\n### Complex query: (Twitter OR LinkedIn) AND positive sentiment, last 7 days\n```json\n{\n  \"limit\": 30,\n  \"filters\": {\n    \"operator\": \"AND\",\n    \"groups\": [\n      {\n        \"operator\": \"OR\",\n        \"conditions\": [\n          { \"source\": [\"twitter\"] },\n          { \"source\": [\"linkedin\"] }\n        ]\n      },\n      {\n        \"operator\": \"AND\",\n        \"conditions\": [\n          { \"sentiment\": [\"positive\"] },\n          { \"startDate\": \"2024-01-20T00:00:00Z\" }\n        ]\n      }\n    ]\n  }\n}\n```\n\n## Error Handling\n\n| Status | Error | Description |\n|--------|-------|-------------|\n| 401 | unauthorized | Missing or invalid API key |\n| 403 | forbidden | Valid key but no permission |\n| 404 | not_found | Resource (e.g., view ID) not found |\n| 429 | rate_limit_exceeded | Too many requests |\n| 400 | invalid_request | Malformed request body |\n| 500 | internal_error | Server error, retry later |\n\n## Step-by-Step Workflow\n\nWhen a user asks to query Octolens data:\n\n1. **Ask for API key** if not already provided\n2. **Understand the request**: What are they looking for?\n3. **Determine filters needed**: Source, sentiment, date range, etc.\n4. **Check if a view applies**: List views first if user mentions saved filters\n5. **Build the query**: Use simple mode first, advanced mode for complex logic\n6. **Execute the request**: Use bundled Node.js scripts or fetch API directly\n7. **Parse results**: Extract key information (author, body, sentiment, source)\n8. **Handle pagination**: If more results needed, use cursor from response\n9. **Present findings**: Summarize insights, highlight patterns\n\n## Examples\n\n### Example 1: Simple Query\n**User**: \"Show me positive mentions from Twitter in the last 7 days\"\n\n**Action** (using bundled script):\n```bash\nnode scripts\u002Fquery-mentions.js YOUR_API_KEY '{\"source\": [\"twitter\"], \"sentiment\": [\"positive\"], \"startDate\": \"2024-01-20T00:00:00Z\"}'\n```\n\n**Alternative** (using fetch API directly):\n```javascript\nconst response = await fetch('https:\u002F\u002Fapp.octolens.com\u002Fapi\u002Fv1\u002Fmentions', {\n  method: 'POST',\n  headers: {\n    'Authorization': `Bearer ${API_KEY}`,\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    limit: 20,\n    filters: {\n      source: ['twitter'],\n      sentiment: ['positive'],\n      startDate: '2024-01-20T00:00:00Z',\n    },\n  }),\n});\nconst data = await response.json();\n```\n\n### Example 2: Advanced Query\n**User**: \"Find mentions from Reddit or GitHub, exclude spam tag, with positive or neutral sentiment\"\n\n**Action** (using bundled script):\n```bash\nnode scripts\u002Fquery-mentions.js YOUR_API_KEY '{\"operator\": \"AND\", \"groups\": [{\"operator\": \"OR\", \"conditions\": [{\"source\": [\"reddit\"]}, {\"source\": [\"github\"]}]}, {\"operator\": \"OR\", \"conditions\": [{\"sentiment\": [\"positive\"]}, {\"sentiment\": [\"neutral\"]}]}, {\"operator\": \"AND\", \"conditions\": [{\"!tag\": [\"spam\"]}]}]}'\n```\n\n**Alternative** (using fetch API directly):\n```javascript\nconst response = await fetch('https:\u002F\u002Fapp.octolens.com\u002Fapi\u002Fv1\u002Fmentions', {\n  method: 'POST',\n  headers: {\n    'Authorization': `Bearer ${API_KEY}`,\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    limit: 30,\n    filters: {\n      operator: 'AND',\n      groups: [\n        {\n          operator: 'OR',\n          conditions: [\n            { source: ['reddit'] },\n            { source: ['github'] },\n          ],\n        },\n        {\n          operator: 'OR',\n          conditions: [\n            { sentiment: ['positive'] },\n            { sentiment: ['neutral'] },\n          ],\n        },\n        {\n          operator: 'AND',\n          conditions: [\n            { '!tag': ['spam'] },\n          ],\n        },\n      ],\n    },\n  }),\n});\nconst data = await response.json();\n```\n\n### Example 3: Get Keywords First\n**User**: \"Show mentions for our main product keyword\"\n\n**Actions**:\n1. First, list keywords:\n```bash\nnode scripts\u002Flist-keywords.js YOUR_API_KEY\n```\n\n2. Then query mentions with the keyword ID:\n```bash\nnode scripts\u002Fquery-mentions.js YOUR_API_KEY '{\"keyword\": [1]}'\n```\n\n## Tips for Agents\n\n- **Use bundled scripts**: The Node.js scripts handle JSON parsing automatically\n- **Cache keywords**: After fetching keywords once, remember them for the session\n- **Explain filters**: When using complex filters, explain the logic to the user\n- **Show examples**: When users are unsure, show example filter structures\n- **Paginate wisely**: Ask if user wants more results before fetching next page\n- **Summarize insights**: Don't just dump data, provide analysis (sentiment trends, top authors, platform distribution)\n",{"name":5,"license":14,"metadata":23,"description":7,"allowed-tools":25,"compatibility":26},{"author":5,"version":24},"1.0","Node Read","Requires Node.js 18+ (for fetch API) and access to the internet","main","54afe4b75ed2eb8f0feabb2f5b57dfa4bcbb3c44",".agents\u002Fskills\u002Foctolens","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal","https:\u002F\u002Fgithub.com\u002Fmeghal86","2026-05-17 14:11:28",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add meghal86\u002Fstacksignal --skill octolens",{"tool":39,"command":40},"bunx","bunx skills add meghal86\u002Fstacksignal --skill octolens",{"tool":42,"command":43},"pnpm","pnpm dlx skills add meghal86\u002Fstacksignal --skill octolens","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Foctolens\u002FSKILL.md",true,[47,53,57,61,67,71,75,79,83],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"_meta.json","REFERENCE","参考文档",274,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Foctolens\u002F_meta.json",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002FEXAMPLES.md",13595,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Foctolens\u002Freferences\u002FEXAMPLES.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002FFILTERS.md",12904,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Foctolens\u002Freferences\u002FFILTERS.md",{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"scripts\u002Fadvanced-query.js","SCRIPT","脚本",1816,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Foctolens\u002Fscripts\u002Fadvanced-query.js",{"path":68,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":69,"sourceHtmlUrl":70},"scripts\u002Ffetch-mentions.js",1517,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Foctolens\u002Fscripts\u002Ffetch-mentions.js",{"path":72,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":73,"sourceHtmlUrl":74},"scripts\u002Flist-keywords.js",1137,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Foctolens\u002Fscripts\u002Flist-keywords.js",{"path":76,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":77,"sourceHtmlUrl":78},"scripts\u002Flist-views.js",1125,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Foctolens\u002Fscripts\u002Flist-views.js",{"path":80,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":81,"sourceHtmlUrl":82},"scripts\u002Fquery-mentions.js",2049,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Foctolens\u002Fscripts\u002Fquery-mentions.js",{"path":84,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":85,"sourceHtmlUrl":86},"scripts\u002FREADME.md",6479,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Foctolens\u002Fscripts\u002FREADME.md",[88,97,105,113,121,128],{"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":92,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":96},"01M78XH0FRP65NYEDHF2BT7NB1","zvukogram","Text-to-Speech via Zvukogram API with SSML support. Use when you need to generate speech from text, create podcasts, voice notifications, or work with audio. Supports speed control, stress marks, English word transcription, and audio fragment merging.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzvukogram\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzvukogram\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":101,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":96},"01M78XEND5ASXYB6MN8AQQGJAF","zohomail","Zoho Mail API integration with managed OAuth. Send, receive, and manage emails, folders, and labels.\nUse this skill when users want to send emails, read messages, manage folders, or work with email labels in Zoho Mail.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzohomail\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzohomail\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":109,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":96},"01M78XEBBV3C6DRZFAJXP6RDKS","zoho-recruit","Zoho Recruit API integration with managed OAuth. Manage candidates, job openings, interviews, and recruitment workflows.\nUse this skill when users want to read, create, update, or search recruitment data like candidates, job openings, interviews, and applications in Zoho Recruit.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-recruit\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-recruit\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":117,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":96},"01M78XE5CQG75DZWYSKGXFR99T","zoho-people","Zoho People API integration with managed OAuth. Manage employees, departments, designations, attendance, and leave.\nUse this skill when users want to read, create, update, or query HR data like employees, departments, designations, and forms in Zoho People.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-people\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-people\u002FSKILL.md",[],[],{"skillNo":122,"name":123,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":124,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":96},"01M78XDZKMZAJYFJJFT7MR5ZN2","zoho-mail","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-mail\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-mail\u002FSKILL.md",[],[],{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":132,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":96},"01M78XDST8JK0WVDA1F3VPNWXD","zoho-inventory","Zoho Inventory API integration with managed OAuth. Manage items, sales orders, invoices, purchase orders, bills, contacts, and shipments.\nUse this skill when users want to read, create, update, or delete inventory items, sales orders, invoices, purchase orders, bills, or other inventory records in Zoho Inventory.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-inventory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-inventory\u002FSKILL.md",[],[]]