WORKSPACE skills, shared firm
protocols) or to a single user (USER skills, personal protocols). The
Playbook screen in the Filed web app is the human UI over this API.
Skill operations are reached through the me query resolved as a
WorkspaceUser, so every read and mutation on this page requires a
workspaceToken (see Authentication). All
requests go to:
There is no top-level
skills or skill query. Both are fields on Workspace,
reached through me { ... on WorkspaceUser { workspace { skills(...) } } }.
The workspaceToken already identifies which workspace, so you never pass a
workspace ID.body. Skills are written and
edited in the Filed web app, under Playbook. To export every firm protocol
with its content, see Export a firm’s protocols.
The Skill type
The skill’s scope:
WORKSPACE (shared firm protocol) or USER (personal
protocol). Determines who can edit, promote, and delete it.The task family this skill applies to, for example
tax-prep or
tax-advisor. Skills are grouped and listed by taskType.The skill’s unique name within its
taskType and kind. Together
kind + taskType + name identifies a single
skill.The full rule body (the prompt / instruction text the analyst applies), in
Markdown. Only
workspace.skill returns it; it is
null in the list.null on every skill the API returns. Only Filed’s built-in protocols carry a
return type, and the API doesn’t return those.The structured rules attached to the skill. See the
SkillRule type.The strategies attached to the skill. See the
SkillStrategy type.The skill’s lifecycle state:
NONE, PENDING, APPROVED, DENIED,
DISABLED, or MERGED. PENDING means a USER skill has been shared with
the firm and is awaiting approval; APPROVED/DENIED are the resolved
promotion states; DISABLED means an admin has turned it off without deleting
it; MERGED means it was folded into the skill named in mergedInto and has
no content of its own.The user who owns the skill. See
UserShortDetails.The skill’s activity timeline (promotions, approvals, activations, edits). See
SkillActivityEvent.The teams a firm skill is limited to. Empty means the whole firm. Members
outside these teams don’t see the skill, and it doesn’t apply to work they run.
Admins see every skill.
The SkillRule type
The SkillStrategy type
The SkillActivityEvent type
What happened, for example
created, updated, shared, approved, denied,
enabled, disabled. The web app humanizes this by replacing hyphens and
underscores with spaces and title-casing the result.The user who triggered the event. See
UserShortDetails.An optional human-readable note attached to the event (for example the denial
reason from
denySkillPromotion).The UserShortDetails type
UserShortDetails is a federated entity. The ai subgraph declares it with
only id; the platform subgraph resolves the human-readable fields.
List skills
Readworkspace.skills to list skills for a task family: the firm’s
(WORKSPACE) and the caller’s own (USER).
Arguments
Filter to one task family, for example
tax-prep or tax-advisor. Omit to
list skills across all task families.View a single skill
Readworkspace.skill to fetch one skill’s full detail, including its body,
rules, strategies, and activity timeline. Identify the skill with
kind + taskType + name.
Arguments
workspace.skill returns null when no skill matches the supplied
kind + taskType + name. Handle null as a not-found
result.The promotion workflow
AUSER skill starts as a personal protocol visible only to its owner. To share
it with the whole firm, the owner requests a promotion; a workspace admin then
approves or denies it. On approval the skill becomes a WORKSPACE skill (or
its WORKSPACE counterpart is activated) and applies for every user in the
workspace. The three mutations below drive that flow. All require a
workspaceToken.
Request a promotion
requestSkillPromotion submits a USER skill for firm-wide review. Its
status becomes PENDING.
Returns: Skill!
The promoted Skill with its updated status.
Approve a promotion
approveSkillPromotion approves a PENDING skill. Its status becomes
APPROVED and it applies firm-wide.
Returns: Skill!
The approved Skill with status: APPROVED.
Deny a promotion
denySkillPromotion denies a PENDING skill. Its status becomes DENIED
and the optional reason is recorded on the activity timeline.
An optional denial note. Stored on the
SkillActivityEvent so the owner can see
why the promotion was rejected.Returns: Skill!
The denied Skill with status: DENIED.
Toggle a skill active or inactive
setSkillActive enables or disables a skill without deleting it. Disabling sets
status: DISABLED so the skill stops applying but is still listed and can be
re-enabled. It works on firm (WORKSPACE) skills and needs a workspace admin: a token whose
user is not one gets a FORBIDDEN error, admin role required. An OAuth grant
without a write scope is refused as read-only, also with FORBIDDEN.
Returns: Skill!
The updated Skill. Its status reflects the new active
state (APPROVED when enabled, DISABLED when disabled).
Limit a firm skill to teams
setSkillTeams limits a firm (WORKSPACE) skill to one or more teams. An
empty list opens it to the whole firm again. It needs a workspace admin; anyone
else gets FORBIDDEN, admin role required. Filed’s built-in skills can’t be
limited.
Returns: Skill!
The updated Skill.
Delete a skill
deleteSkill permanently removes a skill. For WORKSPACE skills this deletes
the skill for the whole firm. For
USER skills this deletes the personal protocol. The mutation returns true
on success.
Returns: Boolean!
true when the skill was deleted.