For scaffolding files, the Angular CLI leverages the code generator Schematics. To customize its behavior, everyone can tweak the used templates and even create new ones. This session shows how to leverage this less known technology dozing under the CLI’s covers. For this, you will learn how Schematics work and how we can write npm packages that provide additional code generators. You will also see how to modify existing source files, e. g. in order to register a generated component with an existing module. For this, we will use the TypeScript’s compilers services which allow to directly manipulate the application’s abstract syntax tree. After this session you know the build-in options for automating repetitive and boring programming tasks.