Skip to content

feat: add efficient counting technique to pagination-handling skill#252

Open
luis5tb wants to merge 1 commit into
RHEcosystemAppEng:mainfrom
luis5tb:worktree-pagination
Open

feat: add efficient counting technique to pagination-handling skill#252
luis5tb wants to merge 1 commit into
RHEcosystemAppEng:mainfrom
luis5tb:worktree-pagination

Conversation

@luis5tb
Copy link
Copy Markdown
Collaborator

@luis5tb luis5tb commented May 27, 2026

Teach the LLM to answer "how many?" questions by calling MCP tools with limit=1 and reading the total from response metadata, instead of fetching all pages. Skill-only approach — no custom FunctionTool needed.

Teach the LLM to answer "how many?" questions by calling MCP tools with
limit=1 and reading the total from response metadata, instead of fetching
all pages. Skill-only approach — no custom FunctionTool needed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@luis5tb luis5tb force-pushed the worktree-pagination branch from 4fe7c69 to 65ca7bb Compare May 27, 2026 10:05
- "How many critical CVEs affect host X?" → fetch all pages silently to count
- "How many [resources]?" → use the efficient counting technique below

### Efficient Counting [PREFERRED]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this skill the right place? doesn't it deserve its own skill instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants