Skip to content

jefftriplett/files-to-claude-xml

Repository files navigation

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

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

🚀 Usage

# to install:
$ uv pip install files-to-claude-xml

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

# to run via uv tool (with or without installing):
$ uv tool run files-to-claude-xml \
    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!

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published