# Best practices for organising allium files

**URL:** <https://allium.discourse.group/t/best-practices-for-organising-allium-files/21>\
**Category:** General\
**Created:** [23 August 2026 15:34 UTC](https://allium.discourse.group/t/best-practices-for-organising-allium-files/21 "2026-08-23T15:34:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tburny](https://yyz1.discourse-cdn.com/flex047/user_avatar/allium.discourse.group/tburny/32/19_2.png) [@tburny](https://allium.discourse.group/u/tburny)\
**Post date:** [23 August 2026 15:34 UTC](https://allium.discourse.group/t/best-practices-for-organising-allium-files/21/1 "2026-08-23T15:34:13Z")

</div>

Hi there,

what is your personal best practice for organising allium files?

Do you keep them in a separate folder like spec/ or do you have one allium file per code file or something else entirely?

---

<div class="post-metadata">

**Author:** ![henry](https://yyz1.discourse-cdn.com/flex047/user_avatar/allium.discourse.group/henry/32/5_2.png) [@henry](https://allium.discourse.group/u/henry)\
**Post date:** [1 October 2026 15:07 UTC](https://allium.discourse.group/t/best-practices-for-organising-allium-files/21/2 "2026-10-01T15:07:19Z")

</div>

Hi @tburny!

All my specs end up in a `specs` directory but beyond that I don’t tend to think much about it. I lean towards thinking of the specs as the agent’s responsibility to manage and I rarely read them.

I observe that I tend to get one spec per logical component of my system, which averages about 1-7 specs per repository. Occasionally there’s an outlier though: the Apollo-11 guidance computer yielded 18 spec files.

What’s been your strategy?

---

<div class="post-metadata">

**Author:** ![tburny](https://yyz1.discourse-cdn.com/flex047/user_avatar/allium.discourse.group/tburny/32/19_2.png) [@tburny](https://allium.discourse.group/u/tburny)\
**Post date:** [1 October 2026 16:00 UTC](https://allium.discourse.group/t/best-practices-for-organising-allium-files/21/3 "2026-10-01T16:00:59Z")

</div>

I used to have a spec folder, however there is a tradeoff. A dedicated specs/ tree keeps the specs cohesive and decoupled from the implementation.  
A 1:1 mapping between allium and source code helps to see the connection between specification and implementation. The cost is that similar to how most people write unit tests, there is now a strong coupling between specification and implementation files, which makes it harder (more expensive) to refactor and you get more files.
