Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jefftriplett/files-to-claude-xml

Use XML tags for long context prompting using Claude's multi-document structure.
https://github.com/jefftriplett/files-to-claude-xml

claude llm python xml

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

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](https://micro.webology.dev/2024/10/12/i-released-filestoclaudexml.html) for more details.

## :rocket: Usage

```shell
# 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**

* Website: https://jefftriplett.com
* Micro Blog: https://micro.webology.dev
* Mastodon: [@[email protected]](https://mastodon.social/@webology)
* Xwitter: [@webology](https://twitter.com/webology)
* GitHub: [@jefftriplett](https://github.com/jefftriplett)
* Hire me: [revsys](https://www.revsys.com)

## 🌟 Community Projects

* [Django News Newsletter](https://django-news.com)
* [Django News Jobs](https://jobs.django-news.com)
* [DjangoTV](https://djangotv.com)
* [Django Packages](https://djangopackages.org)
* [DjangoCon US](https://djangocon.us)
* [Awesome Django](https://awesomedjango.org)

## 🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/jefftriplett/files-to-claude-xml/issues).

## Show your support

Give a ⭐️ if this project helped you!