An ability is an abstraction of the capabilities of an app/atomic service. A module of an app can contain one or more abilities, while a module of an atomic service can contain only one ability. To understand the ability, first familiarize yourself with the two application models:
Adding an Ability in the Stage Model
[h2]Adding a UIAbility to a Module
- Right-click a module and choose New > Ability from the shortcut menu.
- Set the ability name and other fields, and click Finish.

[h2]Adding an ExtensionAbility to a Module
Since DevEco Studio 6.1.0 Beta2, you can add RemoteNotificationAbility to modules of projects for telematics devices (Car type) using API version 23 or later.
Since version 26.0.0, you can add Agent and AgentUI to modules of projects using API version 26.0.0 or later.
- Right-click a module, choose New > Extension Ability from the shortcut menu, and select a scenario. Adding an ExtensionAbility is only available for Application projects.
- If the type of the created module is HAP, the following extension abilities are supported:
- If the type of the created module is HAR or HSP, the following extension abilities are supported:

- Set the ability name and click Finish.

Adding an Ability in the FA Model
[h2]Creating a Particle Ability
- Right-click a module and choose New > Ability > an ability template from the shortcut menu.

- Set the basic information about the ability based on the ability template you have selected.
- Ability name: name of the ability, which consists of uppercase letters, lowercase letters, digits, and underscores (_).
- Language: programming language of the ability.
- When you have finished, click Finish. You can then view and edit the new ability in the corresponding module of the project directory.
[h2]Creating a Feature Ability
- Right-click a module and choose New > Ability > an ability template from the shortcut menu.

- Set the basic information about the ability based on the ability template you have selected.
- Ability name: name of the ability, which consists of uppercase letters, lowercase letters, digits, and underscores (_).
- Launcher ability: whether the ability launcher icon is displayed on the home screen. A HAP can have multiple launcher icons to start different feature abilities.
- Language: programming language of the ability.
- When you have finished, click Finish. You can then view and edit the ability in the corresponding module of the project directory.