Skip to content

feat(platform): create a project's agents and skills from the normal chat, within the rights of the person or the selected agent #5411

Open

Description

@yannickmonney

Summary

Request: in the normal chat, people should be able to create a project's agents and skills, as far as their rights reach. When the chat answers as a selected project agent, the agent's rights should decide.

Part of this exists. Since #5363 a chat can propose a new agent for a project (or a change to one), and the chat's owner applies the proposal from a card. Skills are missing: a chat can equip an agent with skills that already exist, but cannot create one. "Rights" means two things the code does not do today. Proposals are offered only to people with an editing role, so a Member, who may create skills on the Skills page, gets none. And a selected agent brings no rights of its own: a chat always acts as the person.

Anchors are on main at 3d802f94f; the feature line (feature-train at 813be1ff4) has the same proposal kinds and no change to these files.

What exists today

Agents, through proposals.

  • The chat's two settings tools are read_project_settings and propose_project_settings. A proposal is one of create_project, update_project, create_agent or update_agent (settings-tools.ts:48-55).
  • A proposal is checked as the person and shown as a card, and nothing changes until the chat's owner applies it. The apply checks everything again through the project pages' services and writes audit rows saying the change came from the chat (CHAT-R44, chat/spec.md:351-363).
  • A new agent can have a name, instructions, model, runtime and skills; sharing, secrets, connectors, platform tools, repository access and deletion stay on the project's pages (CHAT-R45, :365-377).
  • Why a card and not a direct write: "Text from a web page or a document can therefore make the model propose something, but never change anything" (settings-tools.ts:1-21).

Who gets the tools.

  • Only the organization roles owner, admin, developer and editor, chatting in the app (proposals.ts:341-358, audience.ts:37-47). A Member gets none, and so does a send over the API (chat/service.ts:170-188).
  • In a chat filed in a project, the tools reach that project alone, besides proposing a new project (CHAT-R45).

