nocobase-app-plugin-projects
它能做什么
这项技能为 NocoBase 3 应用添加 Projects 插件,通过其 API 跟踪项目和问题。适合希望在业务应用中进行任务跟踪的团队。
适用场景
- ✓当你希望在 NocoBase 应用中跟踪项目和问题时。
- ✓当对项目 API 的请求被拒绝时。
- ✓当你需要把项目通知或触发器连接到其他插件时。
技能链接
https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-projects/skills/nocobase-app-plugin-projects/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我为 NocoBase 应用添加项目和问题跟踪,让团队可以分配问题并跟踪其状态。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会注册该插件,绑定应用的访问规则,并使用项目 API 管理项目、问题、状态、标签和成员。角色由应用提供,因为该插件不保存自己的角色。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Projects App Plugin
Use this Skill when an App needs project and issue tracking, or when a request under /api/projects fails. Do not use it
for generic collection CRUD; the plugin's tables are only written through its API.
Public surfaces
- Server plugin: default export of
@nocobase/app-plugin-projects/server;projectsTokenfrom@nocobase/app-plugin-projects/server/tokensresolves the services. The App must bindprojectsAccessToken(ProjectsAccess:permissionsOf,admit,changed,administrators, and optionallypermissionsOfUserso notices reach only those who may see the issue): the plugin keeps no roles of its own. It may bindprojectsNoticesToken(ProjectsNotices:send) to receive the plugin's notices (owner notified, commented, mentioned, status changed, owner or executor assigned; information carries agroupto merge by) and keep its own inbox; otherwise they go to the in-app channelprojects.inboxChannel. Another plugin bindsprojectsTriggersToken(IssueTriggers) to start work when a person comments, and adds notice rules throughprojectsNoticeRulesToken. Operation plans (shared/plans.ts) are proposed throughprojects.plans(PlanService: rehearse, create, propose to someone else, execute, preview an undo and undo in one step), and a plugin bindsprojectsPlanHooksToken(PlanHooks.onPlanDecided) to hear their decisions. - Shared types:
@nocobase/app-plugin-projects/shared/<name>(access,attachments,comments,common,issues,labels,members,plans,projects,settings,statuses,subscriptions,subtasks). - Server routes: everything under
/api/projects; see the package README for the list. Failures are the standard error body with domainprojects: branch onreason, read details frommetadata. - Client: the default export of
@nocobase/app-plugin-projects/clientadds/projects(the list and "New project"). The App owns a project's page (/projects/:projectId, routed as that route's child) and composes it from the headless@nocobase/app-plugin-projects/client/projects(useProjectDetail,useProjectUpdate,useProjectMembership,useProjectResources,useResourceValidation,useDeleteProject). The App also owns/issuesand/my-issues: it composes them from the headless@nocobase/app-plugin-projects/client/issues(list and board queries, board moves, filters in the query string, executor options) and routes the plugin's pages under/issues(the New issue dialog with its AI draft and manual tabs, a plan) fromclient/pages(issueChildRoutes). It also owns an issue's page (/issues/:issueId), presented over the same headless entry (useIssueDetail,useIssuePageActions,useIssueTimeline,useIssueCommentActionsand the rest), and hosts the plugin's "New sub-issue" dialog under it (issueDetailChildRoutes). The settings pages (issue prefix, labels) are exported from@nocobase/app-plugin-projects/client/configfor the App to route under its own settings page, and shared page components from@nocobase/app-plugin-projects/client/kit. Changes are announced on the realtime topicpm:changes, naming the changed issues inissueIdswhen they can; refresh only those issues' reads then.
The NocoBase UI Library presents these headless entries; install an item rather than building the page from scratch, and read its example (pnpm exec shadcn view @nocobase/<item>-demo) first. project-detail is a block for a project's page, issue-detail a block for an issue's page, and issue-table, kanban and comment-thread the components for the issue list, the board and an issue's activity. For agents working on issues, agent-queue (a block) and agent-run-history (a component) take the runs of @nocobase/app-plugin-agents. Each is installed with yes n | pnpm exec shadcn add @nocobase/<item> and is presentational: map the hooks' data to its props and its callbacks to the hooks' mutations.
Prerequisites
The App must register @nocobase/app-plugin-authentication, @nocobase/app-plugin-authorization and
@nocobase/app-plugin-users (whose invitations the member settings use) before this plugin, and bind
projectsAccessToken from one of its own providers. The roles seed still creates pm-* permission sets with composite
grants from before roles moved to the App; the App converts them (for example, database/roles-conversion.ts).
Permissions and co
常见问题
我能直接写入它的数据表吗?
不能。技能说明,它的数据表只能通过其 API 写入。
谁决定权限?
由应用决定,通过其访问服务来完成,因为该插件不保存自己的角色。
它会发送通知吗?
会。它可以发送关于评论、提及、状态变更和分配的通知。
详情
作者的原始描述
Register the Projects plugin in a NocoBase App, call its /api/projects API for projects, issues, their fixed statuses, labels and members, grant its permissions, or work out why a projects request is rejected.
repo: nocobase/nocobase
热度
- GitHub 星标
- 25k
- 排名
- #10104
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
nocobase-app-development
25k帮你的智能体为完整的 NocoBase 3 业务应用构建页面、路由、数据、权限和测试。
shadcn
25k帮你的智能体在 Web 项目中查找、添加、修复和美化 shadcn/ui 组件,并使用其官方文档和注册表。
nocobase-app-plugin-development
25k帮你的智能体在现有应用中创建和维护 NocoBase 3 插件,包括服务端、客户端、数据库和注册部分。
nocobase-app-upgrade
25k帮你的智能体把 NocoBase 应用升级到较新的模板版本,引入模板的更改,同时保留你自己的工作。