Skip to content

Commit 05ae65b

Browse files
groeimetaiclaude
andcommitted
refactor: make INSTANCE.md template and agent instructions generic
Remove agile-specific references (scrum masters, Jira/ADO tool selection, com.snc.sdlc.agile.2.0) and broaden to cover all ServiceNow use cases. Add sections for scoped apps, integrations, and naming conventions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 123c890 commit 05ae65b

File tree

2 files changed

+37
-12
lines changed

2 files changed

+37
-12
lines changed

packages/opencode/src/project/agents-template.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,14 @@ You MUST follow instructions in this precedence order:
202202

203203
**When to READ INSTANCE.md:**
204204
- At the start of a session to recall instance details (URL, version, active plugins, teams)
205-
- Before choosing between native SN agile tools vs enterprise Jira/ADO tools
206-
- When a user references something instance-specific (custom tables, teams, conventions)
205+
- When a user references something instance-specific (custom tables, integrations, naming conventions)
206+
- Before making assumptions about what exists or is configured on the instance
207207

208208
**When to UPDATE INSTANCE.md:**
209-
- After discovering the instance URL or version
210-
- After confirming which plugins are active (especially `com.snc.sdlc.agile.2.0`)
211-
- After discovering custom tables, teams, or naming conventions
209+
- After discovering the instance URL, version, or edition
210+
- After confirming which plugins or modules are active
211+
- After discovering custom tables, scoped applications, or integrations
212+
- After learning about naming conventions, team structures, or key contacts
212213
- After creating significant update sets
213214
- When you learn something instance-specific that would be useful in future sessions
214215

packages/opencode/src/project/instance-template.txt

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,48 @@ across sessions. You can also manually edit this file.
99
<!-- Agent: update this section after connecting to the instance -->
1010
- **URL**: (not yet discovered)
1111
- **Version**: (not yet discovered)
12+
- **Edition**: (e.g., Standard, Professional, Enterprise)
1213

13-
## Active Plugins
14+
## Active Plugins & Modules
1415

15-
<!-- Agent: update this section when you discover which plugins are active -->
16-
<!-- Example: com.snc.sdlc.agile.2.0, com.snc.change_management, etc. -->
16+
<!-- Agent: update this section when you discover which plugins/modules are active -->
17+
<!-- Examples: com.snc.change_management, com.snc.incident, com.snc.service_catalog,
18+
com.snc.sdlc.agile.2.0, com.snc_hr_core, com.sn_csm, com.snc.cmdb,
19+
com.snc.integration_hub, com.glide.itsm.virtual_agent, etc. -->
20+
21+
## Custom Applications & Scopes
22+
23+
<!-- Agent: record any scoped applications discovered (x_vendor_appname format) -->
24+
<!-- Include: app name, scope, purpose, version if known -->
1725

1826
## Custom Tables
1927

2028
<!-- Agent: record any custom tables you discover during development -->
29+
<!-- Include: table name, label, extends (if any), purpose -->
30+
31+
## Key Integrations
32+
33+
<!-- Agent: record integration endpoints, REST messages, MID servers -->
34+
<!-- Examples: outbound REST to JIRA, inbound API for monitoring, LDAP/SSO config,
35+
IntegrationHub spokes, import sources, SCCM/SCOM connections -->
36+
37+
## Teams & Key Users
38+
39+
<!-- Agent: record team names, roles, key contacts you interact with -->
40+
<!-- Examples: platform admin, process owners, fulfillers, assignment groups -->
2141

22-
## Teams & Users
42+
## Naming Conventions & Standards
2343

24-
<!-- Agent: record team names, scrum masters, key users you interact with -->
44+
<!-- Agent: record instance-specific naming patterns and development standards -->
45+
<!-- Examples: table prefixes (u_ vs x_vendor_), field naming, update set naming,
46+
business rule naming, script include patterns, catalog item categories -->
2547

2648
## Development Notes
2749

28-
<!-- Agent: record instance-specific patterns, quirks, or conventions -->
29-
<!-- Examples: naming conventions, custom fields, integration endpoints -->
50+
<!-- Agent: record instance-specific patterns, quirks, or configurations -->
51+
<!-- Examples: custom ACLs, domain separation setup, performance considerations,
52+
specific GlideRecord patterns used, custom processors, custom UI pages,
53+
notification configurations, approval workflows -->
3054

3155
## Update Set History
3256

0 commit comments

Comments
 (0)