claude-code - 💡(How to fix) Fix [FEATURE] Allow skills/documents to be attached when creating sub-agents via "/agents" [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#45238Fetched 2026-04-09 08:10:04
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

=> Currently /agents creates a blank agent with a basic system prompt.
=> It would be very powerful if users could attach skill files or documents directly when creating asub-agent. This way the agent inherits that knowledge automatically and becomes an expert in that specific area.

=> For example: -> creating a "Legal Reviewer" agent and attaching your company's legal guidelines document - the agent instantly knows all the rules. This would make sub-agents significantly more powerful and useful.

Proposed Solution

=> Currently /agents creates a blank agent with a basic system prompt.
=> It would be very powerful if users could attach skill files or documents directly when creating asub-agent. This way the agent inherits that knowledge automatically and becomes an expert in that specific area.

=> For example: -> creating a "Legal Reviewer" agent and attaching your company's legal guidelines document - the agent instantly knows all the rules. This would make sub-agents significantly more powerful and useful.

Alternative Solutions

Allows user to add Skills Doc while creating Sub agents in Claude CLI

Priority

High - Significant impact on productivity

Feature Category

CLI commands and flags

Use Case Example

No response

Additional Context

No response

extent analysis

TL;DR

Modify the /agents creation process to accept and integrate skill files or documents, enabling sub-agents to inherit specific knowledge areas.

Guidance

  • Investigate the current implementation of the /agents endpoint to determine the best approach for adding file or document attachment functionality.
  • Consider adding a new parameter to the /agents creation request that accepts a file or document, which can then be processed and integrated into the sub-agent's knowledge base.
  • Evaluate the feasibility of using existing libraries or tools for handling file uploads and processing, to streamline the development process.
  • Develop a strategy for validating and sanitizing user-uploaded files to prevent potential security vulnerabilities.

Example

No specific code example can be provided without more context about the existing implementation and technology stack.

Notes

The solution will depend on the specific requirements and constraints of the project, including the technology stack, security considerations, and performance needs.

Recommendation

Apply a workaround by enhancing the /agents creation process to accept skill files or documents, as this would significantly improve the functionality and usefulness of sub-agents.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING