Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions crates/orchestrator/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ pub fn create_router(state: ApiState) -> Router {
.route("/approvals/{id}", get(get_approval))
.route("/approvals/{id}/approve", post(approve_tool))
.route("/approvals/{id}/deny", post(deny_tool))
.route("/skills", get(list_skills))
.route("/debug/agents", get(debug_agents))
.route("/events/ask", post(ask_event_handler))
// Project management
Expand Down Expand Up @@ -637,6 +638,16 @@ struct DebugSummary {
active_workflows: usize,
}

/// `GET /skills` — list all discoverable skills.
///
/// Scans `.agentd/skills/` (project-level) and `~/.config/agentd/skills/`
/// (user-level) and returns a JSON array of [`Skill`] objects. The list is
/// sorted by name. Returns an empty array when no skills directory exists.
async fn list_skills() -> impl IntoResponse {
let skills = crate::skills::discover_all_skills();
Json(skills)
}

async fn debug_agents(State(state): State<ApiState>) -> Result<impl IntoResponse, ApiError> {
let agents = state.manager.list_agents(None).await?;
let connected_ids = state.registry.connected_ids().await;
Expand Down
1 change: 1 addition & 0 deletions crates/orchestrator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pub mod manager;
pub mod message_bridge;
pub(crate) mod migration;
pub mod scheduler;
pub mod skills;
pub mod storage;
pub mod system_agents;
pub mod types;
Expand Down
Loading
Loading