A selected agent.

  • A project chat can answer as one of the project's agents. Its instructions, skills and model shape the reply, but "the agent's runtime, connectors, platform tools, secrets and repository access stay on tasks: a chat … acts for the person chatting, never with more than they may use" (chat/agents.ts:5-22).
  • The turn adds the settings tools whether or not an agent answers (turn_action.ts:1954-1961), and they act as the person.
  • Agents hold no rights: the competences register (the platform's "rights") grants capabilities to members (competences.md:6-11).

Skills.

  • No chat tool creates or changes a skill; a proposal can only equip existing ones (CHAT-R45).
  • On the Skills page every member may create a skill for their teams. Sharing with the whole organization can be reserved for some roles or for holders of tale:skills.publish (SKILL-R7, skills/spec.md:68-91). A skill is changed by its owner, an owner or an admin (SKILL-R5, :53-59).
  • The MCP endpoint's settings tools (plan_settings, apply_settings) know no skill kind either (mcp/settings/handlers.ts:33-46).

Constraints

  • A turn reads content the person did not write (web pages, documents, connector data). Today every change waits for the person's click on the card, which is what keeps that content from changing settings.
  • The skill rules (SKILL-R1 to SKILL-R17) and the proposal rules (CHAT-R44 to CHAT-R46) stay true, and so does tenant isolation and the audit trail of where a change came from.
  • A Governance switch for these tools is still open (Decision: should Governance be able to turn off the chat's project and agent proposals? #5379). Its spec note: the Chat tools policy schema is strict, so a new key needs the reader to accept unknown keys first (chat/spec.md:667-672).
  • Any new card, refusal or step text ships in every locale.

Options

None is preferred.

  • A. Skill proposals: create_skill and update_skill kinds, checked by the skill rules as the person and applied from the card like agents (instructions only, or instructions and files).
  • B. Offer skill proposals to Members for their own teams, as the Skills page allows, while project and agent proposals stay with the editing roles.
  • C. Let a selected agent narrow what the chat may propose: the person's rights cut down to the agent's grants, never widened beyond the person.
  • D. Give agents rights of their own (grants an admin assigns) that apply in chats as well as tasks.
  • E. Create directly, without the card, for some kinds or roles. This removes the click that keeps page and document content from changing settings.

Questions

  1. Should the chat create directly, or keep the card for skills too?
  2. In a chat answered by an agent, whose rights count: the person's (today), the person's narrowed by the agent's, or the agent's own?
  3. Should a Member be able to create a skill for their team from a chat?
  4. What may a chat put into a skill: instructions only, or files and scripts as well?
  5. Should the same reach the REST API and the MCP endpoint, which get no proposals today?

Related

Activity

  1. added
    needs discussion
    feat
    service: platform
    on Nov 6, 2026
  2. yannickmonney commented on Nov 14, 2026

    @yannickmonney
    ContributorAuthor

    Decision

    The chat may propose skills, as it already proposes projects and agents. We build options A and B and reject C, D and E.

    The rule

    • New tool. A new chat tool, propose_skill, has two kinds: create_skill and update_skill.
    • Same path as agent proposals.
      • The draft is checked as the person and shown as a card. Only the chat's owner applies it.
      • The apply checks everything again through the Skills page's own service: writer lock, publish and team checks, version precondition.
      • A stale proposal is refused (CHAT-R46), and a proposal is decided once.
      • The audit log records the write with a new door, chat, plus the thread and proposal.
    • What a skill proposal holds. Name (create only, never replacing an existing skill), description, instructions, icon and labels. No bundle files, scripts, recommended packages or the "don't invoke on its own" flag. An update rewrites the instructions file only. Its card shows the changes as a diff, so a planted line is visible.
    • Audience. A create sets whom the skill is shared with:
      • in a project chat, the project's teams the person belongs to, so the project's agents can equip it;
      • if there is none, or the chat is in no project, the person's team (with several teams the chat asks). In a project chat the card says the project's agents cannot equip it yet;
      • the whole organization only when asked for and allowed by SKILL-R7.
        An update never changes the audience.
    • Who gets it. Every active member chatting in the app, Members included, as the Skills page allows. Updates follow the page's own edit rule (SKILL-R5, SKILL-R8). The tool is offered only while the Chat tools Skills switch is on; a future proposals switch from Decision: should Governance be able to turn off the chat's project and agent proposals? #5379 must also be on. Project and agent proposals stay with Editor and above. A send over the API gets no proposal tools.
    • Selected agent. When a chat answers as a project agent, the person's rights alone count.
    • Equipping. An agent proposal can equip only skills that already exist. The chat proposes the skill first and the agent change after it is applied.

    Answers

    1. Direct or card? Keep the card, with a diff for updates.
    2. Whose rights in an agent-answered chat? The person's, unchanged by the agent.
    3. May a Member create a team skill from a chat? Yes, for teams they may share with. Updates follow the page's edit rule.
    4. What may a chat put into a skill? The editor's text fields only. Files and scripts stay with the upload.
    5. REST and MCP? No proposals there. REST already writes skills under the skill rules. MCP gets a skill settings kind with the same limits, audited as mcp.

    Rationale
    A skill's instructions reach every agent equipped with it, so the card stays and shows readable text, as a diff for updates. Applying through the Skills page's own service, with its own edit and audience rules, keeps SKILL-R1 to SKILL-R17 and CHAT-R44 to CHAT-R46 true without a second copy of the logic. Agent rights (C and D) add a concept that changes nothing an Apply does not already check, and belong to #4879. Tying the tool to the existing Skills switch gives Governance control without the strict-schema hazard in #5379.

    Implementation units (all on main)

    1. Skill proposals: tool, draft checks, card with diff, apply through the Skills service, chat audit door, locales, spec, docs, manual box (L).
    2. Offer propose_skill to every member in an app chat, gated by the Skills switch; project and agent tools stay with editors (M; after 1).
    3. Spec and test: a selected agent neither adds nor removes proposal rights (S; after 2).
    4. MCP: a skill settings kind with the same limits, audit door mcp (M; after 1).

    Cross-issue amendments (decisions taken together with #4877, #5379, #4930):

  3. added
    agent-ready
    and removed
    needs discussion
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyfeatservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions