Loading...
Loading...
[Docs] Autonomous subagent variant of documentation. Use when creating or updating technical documentation, API documentation, or inline code documentation.
npx skill4agent add duc01226/easyplatform tasks-documentationSkill Variant: Use this skill for autonomous documentation generation with structured templates. For interactive documentation tasks with user feedback, useinstead.documentation
/// <summary>// TODO:// HACK:documentation/// <summary>
/// Saves or updates an employee entity.
/// </summary>
/// <remarks>
/// This command handles both create and update operations.
/// For new employees, the Id should be null or empty.
/// </remarks>
public sealed class SaveEmployeeCommand : PlatformCqrsCommand<SaveEmployeeCommandResult>
{
/// <summary>
/// The unique identifier of the employee.
/// Null or empty for new employees.
/// </summary>
public string? Id { get; set; }
/// <summary>
/// The employee's full name.
/// </summary>
/// <value>Must be non-empty and max 200 characters.</value>
public string Name { get; set; } = string.Empty;
}/**
* Manages the feature list state and operations.
*
* @example
* ```typescript
* @Component({ providers: [FeatureListStore] })
* export class FeatureListComponent {
* constructor(private store: FeatureListStore) {
* store.loadItems();
* }
* }
* ```
*/
@Injectable()
export class FeatureListStore extends PlatformVmStore<FeatureListState> {
/**
* Loads items from the API with current filters.
* Use `isLoading$('loadItems')` to check loading status.
*/
public loadItems = this.effectSimple(() => /* ... */);
}/// <summary>
/// Employee management endpoints.
/// </summary>
[ApiController]
[Route("api/[controller]")]
[PlatformAuthorize]
public class EmployeeController : PlatformBaseController
{
/// <summary>
/// Retrieves a paginated list of employees.
/// </summary>
/// <response code="200">Returns the employee list.</response>
/// <response code="401">Unauthorized.</response>
[HttpGet]
[ProducesResponseType(typeof(GetEmployeeListQueryResult), StatusCodes.Status200OK)]
public async Task<IActionResult> GetList([FromQuery] GetEmployeeListQuery query)
=> Ok(await Cqrs.SendAsync(query));
}| Type | When to Use |
|---|---|
| Public API documentation |
| Complex logic explanation |
| Planned improvements |
| Known issues |
| Temporary workarounds |
| Important information |