- Home
- Skills
- Agents & Orchestration
- coreball context
Works with the AI Agents you already use
coreball context
Focus your agent on task-relevant code using CoreBall to rank files and symbols without hitting context limits.
Free
coreball context
Example session with this skill installed
Use CoreBall to find where the authentication middleware is implemented and how it handles expired JWT tokens. Limit to 2000 tokens.
- Read your context and instructions
- Compiled the coreball context
I have analyzed the repository using CoreBall to trace the authentication flow and JWT handling. By ranking files against your task, I identified the core middleware and the specific validation logic.
Repository Context: Authentication Trace
| File Path | Relevance Score | Role |
|---|---|---|
src/middleware/auth.ts | 0.98 | Primary entry point for request authentication. |
src/lib/jwt.ts | 0.92 | Contains verifyToken and expiration check logic. |
src/errors/UnauthorizedError.ts | 0.75 | Defines the error thrown when tokens are expired. |
src/config/auth.config.ts | 0.61 | Stores secret keys and TTL configurations. |
Implementation Details
The authentication logic is centered in src/middleware/auth.ts. It extracts the Bearer token and passes it to the verifyToken function in src/lib/jwt.ts.
// excerpt from src/lib/jwt.ts
export const verifyToken = (token: string) => {
try {
return jwt.verify(token, process.env.JWT_SECRET);
} catch (err) {
if (err.name === 'TokenExpiredError') {
throw new UnauthorizedError('Token has expired');
}
throw new UnauthorizedError('Invalid token');
}
};
The middleware catches the UnauthorizedError and returns a 401 status code with a JSON payload indicating the expiration.
Next steps
- Review
src/lib/jwt.tsto see if the expiration grace period needs adjustment. - Examine the
UnauthorizedErrorclass to ensure the client receives the correct error code. - Check
tests/auth.test.tsto verify existing coverage for expired tokens.
Connects securely to your tools. The creator never sees your data.
About this skill
Large codebases create too much noise for LLMs to process efficiently. This skill uses CoreBall to isolate task-relevant files and symbols, preventing context window bloat and reducing token costs. It stops the agent from reading the entire repository by ranking files based on your specific coding task.
What it does
- Task-based ranking identifies exactly which files and symbols relate to a specific bug or feature request.
- Context packaging generates focused excerpts and file lists within a defined token budget.
- Dependency tracing follows imports and callers to map out implementation details across the codebase.
- Symbol search locates specific signatures or names without manual grepping.
- Overview generation provides a repository-wide index when the task scope is still undefined.
How it works
- Repository Discovery locates the root and checks for existing agent instructions or configurations.
- Query Refinement converts your high-level request into a concrete CoreBall ranking task.
- Context Retrieval invokes the CoreBall MCP server or CLI to fetch ranked file excerpts.
- Iterative Analysis reads source files, traces imports, and expands the search if gaps are found.
Frameworks & tools
This skill requires the CoreBall CLI or a configured CoreBall MCP server. It works across any language supported by CoreBall, respecting .gitignore rules by default to ensure only relevant source code is analyzed.
You need to clone coreball from here: https://github.com/francomano/coreball
Why this beats prompting it yourself
Standard prompts often cause agents to hallucinate file paths or ingest thousands of lines of irrelevant code. This skill enforces a strict ranking and budgeting workflow, ensuring the agent only acts on verified, high-significance context.
Use cases
- Map out an unfamiliar repository to understand a new feature's entry point.
- Locate the root cause of a specific error message across multiple microservices.
- Prepare a focused context package before initiating a complex refactor.
- Audit specific symbol dependencies before changing a core API signature.
Known limitations
Ranking and excerpts are navigation aids, not proof of completeness. It may omit generated code, unsupported languages, or files excluded by .gitignore unless specific flags are used.
How to use
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free forever
No account required to browse
Trust & safety
Security scanned
Verified clean 2 days ago
- Free to download with an account