You seem to intend to add your own abbreviation-level in terms of a collection of (La)TeX macros to things that already exist.
On the one hand this might indeed make understanding the code of your documents more easy to you.
On the other hand this might complicate things in case of distributing your .tex source code so that other people can compile it:
Although this might make understanding the code more easy to you, it is not ensured that it will make understanding the code more easy to other people as other people may probably not be used to your macros.
Besides this, this might result in problems with some of the programs available for deriving/rendering .html-files and the like directly from your (La)TeX code. (E.g., TeX4ht, LaTeX2HTML, TtH, plasTeX, hyperlatex, ... )
Maybe adding your 'private level of abbreviation' can be done not on the level of (La)TeX macros but by means of editor-macros which let you type some abbreviations for inserting larger portions of (La)TeX code into the .tex-file.
Of course a disadvantage of this will be that with abbreviating during typing you usually are bound to those machines where the editing software is customizable in your ways and where you have possibilities and sufficient rights for importing your private customizations for the editing software.
If you work on many different computers, hereby using a diversity of different text editing programs, probably not all of the machines under your administration, binding your workflow to specific editing software by means of editor-macros just for that specific editing-software might not be a feasible approach.
Be that as it may.
Even without the desire of just typing less and making reading/understanding the code more easy, you can quickly get to a point where you cannot avoid writing (La)TeX-macros because you need functionality which is not available yet.
Therefore:
If you decide to supply your own set of LaTeX macros, it might be a good idea to provide everything within a single package.
There is the so called .dtx-format.
Like .sty files and .tex files .dtx files actually are just text files containing (La)TeX code.
The file name extension ".dtx" is an acronym for "Documented LaTeX source".
The .dtx format lets you maintain your code, user manual and comments for explaining the code within a single text file whose file name extension is .dtx .
From .dtx-files one can easily derive both .sty files which can be loaded via \usepackage and .pdf-files which contain the nicely formatted user manual and/or the nicely formatted commented source code of the package.
The source code of the LaTeX 2e kernel itself is maintained in .dtx format.
Many of the LaTeX packages submitted to the Comprehensive TeX Archive Network (CTAN) are managed in .dtx format.
In short:
The .dtx format lets you write (and compile a nicely looking .pdf-file thereof) the commented source code and the manuals for your package using the means of the package doc, and lets you generate files like the .sty-file (which is to be loaded via \usepackage) by means of the package docstrip.
You can realize the "generating-part" either by having (La)TeX load docstrip and carrying out so-called \generate-directives from within the .dtx file in question itself or by putting directives for loading docstrip and carrying out the \generate-directives into a separate plain text file whose file name extension then should be .ins .
Some CTAN-resources of interest might be:
Description on CTAN:
Documentation of commands (other than font-handling commands) that are useful
when writing a LaTeX class or package.
Part of a set of documentation that also covers new LaTeX 2e commands,
font-handling, typesetting Cyrillic, LaTeX font encodings,
configuration options and modification of LaTeX.
Description on CTAN:
The package provides definitions that are necessary to format the
documentation of LaTeX kernel and package source files (Literate LaTeX),
which incorporate both the documentation and the code.
This package is part of the LaTeX distribution.
Package documentation:
Frank Mitelbach: The doc and shortvrb Packages
Description on CTAN:
The package prepares a LaTeX kernel or package source file for actual
use, by removing the documentation and meta-data. The package can
conditionally include parts of the source file, generate many files
from a single source, and generate a single output from several
source files.
The package is part of the LaTeX distribution.
Package documentation:
Frank Mittelbach, Denys Duchier, Johannes Braams, Marcin Woliński, Mark Wooding: The DocStrip program
The abstract says:
This tutorial is intended for advanced LaTeX 2ε users who want to
learn how to create .ins and .dtx files for distributing their homebrewed
classes and style files.
Description on CTAN:
A collection of files that demonstrate simple things that are possible with
the flexible and under-appreciated docstrip file format. Each file of the
collection is provided as a .dtx file and as the corresponding .pdf.
The set is intended as a companion to Scott Pakin’s excellent and influential
dtxtut example of producing LaTeX packages in this way.
In case you some day intend to publish packages by submitting them to the Comprehensive TeX Archive Network (CTAN), the following might be of interest:
How can I upload a package?
Additional Information for CTAN Uploaders
Guidelines for uploading TDS-Packaged materials to CTAN
TeX Live package contributions
mystuff.styand then use\usepackage{mystuff}you can then see if anyone else wants to try them and make them available, but documenting to others how to use your macros is the hard part – David Carlisle Jun 14 '19 at 21:58physicspackage. It creates a lot more problems than it solves. – Henri Menke Jun 15 '19 at 02:48