WEBVTT

1
00:00:00.000 --> 00:00:04.000
Skylos Cloud · Chapter 15: Custom rules
Write a check for the pattern your team bans. Every connected scan runs it.

2
00:00:04.000 --> 00:00:09.000
Step 1: Open Custom rules
Custom rules live under Policy. Workspace runs up to 50; Free runs 3.

3
00:00:09.000 --> 00:00:17.000
Step 2: Start from a template
"No Raw SQL Strings" flags database calls built from strings. Give it your own rule ID; every finding carries it.

4
00:00:17.000 --> 00:00:23.000
Step 3: Create it
The rule runs on future scans from every connected project.

5
00:00:23.000 --> 00:00:37.500
Step 4: It runs in every connected scan
On the agent's branch, a local scan catches string-built SQL with your rule. Connected scans load your workspace's rules.

6
00:00:37.500 --> 00:00:43.500
Step 5: Change it any time
Edit raises this rule to Critical. Earlier findings keep the rule ID.

7
00:00:43.500 --> 00:00:51.000
Step 6: Duplicate to adapt
Duplicate makes a copy that stays off until you turn it on, so you can adapt it safely.

8
00:00:51.000 --> 00:00:59.600
Step 7: Keep rules in the repository too
skylos rules init writes a rule pack into the repository. Quality scans apply it; in pull request CI, the copy on the base branch applies.

9
00:00:59.600 --> 00:01:08.400
Step 8: Rules are plain YAML
Each rule has an ID, a severity, a message and a pattern. Edit it, then check it with skylos rules validate.

10
00:01:08.400 --> 00:01:15.400
Recap: Policy → Custom rules → Create a rule · Start from a template, use your own rule ID · Connected scans run your rules · Edit or duplicate any rule · skylos rules init: rule packs in the repo · Workspace runs 50 rules; Free runs 3
Next: Chapter 16 · Pull requests and merge blocking
