Passage
Have I not written to you excellent things Of counsels and knowledge,
Have I not written to you excellent things Of counsels and knowledge,
Proverbs 22:18 For it will be pleasant if you keep them within you, That they may be established on your lips.
Proverbs 22:19 So that your trust may be in Yahweh, I have made you know today, even you.
Proverbs 22:20 Have I not written to you excellent things Of counsels and knowledge,
Proverbs 22:21 To make you know the veracity of the words of truth That you may respond with the words of truth to him who sent you?
Proverbs 22:22 Do not rob the poor because he is poor, And do not crush the afflicted at the gate;
The verse centers on "written", "excellent", "things", "counsels", and "knowledge". It is saying that the verse draws attention to "written" and "excellent", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 19's "So that your trust may be in..." into verse 21's "To make you know the veracity of...", so "written" and "excellent" belong inside that flow. In Proverbs context, the local focus is covenant, worship, and faithfulness.
A plain takeaway is to answer the verse's own emphasis on "written" and "excellent" with trust shaped by these words, not by a vague optimism outside the passage.