-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontext.yaml
53 lines (48 loc) · 1.46 KB
/
context.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
$schema: 'https://raw.githubusercontent.com/context-hub/generator/refs/heads/main/json-schema.json'
import:
- path: resources/prompts.yaml
documents:
# Project structure overview
- description: 'Project structure overview'
outputPath: project-structure.md
overwrite: true
sources:
- type: text
content: |
The PSR-4 is used in the project.
- type: tree
sourcePaths: [ 'src' ]
showCharCount: true
showSize: true
- type: file
sourcePaths: [ 'README.md' ]
# Modules API
- description: 'Modules API allowed to be used in the project'
outputPath: modules-api.md
overwrite: true
sources:
- type: file
sourcePaths: [ 'src/Module', 'src/Service' ]
filePattern: '*.php'
excludePatterns: [ '/Internal/' ]
modifiers:
- name: php-content-filter
options:
method_visibility:
- public
keep_method_bodies: false
# Guidelines
- description: 'Guidelines and instructions'
outputPath: guidelines.md
overwrite: true
sources:
- type: text
tag: instruction
content: |
There are all the guidelines about how to do some things in the project.
Feel free to load any related guideline to the current context to make the work more efficient.
- type: tree
sourcePaths: 'docs/guidelines'
showCharCount: true
showSize: true