@oguzhan18/angular-schematics

ALWAYS use when working with Angular Schematics, custom generators, code generation, or building CLI tools in Angular.

View in AI SkillSafe app
Scanned · no findings
0 downloads
0 stars
0 demos
SKILL.md
nameangular-schematics
descriptionALWAYS use when working with Angular Schematics, custom generators, code generation, or building CLI tools in Angular.

Angular Schematics

Version: Angular 21 (2025) Tags: Schematics, Generators, CLI, Code Generation

References: Schematics Guide@schematics/angular

Best Practices

  • Create schematic
npm install -g @angular-devkit/schematics-cli
schematics schematics .:my-schematic
  • Create rule
import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics';

export function myScheme(options: any): Rule {
  return (tree: Tree, context: SchematicContext) => {
    tree.create(options.path + '/file.ts', 'content');
    return tree;
  };
}
  • Use templates
import { apply, url, template } from '@angular-devkit/schematics';

export function myScheme(options: any): Rule {
  const templateSource = apply(url('./files'), [
    template({ ...options }),
    move(options.path)
  ]);
  return chain([mergeWith(templateSource)]);
}

Embed badges

Add these to your README to show the skill's verification status.

SkillSafe verified badge
Verified badge
[![SkillSafe verified badge](https://api.skillsafe.ai/v1/badge/@oguzhan18/angular-schematics/verified)](https://skillsafe.ai/skill/@oguzhan18/angular-schematics/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@oguzhan18/angular-schematics/installs)](https://skillsafe.ai/skill/@oguzhan18/angular-schematics/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@oguzhan18/angular-schematics/scan)](https://skillsafe.ai/skill/@oguzhan18/angular-schematics/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@oguzhan18/angular-schematics/eval)](https://skillsafe.ai/skill/@oguzhan18/angular-schematics/)