How do I substitute almond flour for all purpose flour?
There is no general replacement. Almond flour has very little in common with all-purpose flour, and behaves very differently in baking.
Your idea of adding gluten is very interesting - many flourless recipes are actually made with the intent to be gluten-free, which is a very difficult restriction to work around. It is certainly something to have in your toolbox.
However, you cannot just find some kind of mixture which will behave as a good substitute in different circumstances. Rather, you will have to redesign each recipe separately, and some things (e.g. laminated dough) may not be possible at all. For others, you would probably need to learn what the flour's role is in each, and experiment how to match it well - here, food science books will be helpful. It is quite an interesting project!