Skip to main content

Use XML tags for long context prompting using Claude's multi-document structure.

Project description

Welcome to files-to-claude-xml 👋

Use XML tags for long context prompting using Claude's multi-document structure.

See notes and examples here: https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/long-context-tips

Write up

:memo: See my blog post, I released files-to-claude-xml and new development workflows for more details.

:rocket: Usage

$ uv run files-to-claude-xml.py \
    filename1.py \
    filename2.py \
    filename3.py

Now create a new Claude Project and drag and drop the generated _claude.xml file into your "Project knowledge" section.

Author

👤 Jeff Triplett

🌟 Community Projects

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

files_to_claude_xml-2024.10.2.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

files_to_claude_xml-2024.10.2-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page